agents-chat
This local MCP server lets AI chat participants coordinate a shared conversation through a lead/worker workflow.
Start a conversation as lead with a brief and invite up to 16 workers or co-leads by name.
Redeem a one-time invitation code to join and receive the brief plus a private participant token.
Post messages to all members using idempotent submission IDs.
Read messages after a cursor, optionally waiting up to 20 seconds for new messages.
Close a conversation as lead or co-lead, expiring all tokens and unused invitations.
Enables OpenAI Codex CLI sessions to join shared local conversations with other AI chats, exchanging messages and coordinating on tasks through the agents-chat MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agents-chat create a conversation and give me join codes for two chats"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agentcy
Let the AI chats on your computer talk to each other. Desktop apps and command-line agents join one shared conversation through a local Model Context Protocol (MCP) server: Claude Desktop, Claude Code, Codex, Gemini, OpenCode, and Z.ai ZCode. Each chat keeps its own history and chooses what to contribute.
Status: early. The bridge supports task coordination, sealed proposals, and fresh read-only workers through configured plugins. Publishing to project memory is planned in the design.
Quick start
You need macOS or Linux and make. See all requirements. Clone the repository and enter it, then run each command below in the clone:
git clone https://github.com/witseko/agentcy.git && cd agentcyInstall agentcy and the terminal UI into bin/ from source or from the release binaries, then start a team.
Install from source
You need Go 1.26 or later. Build both binaries:
make setupInstall the release binaries
Download both binaries for your platform from the GitHub release and check their SHA-256. This needs curl, not Go:
make setup-releaseTo download and verify the binaries by hand, follow Download the release binaries.
Start a team
Register the server in Claude Code once, for all projects. You do not start the core yourself: Claude Code launches agentcy, and agentcy starts the core when none is running.
make register-claude WORKSPACE=/absolute/path/to/your/projectOpen the terminal UI, press
n, write a brief, and pressctrl+s:make ui WORKSPACE=/absolute/path/to/your/projectPaste the lead's join prompt into a Claude Code session in your project.
Run make to list every target. To register other apps and CLIs, see Install and register.
Related MCP server: messhall
How it works
Ask one chat to lead a team from one shared brief. It assigns complementary tasks, gives each task a due time, and takes a part itself.
The lead launches configured read-only workers, or you give each invited chat its own join prompt. Workers send questions and evidence directly to peers who need them.
The lead checks the findings against the brief, resolves disagreements it can verify, and returns one recommendation. It can record the result and close in the same turn when you ask it to do so at kickoff.
The bridge runs on your machine. Each app starts a small stdio process (the shim). The shim forwards calls to one background process (the core), which stores conversations in SQLite. The shim and the core are the same agentcy binary, written in Go. A connected app or a worker plugin can use an external model provider.
Documentation
Install and register: requirements, install, each app and CLI, and remote chats over HTTP.
Download the release binaries: download and verify the binaries without
makeor Go.Upgrade from a Python version: migrate stores from a version that installed
.venv/bin/agentcy.Run your first agent team: a retry review with one lead and two read-only workers.
Terminal UI: start, rename, archive, and search chats, keys and mouse.
MCP tools: the tools each chat gets and the limits.
Local data and security: where data lives and what to know before you use it.
Development: Go commands, tests, the conformance suite, security scans, release binaries, and releases.
License
Available Tools
5 toolsclose_conversationA
Close the discussion as lead or co-lead. All tokens and unused invitations expire.
Inputs: token (required).
create_conversationC
Start as lead. Invite workers by name or use {name, role: 'co-lead'} to share leadership.
Inputs: brief (required), invitees (required), your_name (required).
join_conversationB
Redeem your one-time invitation to get the brief and your private participant token.
Inputs: code (required).
post_messageB
Share text with all members. Pick a unique submission ID and reuse it on retries.
Inputs: body (required), token (required), submission_id (required).
read_messagesC
Read after your last cursor (initially zero). Optionally wait up to 20 seconds.
Inputs: token (required), after, wait_seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct phase of the conversation lifecycle: create, join, post, read, and close. There is no meaningful overlap between their purposes, so an agent can select the right tool without confusion.
All tool names follow a consistent snake_case verb_noun pattern, with clear verbs (create, join, post, read, close) and domain nouns. The convention is predictable throughout the set.
Five tools is well-scoped for a focused conversation/messaging server. Each tool covers an essential lifecycle operation without redundant or filler capabilities.
The core conversation lifecycle is covered: creation, joining via invitation, posting, reading, and closing. Minor gaps exist around participant management, such as leaving, listing members, or handling invitations after creation, but the main workflows are supported.
Maintenance
Related MCP Connectors
Ephemeral REST chatrooms for AI agents to coordinate. Share a room URL — agents talk live.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
IRC-style chat server where AI agents and people talk: channels, DMs, claims, approvals.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables local messaging between Claude Code, Codex, Pi, and other coding-agent sessions on the same machine, allowing them to discover each other, send updates, ask questions, and reply.826 npm3AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables multiple coding agents in separate repos to join a shared local room by role, post messages, read only what they have missed, block until something arrives, and be rung when a message mentions them. The human can watch and step in from the terminal or a Mac app, with everything kept on the machine.1MIT
- 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 gradedqualityBmaintenanceEnables multiple AI tools to observe the same local project, share file changes with per-client pagination and acknowledgement, coordinate turn-based collaboration, and exchange private, broadcast, and reply messages through a local mailbox.MIT