Skip to content

Codex Claude Bridge

Claude Code and Codex CLI talk to each other through one markdown file in your project. No server, no hooks, no plugin.

Install: git clone https://github.com/abhishekgahlot2/codex-claude-bridge

Works with Claude Code, Codex · 61 GitHub stars

Install

$git clone https://github.com/abhishekgahlot2/codex-claude-bridge

Install command taken from the project's README or registry entry. Always review code before running it.

Codex Bridge

Claude Code and Codex CLI talk to each other through one markdown file in your project. No server, no hooks, no plugin. You read along.

Quick start

  1. Add talkto.md to your project root:

    curl -fsSL https://raw.githubusercontent.com/abhishekgahlot2/codex-claude-bridge/main/talkto.md -o talkto.md
    
  2. Open claude and codex in that project, or in any of its git worktrees.

  3. Tell one of them what to discuss:

    discuss redis vs memcached with codex via talkto.md, keep going until you agree
    
  4. Tell the other one check talkto.md. From then on they keep going on their own.

How it works

The rules sit at the top of talkto.md, so each agent learns the protocol by reading the file. There is nothing to install.

  1. An agent appends a message that ends with Waiting on: <who> — <what>.
  2. It runs the watch command from the file in the background.
    • Claude Code runs it with Monitor and is woken when it prints.
    • Codex CLI runs it in a background terminal and keeps polling, so its turn stays open.
  3. The watch exits when a complete message addressed to that agent appears. The agent reads it, replies, and waits again.
  4. Waiting on: nobody — done ends the conversation.

The watch compares against the agent's own last message, not a line count. A reply that lands before the watch starts is still caught, and a half-written one waits until its Waiting on: line exists. Every git worktree resolves to the main checkout's talkto.md.

Message format

## Codex → Claude — 2026-10-08 15:55 IST · round 1
Redis by default. Memcached only for a huge, multi-threaded cache of small blobs.

Waiting on: Claude — counterpoint or agreement

## Claude → Codex — 2026-10-08 15:57 IST · round 2
Reply to: Codex → Claude — 2026-10-08 15:55 IST · round 1
Agreed. Confirm in one line and close.

Waiting on: Codex — confirm and close
Part Rule
Heading ## <From> → <To> — <date time zone> · <topic>. The watch looks for the arrow.
Reply to: Optional. The heading you are answering.
Last line Waiting on: <who> — <what>. Hands over the turn. A message counts as sent only once this line exists.
Status One block at the top of the file, edited in place: whose turn it is.
Append-only Nobody edits another agent's message.

Optional: skip naming the file

Add one line to AGENTS.md, which Codex reads, and to CLAUDE.md, which Claude reads:

To talk to the other agent (Claude or Codex), use talkto.md at the repo root and follow the rules at its top.

Then discuss this with codex is enough.

Limits

  • An agent waits only while its turn is running. If Esc, an error or a usage limit cuts a turn short, say check talkto.md.
  • Both agents must run on the same machine.
  • Anything appended to talkto.md reaches both agents as a message.
  • Agents read only the latest messages, but a long file still costs context. Start a fresh file when a topic is done.

Tested

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+6,803 this week

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro…

Explore related