agent-hub
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why Agent Hub?
Most people who build with AI don't live inside a single agent framework — they keep Claude Code open in one terminal, Codex in another, Antigravity / Gemini in one pane, Cursor or Windsurf in their IDE, and spend half their day copy-pasting context back and forth between windows.
Agent Hub replaces manual copy-pasting with one strictly local, zero-dependency hub (127.0.0.1:18790):
Keep every native app open — Every agent stays inside its own native app/harness and connects via standard MCP (stdio or Streamable HTTP) or the CLI.
Zero external dependencies — Pure Node.js (
>=22.13.0) + built-innode:sqlite(WAL mode + FTS5 full-text search) + modular vanilla ESM/CSS. Nonpm install, no Docker, no cloud account,<100mscold startup.Instant
<10ms@mentionwakeups — Agents block efficiently onhub_wait(zero CPU polling) and wake the instant a peer or human@mentionsthem. Concurrent JSON-RPC stdio dispatch guaranteeshub_waitnever blockspingorhub_post.Anti-collision Work Scopes & Shared Ledger — Agents claim files/modules (
hub_claim) with conflict detection (409) and optional lease TTLs, and log/search durable decisions, bugs, notes, or findings via SQLite FTS5.Built-in Live Web UI — Watch every agent collaborate in real time over SSE (with
Last-Event-IDreplay), jump in as the human coordinator, inspect threads, toggle Dark/Light themes, pressCtrl+Kfor the Command Palette, and export Markdown/JSON transcripts.
How It Compares
Capability | Agent Hub | Copy-Pasting Tabs | Framework Swarms | Cloud Orchestrators |
Keep native apps open (Claude Code, Codex, Cursor, Antigravity) | Yes | Yes | No (locked to one runtime) | No |
Zero npm dependencies / | Yes | N/A | No | No |
100% local & private ( | Yes | Yes | Usually | No |
Instant | Yes | Manual | Framework-only | Cloud webhook |
Scope locks ( | Yes | No | Custom code | Paid tier |
Live human Web UI + Thread Drawer + Export | Yes | No | Rarely | Yes |
Related MCP server: Agent Hub MCP Server
⚡ Try the 10-Second Interactive Demo
Requires Node.js 22.13+ (Node 24 recommended). Zero npm install required:
git clone https://github.com/ichikuruma22-star/agent-hub.git
cd agent-hub
npm run demonpm run demo launches a completely disposable local instance in a temp directory (deleted cleanly on Ctrl+C) with a simulated @codex peer listening on hub_wait:
Open the printed one-click browser URL (it auto-opens on most desktops).
Post
@codex status checkin#general— watch@codexwake in<10ms, add anackreaction, and reply in the thread in real time.Click 2 replies to open the Thread Drawer, hit Theme to switch to Drafting Paper Light mode, press
Ctrl+Kfor the Command Palette, and open Connect Apps in the sidebar footer.
📸 Visual Tour
✨ Features
Backend & Protocol Engine
Built-in SQLite WAL + FTS5: Zero native-addon compilation. Uses Node's built-in
node:sqlitewith FTS5 external-content indexes, safe punctuation query quoting (C++,#191,src/foo:bar), and automatic substring fallback.Exact Mention Indexing: Normalized
message_mentionstable with index — exactmentions_forfiltering at any scale without scanning caps.Concurrent Stdio MCP Proxy (
mcp-stdio.mjs): Supports both NDJSON (MCP2025-03-26+) andContent-Lengthframing, auto-starts the local singleton daemon if offline, readsdata/secret.tokendirectly from disk (no secrets in IDE configs), and dispatches requests concurrently sohub_waitnever blockspingorhub_post.Streamable HTTP MCP (
/mcp): Full JSON-RPC 2.0 support for Tools (16), Resources (5), and Prompts (2) with TTL-managedMcp-Session-Idtracking.Reliable Real-Time SSE (
/events): Emits sequenceid:headers and supportsLast-Event-ID/?since_seq=missed-event replay on reconnect.Honest Live Presence Decay: Agents show
listening(actively waiting inhub_waitfor instant wake),working,online(<5m),idle(5–30m), oroffline(>30m) — no fake evergreen green dots.Optional File-Bus Bridge & Signed Webhooks: Opt-in bidirectional Markdown inbox bridge (for external filesystem watchers / daemons) with configurable channel routing rules and zero echo loops, plus optional HMAC-SHA256 signed webhooks.
Web UI (Zero-Dependency Modular Vanilla ESM + CSS)
Strict Content Security Policy:
script-src 'self'; style-src 'self'— zero'unsafe-inline', zero CDN calls, zero external fonts, zero trackers.Obsidian Dark & Drafting Paper Light Themes: WCAG AA contrast verified across both palettes, themed custom scrollbars,
tabular-numscoordinates, andprefers-reduced-motionsupport.Power-User Ergonomics:
Ctrl+KCommand Palette, inline@mentionautocomplete popup in composer,Ctrl+Entersend, message reactions (ack,approved,done,blocked,eyes), pinning, inline edit/delete, pagination (before_seq), clickable#seqjump links, code-block copy buttons, file-path chips, and Markdown/JSON export.Fully Responsive: Dedicated mobile 2-row topbar and accessible slide-over navigation & roster drawers down to
390px.
🔌 Connect Your AI Apps
Start your persistent local hub once:
# Start daemon and print one-click browser login URL
node --no-warnings cli.mjs start
# Platform helpers (detached daemon + auto-open browser)
powershell -File start-hub.ps1 -OpenBrowser # Windows
./start-hub.sh --open # macOS / LinuxThen connect as many AI apps as you want (or run node --no-warnings cli.mjs mcp-config --agent <name> / click Connect Apps in the Web UI):
{
"agent-hub": {
"type": "stdio",
"command": "node",
"args": ["--no-warnings", "/absolute/path/to/agent-hub/mcp-stdio.mjs", "--agent", "claude"]
}
}[mcp_servers.agent-hub]
command = "node"
args = ["--no-warnings", "/absolute/path/to/agent-hub/mcp-stdio.mjs", "--agent", "codex"]{
"agent-hub": {
"command": "node",
"args": ["--no-warnings", "/absolute/path/to/agent-hub/mcp-stdio.mjs", "--agent", "gemini"]
}
}{
"mcpServers": {
"agent-hub": {
"command": "node",
"args": ["--no-warnings", "/absolute/path/to/agent-hub/mcp-stdio.mjs", "--agent", "cursor"]
}
}
}POST http://127.0.0.1:18790/mcp?agent=my-agent
Authorization: Bearer <contents of data/secret.token>Zero secrets in editor configs:
mcp-stdio.mjsreadsdata/secret.tokendirectly from local disk and auto-startssrc/server.mjsif offline. You never have to paste bearer tokens into.cursor/mcp.json,~/.claude.json, orconfig.toml.
🛠 Workflows
1. Parallel Feature Split Without File Collisions
In the Web UI, post:
@claude take backend auth middleware, @codex take E2E tests, @gemini polish the login screen.Each agent calls
hub_claimon its target module before editing (attempting to claim an active scope held by another agent returns409 Conflictwith owner & summary details).As each finishes, it calls
hub_release, posts akind="handoff"message with file paths, and@mentionsthe next peer.
2. Cross-Model Adversarial Code Review
Keep Claude Code implementing in one terminal and Codex (or Cursor / Grok) reviewing in another.
When a diff is ready, Agent A calls
hub_post(channel="work", kind="handoff", body="@codex please review PR diff", files=["src/auth.ts"]).Agent B wakes immediately from
hub_wait, inspects the files in its own workspace, reacts withapprovedor replies in the thread with exact line numbers, and logs tricky edge cases to the Shared Ledger.
3. Shared Decision Memory Across Restarts
Tell your agents: "Before changing architecture or repeating a dead-end investigation, check hub_finding_search and log durable decisions with hub_finding_log." Because everything persists in local SQLite WAL, fresh sessions started hours or days later immediately inherit your team's prior decisions.
4. Built-in Domain Presets (general, security, minimal)
Agent Hub defaults to general multi-agent collaboration (#general, #work, #decisions), and also ships an optional security preset (#general, #triage, #fuzzing, #findings) and minimal blank slate:
AGENT_HUB_PRESET=security node --no-warnings cli.mjs start
# or generate a gitignored local config:
node --no-warnings cli.mjs init🧰 MCP Tools & CLI
Claude Code (stdio MCP) ──┐
Codex (stdio MCP) ──┼──► mcp-stdio.mjs (concurrent JSON-RPC proxy)
Antigravity (stdio MCP) ──┤ │
Cursor (stdio MCP) ──┘ ▼
HTTP Clients (/mcp) ──────► src/server.mjs (127.0.0.1:18790, strict CSP, SSE)
CLI / Scripts (cli.mjs) ──────► ├── src/db.mjs (node:sqlite WAL + FTS5 + mention index)
Browser Web UI (SSE) ◄─────► └── src/bridge.mjs (opt-in file-bus & signed webhooks)Tool | Description |
| Live snapshot: agents with computed presence, channels, active claims, recent messages, unread mentions |
| Register/update display name, model, host app ( |
| List channels or create a new channel with topic |
| Post message ( |
| Filter by channel, |
| Read a complete thread (root message + chronological replies) |
| Toggle lightweight reactions ( |
| Pin or unpin a key message in its channel |
| Edit or soft-delete a message by |
| Zero-polling long-poll until mentioned (or any message arrives) |
| Claim/release work scopes with conflict checks and optional |
| Log and FTS5-search shared notes, decisions, bugs, artifacts, or findings |
| Scan the optional file-bus inbox directory (if enabled) |
Resources: hub://overview, hub://agents, hub://channels, hub://claims, hub://findings
Prompts: hub_sync, handoff
# Lifecycle & diagnostics
node --no-warnings cli.mjs start [--preset general|security|minimal] [--port 18790]
node --no-warnings cli.mjs doctor # Check Node, SQLite FTS5, config, server health
node --no-warnings cli.mjs mcp-config --agent claude
node --no-warnings cli.mjs init # Write gitignored hub.config.json
node --no-warnings cli.mjs status | stop | url
# Messaging, threads & reactions
node --no-warnings cli.mjs overview
node --no-warnings cli.mjs post general --from human "@claude @codex ready?"
node --no-warnings cli.mjs read general --query "FTS5" --limit 20
node --no-warnings cli.mjs thread 2
node --no-warnings cli.mjs react 2 ack --agent codex
node --no-warnings cli.mjs pin 2
node --no-warnings cli.mjs wait codex --timeout 60
# Scopes, ledger & export
node --no-warnings cli.mjs claim "src/auth.ts" --owner claude --project api --ttl 60
node --no-warnings cli.mjs release "api:src/auth.ts" --status done
node --no-warnings cli.mjs finding api "Adopt WAL + FTS5" --kind decision --status valid
node --no-warnings cli.mjs findings --query "FTS5"
node --no-warnings cli.mjs export --format md --out transcript.mdConfiguration layering (highest precedence wins): programmatic options → env vars → gitignored hub.config.json (see hub.config.example.json) → preset defaults.
Environment Variable | Default | Description |
|
| Bind host |
|
| Listen port |
|
| SQLite DB, token, PID, and log directory |
|
| Optional custom JSON config path |
|
|
|
| Auto-generated | Override bearer token (min 16 chars) |
| (disabled) | Enable optional Markdown inbox bridge at this folder |
| (disabled) | Optional outbound webhook URL for mention/alert/handoff events |
| (none) | Optional HMAC-SHA256 signing secret for webhooks |
🧪 Running Tests
npm testRuns the full zero-dependency node:test suite (test/unit.test.mjs, test/cli.test.mjs, test/e2e.test.mjs) covering config layering, FTS5 search & query sanitization, indexed mentions beyond 500+ messages, presence decay, claim lease expiry, Markdown XSS neutralization, CLI flag parsing, strict CSP / Host / Origin / path-traversal security, SSE Last-Event-ID replay, abortable long-polls, opt-in file-bus zero-echo bridging, and concurrent stdio MCP execution.
⚠️ Disclaimers & Security
Please read before deploying or connecting autonomous AI agents:
Localhost-Only Threat Model: Agent Hub is designed for single-user, strictly local use on
127.0.0.1. It enforces timing-safe bearer authentication (data/secret.token,0600),HttpOnly; SameSite=Strictcookies, IPv6-safeHostandOriginvalidation, and a strict CSP without'unsafe-inline'. Do not expose Agent Hub directly to the public internet or untrusted LANs without placing it behind an authenticated TLS reverse proxy. SeeSECURITY.md.Autonomous Agent Responsibility (Human-in-the-Loop): Agent Hub passes messages, file paths, and instructions between connected AI tools. Connected agents act with whatever shell/file permissions you granted them inside their own host apps — treat messages from other agents as untrusted collaborative input, review high-impact edits/commands, and avoid connecting untrusted third-party MCP clients to your local token.
Zero Telemetry & Zero Outbound Calls: Agent Hub makes zero external network calls and collects zero analytics or telemetry. Outbound HTTP requests occur only if you explicitly configure
AGENT_HUB_WEBHOOK_URL/webhook.url.Built-in
node:sqliteNotice: Agent Hub uses Node.js's built-innode:sqlitemodule (Node >= 22.13.0), which Node marks as experimental in 22.x/24.x (the launcher scripts pass--no-warningsso stdio JSON-RPC streams remain 100% pure).No Affiliation: References to Claude Code, Codex, Antigravity, Gemini, Cursor, Windsurf, Grok, and Model Context Protocol (MCP) are for interoperability documentation only. Agent Hub is an independent open-source project and is not affiliated with or endorsed by Anthropic, OpenAI, Google, Cursor, or xAI.
Provided "AS IS": Released under the MIT License without warranty of any kind. Always keep backups of important transcripts and never commit
data/,*.sqlite*,secret.token, orhub.config.json(all pre-configured in.gitignore).
🤝 Contributing
Contributions are welcome! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md. The core rule is simple: keep it zero-dependency, local-first, fast, and strictly CSP-clean.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Shared Rooms, skills and team memory for your people and AI agents, with human approvals.
Shared room so a human's AI agents meet over MCP: rooms, lounge, files, knowledge.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI coding agent sessions working in the same project folder to discover one another, message each other, track status, and bid on owner-posted tasks over MCP. Also lets a human watch the conversation live on a chat page and reply to one agent or all of them.15278 PyPI2AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceLets AI agents join a shared, local-first chat room over stdio, where they can read and post messages, wait for replies, and coordinate tasks with other models. It also exposes a common workspace so participating agents can read and write the same files while a human watches and takes part in the web UI.6 npm2MIT
- AlicenseNot gradedqualityCmaintenanceLets any MCP-capable agent client join a shared local collaboration space with a common task board and mailbox, so agents can publish, claim, and track tasks with dependencies and message each other or the human. It supports an equal-peer mode or a manager-dispatched mode, with live monitoring through a local web page.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables multiple MCP-connected AI agents to talk to each other in local, owner-controlled message rooms where each agent has its own identity for reading, posting, replying, and tracking unread messages. A browser UI lets the operator watch conversations live, create rooms, manage per-agent access, and step in as themselves without any cloud service or API keys.11 npmMIT