Skip to content

feat: Agent Integration — connect third-party AI agents (Hermes, OpenClaw, etc.)#3702

Open
suer781 wants to merge 5 commits intochatboxai:mainfrom
suer781:feat/agent-integration
Open

feat: Agent Integration — connect third-party AI agents (Hermes, OpenClaw, etc.)#3702
suer781 wants to merge 5 commits intochatboxai:mainfrom
suer781:feat/agent-integration

Conversation

@suer781
Copy link
Copy Markdown

@suer781 suer781 commented May 5, 2026

Summary

Adds support for connecting third-party AI agents that expose an OpenAI-compatible API. This enables integration with agent frameworks like Hermes, OpenClaw, LangChain, and any custom agent service.

Components

1. AgentIntegrationModal

Configuration dialog for connecting a new agent:

  • Quick Presets — Pre-configured templates for Hermes, OpenClaw, and generic OpenAI-compatible
  • API Endpoint — Base URL of the agent's API
  • API Key — Optional authentication
  • Model ID — Model identifier for API requests
  • System Prompt — Default system prompt per agent
  • Tool Calling Toggle — Mark agents that support function/tool calling
  • Custom Headers — Add arbitrary HTTP headers (for auth, routing, etc.)

2. AgentList

Manages connected agents with:

  • Expandable cards showing endpoint, model, system prompt, headers
  • Tool calling and status badges
  • Enable/disable toggle
  • One-click removal

3. AgentSettingsSection

Settings page section that:

  • Lists all connected agents
  • Shows supported frameworks (Hermes, OpenClaw, LangChain, AutoGPT, etc.)
  • Explains that any OpenAI-compatible endpoint works

4. DocumentParser

Document upload component for sending files as context:

  • Supports .txt, .md, .json, .csv, .html
  • 10MB file size limit
  • Parse preview with file size and character count
  • Batch send to agent

Files Changed

File Description
src/renderer/components/settings/agent/index.ts Barrel export
src/renderer/components/settings/agent/AgentIntegrationModal.tsx Connection dialog
src/renderer/components/settings/agent/AgentList.tsx Agent list management
src/renderer/components/settings/agent/AgentSettingsSection.tsx Settings page section
src/renderer/components/settings/agent/DocumentParser.tsx Document upload & parse

How It Works

The agent integration leverages Chatbox's existing custom provider infrastructure. Connected agents are registered as OpenAI-compatible providers with additional metadata (system prompt, custom headers, tool support flag). This means:

  • No changes to the model call pipeline needed
  • Existing streaming, tool calling, and error handling work out of the box
  • Agents appear in the provider selector alongside built-in providers

Supported Agent Frameworks

Any service exposing /v1/chat/completions works. Tested patterns include:

  • Hermes — Tool-calling agent framework
  • OpenClaw — Open-source AI assistant
  • LangChain — Via LangServe endpoints
  • AutoGPT / AgentGPT — With API adapter
  • Custom agents — Any OpenAI-compatible API

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 5, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 76e7c9f1-3500-4d63-ae4d-0821e8a50bae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant