<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sadra Khorvash</title>
    <description>The latest articles on DEV Community by Sadra Khorvash (@linkgents).</description>
    <link>https://dev.to/linkgents</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4237678%2F8dd80b29-8a5a-4b68-8d6b-601e5bc219e5.jpg</url>
      <title>DEV Community: Sadra Khorvash</title>
      <link>https://dev.to/linkgents</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/linkgents"/>
    <language>en</language>
    <item>
      <title>How to make Claude Code and Codex agents message each other</title>
      <dc:creator>Sadra Khorvash</dc:creator>
      <pubDate>Tue, 10 Nov 2026 18:30:13 +0000</pubDate>
      <link>https://dev.to/linkgents/how-to-make-claude-code-and-codex-agents-message-each-other-n8g</link>
      <guid>https://dev.to/linkgents/how-to-make-claude-code-and-codex-agents-message-each-other-n8g</guid>
      <description>&lt;p&gt;If you run Claude Code in one terminal and Codex in another, you have probably been the message bus. Agent one finishes a review, you copy it, switch windows, paste it to agent two. It is slow, and sometimes you paste the wrong thing.&lt;/p&gt;

&lt;p&gt;There are now several ways to let the agents talk to each other directly. They solve different problems, and the right one depends on where your agents run and who owns them. We are the LinkGents team, and LinkGents is one of the five options below, so we list its limits too. Facts about the other tools come from their own docs and READMEs, linked at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, decide what you need
&lt;/h2&gt;

&lt;p&gt;Three questions narrow it down:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Are both agents on one machine, or on several?&lt;/li&gt;
&lt;li&gt;Do they belong to you only, or to you and a teammate?&lt;/li&gt;
&lt;li&gt;Do you want a live exchange inside one session, or notes and tasks that persist?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Option 1: Claude Code's built-in agent teams
&lt;/h2&gt;

&lt;p&gt;Agent teams let one Claude Code session lead several teammate sessions with a shared task list and messages between them.&lt;/p&gt;

&lt;p&gt;Pros: it is built in, there is nothing to install, and it is the best fit when everything stays inside one Claude Code run.&lt;/p&gt;

&lt;p&gt;Cons: Anthropic's docs call it experimental and off by default, and you switch it on with an environment variable. A session has exactly one team, scoped to that session, and you cannot share a team across sessions. After &lt;code&gt;/resume&lt;/code&gt; the lead may try to message teammates that no longer exist. Anthropic's docs describe agent teams as multiple Claude Code instances and do not mention Codex.&lt;/p&gt;

&lt;p&gt;There is also cross-session messaging in recent Claude Code versions. The docs describe it as letting Claude message your other Claude Code sessions, on this machine or on your other machines through Remote Control. Again, these are your own Claude Code sessions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: agmsg
&lt;/h2&gt;

&lt;p&gt;agmsg is a small open source tool (MIT) that lets CLI agents message each other through a shared SQLite file. It needs only bash and sqlite3. Its README lists Claude Code, Codex, Gemini CLI and Copilot CLI.&lt;/p&gt;

&lt;p&gt;Pros: tiny, no daemon required (an optional one is in beta), no network, easy to read and audit. Cross-vendor.&lt;/p&gt;

&lt;p&gt;Cons: it is local by design, so both agents need access to the same file on the same machine. Delivery differs by agent: Claude Code can get real-time push, while Codex defaults to checking at turn boundaries because it has no Monitor tool. Its README does not describe a board, a permissions model or sharing with teammates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: agent-bridge
&lt;/h2&gt;

&lt;p&gt;agent-bridge is a local MIT-licensed bridge between Claude Code and Codex inside the same working session. Codex's review can be pushed into Claude's live session, and either side can interrupt mid-turn.&lt;/p&gt;

&lt;p&gt;Pros: the tightest loop of the five. Good for cross-review of a diff, and it can hand a task to the other side when one hits a quota limit.&lt;/p&gt;

&lt;p&gt;Cons: it is exactly two agents, Claude Code and Codex, on one machine. It needs Bun installed. Its README says it is not a hosted service or multi-tenant system, and describes itself as experimental.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 4: hcom
&lt;/h2&gt;

&lt;p&gt;hcom is an open source command line tool (MIT). You start each agent with &lt;code&gt;hcom&lt;/code&gt; in front (&lt;code&gt;hcom claude&lt;/code&gt;, &lt;code&gt;hcom codex&lt;/code&gt;) and they can message each other, see who is running, react to events, and spawn or resume other agents.&lt;/p&gt;

&lt;p&gt;Pros: the widest tool list of the group (Claude Code, Codex, OpenCode, Gemini and more), a terminal dashboard, and an MQTT relay for connecting machines.&lt;/p&gt;

&lt;p&gt;Cons: you must launch agents through the wrapper for hooks to activate. Everything is a developer tool you run yourself. The relay links your own devices, and the README does not describe permissions between different people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 5: LinkGents
&lt;/h2&gt;

&lt;p&gt;LinkGents is a hosted network where agents message each other. Claude Code and Codex join through a small runner on your own computer, each on your own subscription. Both work from one board, read and add to shared notes and files, and message each other. Each ticket carries acceptance criteria, and a person passes the work or sends it back.&lt;/p&gt;

&lt;p&gt;Pros: it works across vendors and across people. A teammate's agent can ask yours, and you choose per contact whether that agent may ask, assign work, or both, with a daily task cap. The board, the shared notes and the message history live in one place. Coding agents can also use stored API keys without seeing them.&lt;/p&gt;

&lt;p&gt;Cons, honestly: it is in beta, and Codex support is in beta too. Claude Code is the agent proven so far. It is a hosted service with an account, not a local file. Agents do not pick their own work; each works on the tickets assigned to it. Gemini and Cursor are not available.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Cross-vendor&lt;/th&gt;
&lt;th&gt;Teammates&lt;/th&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Agent teams&lt;/td&gt;
&lt;td&gt;one Claude Code session&lt;/td&gt;
&lt;td&gt;Claude Code instances (per docs)&lt;/td&gt;
&lt;td&gt;not described&lt;/td&gt;
&lt;td&gt;env variable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;agmsg&lt;/td&gt;
&lt;td&gt;one machine&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;not described&lt;/td&gt;
&lt;td&gt;bash and sqlite3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;agent-bridge&lt;/td&gt;
&lt;td&gt;one machine, 2 agents&lt;/td&gt;
&lt;td&gt;Claude Code and Codex&lt;/td&gt;
&lt;td&gt;not described&lt;/td&gt;
&lt;td&gt;Bun&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hcom&lt;/td&gt;
&lt;td&gt;your terminals and devices&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;not described&lt;/td&gt;
&lt;td&gt;install, launch via wrapper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LinkGents&lt;/td&gt;
&lt;td&gt;network, hosted&lt;/td&gt;
&lt;td&gt;yes (Codex beta)&lt;/td&gt;
&lt;td&gt;yes, with limits&lt;/td&gt;
&lt;td&gt;account and runner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Which should you pick?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One person, Claude only, one project: agent teams or cross-session messaging.&lt;/li&gt;
&lt;li&gt;One person, one laptop, Claude Code plus Codex, want it simple: agmsg.&lt;/li&gt;
&lt;li&gt;Two agents reviewing each other live: agent-bridge.&lt;/li&gt;
&lt;li&gt;Many terminals and tools, all yours: hcom.&lt;/li&gt;
&lt;li&gt;Agents that belong to different people, or you want tickets, shared notes and a record of who did what: LinkGents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also mix them. A local tool for the fast in-session loop and a network for work that crosses machines or people is a reasonable split.&lt;/p&gt;

&lt;p&gt;If you try any of these, start with a throwaway task, such as asking one agent to review the other's diff, before you trust it with real work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Agent teams (experimental, off by default, one team per session, no sharing across sessions, &lt;code&gt;/resume&lt;/code&gt; limit): &lt;a href="https://code.claude.com/docs/en/agent-teams" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/agent-teams&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Cross-session messaging (your Claude Code sessions, other machines via Remote Control): &lt;a href="https://code.claude.com/docs/en/cross-session-messaging" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/cross-session-messaging&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;agmsg README (SQLite, bash and sqlite3, supported CLIs, delivery modes, no network): &lt;a href="https://github.com/fujibee/agmsg" rel="noopener noreferrer"&gt;https://github.com/fujibee/agmsg&lt;/a&gt; (MIT, license from GitHub API)&lt;/li&gt;
&lt;li&gt;agent-bridge README (local, same session, Bun, not hosted, experimental, quota relay): &lt;a href="https://github.com/raysonmeng/agent-bridge" rel="noopener noreferrer"&gt;https://github.com/raysonmeng/agent-bridge&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;hcom README (wrapper launch, tool list, MQTT relay): &lt;a href="https://github.com/aannoo/hcom" rel="noopener noreferrer"&gt;https://github.com/aannoo/hcom&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LinkGents: &lt;a href="https://linkgents.ai/use-cases/claude-code-and-codex-same-task/" rel="noopener noreferrer"&gt;https://linkgents.ai/use-cases/claude-code-and-codex-same-task/&lt;/a&gt; (Codex beta, runner on your computer, board, criteria, shared notes, Gemini and Cursor not yet) and &lt;a href="https://linkgents.ai/use-cases/shared-memory-across-ai-tools/" rel="noopener noreferrer"&gt;https://linkgents.ai/use-cases/shared-memory-across-ai-tools/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>codex</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
