█

AI/TLDR

Buy me a coffee
Buy me a coffee

agmsg

Let Claude Code, Codex, Gemini CLI and other coding agents message each other directly

Multi-Agent SystemsOpen source
Language
Shell
License
MIT
$npx agmsg
IN SHORT

What is agmsg?

agmsg is an open-source messaging layer for CLI AI coding agents. It sits in the Multi-Agent Systems category of the Agents & Automation tools and is open-source, written in Shell and licensed MIT. To get started: install.

Overview

agmsg is an open-source messaging layer for CLI AI coding agents. It lets Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Antigravity, OpenCode and other terminal agents send messages to each other inside a named team, so you stop acting as the copy-paste courier between them — one agent can ask another for a code review and get the answer back without a human relaying it.

Split terminal with Claude Code on the left sending a code review request and Codex on the right reading it from its agmsg inbox
Claude Code asks Codex for a code review and gets the reply back, all over agmsg.agmsg README ↗

It is deliberately thin. There is no MCP server, no daemon, no broker and no network: agmsg is a set of Bash scripts over a shared SQLite file in WAL mode. Sending a message appends a row; each agent has a hook, or a Monitor stream on Claude Code, that reads the file and surfaces new messages as text it can react to. Messages persist after a session ends, so a team's history can be replayed into a fresh agent.

agmsg connects peer sessions rather than managing subagents. It installs as a skill that each agent invokes with a slash command, and it adds roles within a project (actas), the ability to spawn a new peer agent in its own tmux pane or terminal window, and a choice of delivery modes from real-time push to between-turns checking. Turn-taking and stop conditions are left to your prompts. The project is MIT licensed.

What it does

  • Direct messaging between different vendors' CLI agents — Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Antigravity, OpenCode and more — organised into named teams
  • Plain Bash plus sqlite3: no MCP server, daemon, broker or network, with a WAL-mode store that keeps durable message history
  • Delivery modes per project: monitor (real-time push, about 5 seconds), turn (checked between assistant turns), both, or off
  • actas roles let one project hold several exclusive identities, such as a tech lead and a business analyst
  • spawn launches a new peer agent in a tmux pane or a new terminal window with a role and an optional boot task; despawn tears it down
  • Shell scripts (send.sh, inbox.sh, history.sh, team.sh) for driving the same message store from automation and CI

Getting started

agmsg needs bash and sqlite3 (macOS ships both; on minimal Linux images you may need to install sqlite3). Every install path ends up at ~/.agents/skills/agmsg/.

Install

npx is the quickest route. You can also clone the repo and run ./install.sh, or, inside Claude Code, add the plugin marketplace with /plugin marketplace add fujibee/agmsg.

bashbash
npx agmsg

Restart your agents and join a team

Restart Claude Code, Codex, Gemini CLI or whichever agents you use so they pick up the new skill, then run the command in each project. On first use it asks for a team name, an agent name and a delivery mode.

texttext
/agmsg      # Claude Code, Copilot CLI
$agmsg      # Codex, Gemini CLI, Antigravity, OpenCode

Talk to your agent naturally

After onboarding you just ask — for example "send alice a message saying the deploy is done", "check my messages" or "who's on the team" — and the agent picks the right subcommand. Explicit commands also work.

texttext
/agmsg send <agent> <message>
/agmsg history
/agmsg team
/agmsg mode monitor

Spawn a collaborator

spawn launches a separate agent that joins under a role; inside tmux it opens a new pane, otherwise a new terminal window. --boot-prompt hands it a first task.

texttext
/agmsg spawn codex reviewer --boot-prompt "review the diff on this branch"

Script it from the shell

The same store can be driven from scripts or CI; both sender and recipient must already be registered in the team.

bashbash
~/.agents/skills/agmsg/scripts/send.sh <team> <from> <to> "<message>"
~/.agents/skills/agmsg/scripts/inbox.sh <team> <agent_id>

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Have Claude Code hand a branch to Codex for code review and receive the review back without copy-pasting between terminals
  • Run a standing team of coding agents from different vendors, each with its own role, that coordinate through one shared message history
  • Fan out work by spawning peer agents in tmux panes with a boot task, then collect their replies in your main session
  • Add agent-to-agent messaging to an existing setup without running an MCP server, a broker or any network service

How agmsg compares

agmsg alongside other open-source multi-agent systems tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Paperclip★ 118kA self-hosted control plane that runs a team of AI agents like a company, with an org chart, tasks, budgets and approvals.
Ruflo★ 82.7kAgent meta-harness that wraps Claude Code and Codex with 100+ specialized agents, swarm coordination, vector memory, background workers and cross-machine agent federation.
MetaGPT★ 71.5kA multi-agent framework that models a software company, assigning roles like product manager, architect, and engineer to generate code from a single prompt.
AutoGen★ 62kMicrosoft Research's framework for building applications where multiple agents converse with each other and with tools to solve tasks.
CrewAI★ 61.4kA framework for assembling teams ('crews') of role-playing agents that divide tasks and collaborate to complete a goal.
AgentScope★ 36.9kA framework for building multi-agent applications with message passing, visual debugging tools, and distributed execution.
OpenAI Agents SDK★ 30.9kOpenAI's lightweight Python SDK for building multi-agent workflows using explicit handoffs, tools, and guardrails.
agmsg★ 1.6kLet Claude Code, Codex, Gemini CLI and other coding agents message each other directly