Agent-to-agent pair programming
TL;DR Highlight
Letting Claude and Codex talk in tmux sped up the code review loop
Who Should Read
A developer using Claude Code and Codex who finds AI code review feedback loops slow and noisy
Core Mechanics
- Claude and Codex reviews differed
- Building a review agent with both showed they gave different feedback.
- When they gave the same feedback, it was a very strong signal rather than noise.
- Team fixes 100% when both agree
- The author's team addresses all feedback that both reviewers agree on.
- loop runs claude and codex side by side in tmux
- loop is a CLI with a bridge that lets the two agents talk to each other.
- Context is preserved across iterations and the feedback loop gets faster and more natural.
- Humans can step in
- loop runs the interactive TUIs, so you can steer, answer questions and follow up.
- Looping produces more changes than expected
- The author finds these usually welcome.
- They do make human review harder.
- Open questions remain on handoff and PR review
- Should work be split across PRs, PLAN.md live in git or the PR description, and screenshots or video serve as proof of work?
Community Reactions
- Call for systematic measurement
- One commenter said evidence for multi-agent setups is still mostly anecdotal.
- Another said the approach needs more science.
- Experience: Codex finds issues in Claude's work
- One commenter has Claude write a why/where/how doc and then has Codex review it, and Codex almost always finds issues.
- Another prefers Claude for generation and Codex for stubborn auditing.
- Experience: multi-turn review ships big features
- One commenter saw 10-15 rounds of fix and review with cc and codex to ship larger features without constant bugs.
- Another said reviewer agents, even with the same model (Swival --self-review), make a huge difference.
- Pushback: the effect may not come from multiple agents
- One opinion is that the value comes from swapping two configurations inside one agent.
- Another commenter disagreed with out-of-scope changes, which should be avoided.
How to Apply
- Have Codex review Claude's work
- Today, give Claude's change to Codex with a why/where/how summary for review.
- Fix the issues both models flagged first.
- Install loop and run it on one task
- Pick a small feature and launch claude and codex in tmux with loop.
- Step in to stop out-of-scope changes.
- Decide where PLAN.md lives
- Decide with your team whether PLAN.md goes in git or the PR description so humans can review loop output.
- Write down when to split a large PR.
Try It
# Paste into Claude Code or Codex (simplified version of the article's idea: a reviewer-role prompt)
You are a code reviewer. Review the change below from a different perspective than the agent that wrote it.
[Task goal]
{{task goal}}
[Author's why/where/how summary]
{{summary doc}}
[Diff]
{{diff}}
Rules:
1. Find what is missing or buggy in work marked as complete.
2. Flag out-of-scope changes separately.
3. For each issue give file, location and reason.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques