Guide

How to Use Claude Code and Codex Together on One Project

The debate moved on from “which one?” to “which one for which task?” How working engineers split a repo between both CLIs, and how to keep two agents from stepping on each other.

By Kylian Migot · Updated July 2026 · 7 min read

Quick answer

Run both CLIs on the same repo by giving each an isolated worktree or branch and a shared task file as the contract. The most common split, widely reported in dev communities: Claude plans, Codex implements, Claude reviews. Two $20 subscriptions give you two independent usage pools and two model families for less than one $100+ plan.
Is dual-tool use mainstream?
Yes, OpenAI even ships an official Codex plugin for Claude Code
Most common split
Claude explores, plans, and reviews; Codex executes scoped tasks
The contract between tools
A shared task file (task.md / AGENTS.md) both agents read and update
Budget angle
Two $20 plans = two separate usage pools, often beats one $100+ plan
01

Why Engineers Run Both

Dual-tool use stopped being exotic sometime in the past year. The clearest signal: OpenAI ships an official Codex plugin for Claude Code, announced on the OpenAI community forum. When one vendor builds an integration into the other vendor's CLI, running both is no longer a hack, it is an acknowledged workflow. If you are still deciding between them, start with our head-to-head in Claude Code vs Codex; this guide is for the growing group that answered “both.”

Different strengths

The pattern reported again and again in dev communities: Claude as the explorer, strong at codebase archaeology, planning, and review; Codex as the executor, fast and literal on well-scoped implementation. Two tools, two temperaments.

Separate usage pools

Each subscription has its own limits. When your Claude plan throttles mid-afternoon, Codex sessions are untouched, and vice versa. Many developers run two $20 subscriptions instead of one $100+ plan precisely to spread usage across two independent pools.

Model diversity

Claude Code gives you the Claude family (Claude Fable 5 at the top, Claude Sonnet 5 for volume); Codex gives you the GPT-5.6 family (GPT-5.6 Sol, GPT-5.6 Terra). Different model families fail differently, a second opinion catches what the first missed. Full lineup on the models hub, verified July 18, 2026.

The benchmark picture reinforces the split rather than settling it: Claude Fable 5 holds the top published SWE-bench Verified score (95.0%), while GPT-5.6 Sol posts OpenAI's best terminal-agent numbers (Terminal-Bench 2.1: 88.8%). Neither dominates the other across every axis, which is exactly the situation where owning both pays. Tier-picking guides: best Claude model and best Codex model.

02

Three Workflow Recipes That Actually Work

These three patterns recur across dev communities as the dual-tool workflows people stick with. All of them share one mechanism: a shared task file, usually task.md or a task section in AGENTS.md, that acts as the contract between the two tools. One agent writes to it, the other reads from it, and you arbitrate.

Recipe 1: Planner / implementer split

  1. 1

    Claude plans

    Open Claude Code on the repo and have it explore the codebase and draft a plan into task.md: files to touch, the approach, acceptance criteria, and explicit exclusions. This plays to the explorer role, deep reading before any writing.
  2. 2

    Codex implements

    Open Codex in the same repo (ideally a fresh branch), point it at task.md, and tell it to implement exactly what the file says, nothing more. The executor gets a bounded, written scope instead of a vague verbal brief.
  3. 3

    Claude reviews

    Back in Claude Code, have it diff the branch against task.md: does the implementation match the plan, did anything out of scope change, do the acceptance criteria hold? “Claude plans, Codex implements, Claude reviews” is the single most-cited dual-tool loop in dev communities, because the reviewer is not grading its own homework.

Recipe 2: Parallel-by-story split

  1. 1

    Split the backlog by task shape

    Assign exploratory or cross-cutting stories (a refactor, a bug with unknown cause) to Claude Code, and well-specified, mechanical stories (a new endpoint matching an existing pattern, a batch of test coverage) to Codex.
  2. 2

    One worktree per story

    Give every story its own git worktree and branch so the two agents never share a working directory. This is the same isolation rule as any multi-agent setup, covered in depth in our multi-agent coding workflow guide, applied across vendors.
  3. 3

    Merge through normal PR review

    Each story lands as its own PR. Because the scopes were disjoint and the directories isolated, the merges are ordinary, no special dual-tool ceremony required.

Recipe 3: Cross-review

  1. 1

    One tool writes the change

    Whichever agent fits the task implements it on a branch, as usual.
  2. 2

    The other tool reviews the diff

    Before you look at the PR, the other CLI reads the diff cold and writes up concerns: logic errors, missed edge cases, convention violations. Different model families have different blind spots, which is the whole point.
  3. 3

    You review last, with the critique in hand

    You read the diff alongside the cross-review notes. In practice this converts your review from a cold read into a verification pass, faster, and consistently sharper on the places one model waved through.

Ship your first agent today

Download AIDEN free and point it at your existing Claude Code or Codex setup. No credit card, running in minutes.

Download AIDEN free

Free to start · macOS 12+ · No credit card required

03

Context-File Hygiene: CLAUDE.md + AGENTS.md

The tax of running both tools is context duplication: Claude Code reads CLAUDE.md, Codex reads AGENTS.md. If the two drift, your agents operate on different versions of the project's rules, and the drift shows up as inconsistent code, not as an error message.

Three rules keep it cheap:

  1. 1

    One source of truth

    Pick one file as canonical, most teams pick AGENTS.md since it is the vendor-neutral convention, and make the other either a synced copy or a one-line pointer to it. Never edit both independently.
  2. 2

    Keep the shared task file out of the context files

    CLAUDE.md/AGENTS.md hold stable conventions (stack, commands, style, boundaries). The task file (task.md) holds the current unit of work. Mixing them means every task pollutes every future session's context.
  3. 3

    Review context files like code

    When a convention changes, the context-file update goes in the same PR. Stale context is the silent killer of dual-tool setups, each agent confidently follows a rule you deleted a month ago.

Starting from zero? Our free AGENTS.md / CLAUDE.md generator produces a solid pair from a few questions.

04

The Operational Problem Nobody Warns You About

The recipes above work. What wears people down is the operations around them. Two CLIs means two sets of sessions, and with parallel-by-story you quickly have N terminals: three Claude Code sessions, two Codex sessions, each in its own worktree, each at a different stage of done.

This is the same wall people hit scaling a single tool past a couple of sessions, we cover that trajectory in managing multiple Claude Code sessions, except dual-tool setups hit it sooner because nothing, not even vendor tooling, spans both CLIs.

05

AIDEN: Both CLIs on One Kanban Board

AIDEN is a macOS desktop app built for exactly this setup. It does not replace Claude Code or Codex, it orchestrates the CLIs you already have installed, on your keys and subscriptions, local-first, from a single kanban board.

Per-story agent choice

Every story card gets an agent assignment: this one to Claude Code, that one to Codex. The planner/implementer and parallel-by-story recipes become a dropdown instead of a terminal-juggling discipline.

Worktree per story

AIDEN opens an isolated git worktree and branch for each story automatically, so a Claude session and a Codex session can never collide in a working directory. The isolation rule, enforced by tooling instead of memory.

One shared view

The board shows every session, Claude and Codex alike, as a card with a status, a branch, and a diff. The “which agent is doing what” question gets a screen instead of a scrollback archaeology session.

The shared-task-file contract is built in too: AIDEN's spec gate means every story gets a written, approved spec before either CLI starts coding, the same contract task.md provides, with an enforced approval step. It is free for one project, so you can put your current dual-tool workflow on a board this afternoon and see whether the operational overhead disappears.

FAQ

Can Claude Code and Codex work on the same repo?
Yes. Both are CLIs that operate on a local git checkout, so nothing stops you from running both against one repository. The safe pattern is to keep them in separate git worktrees or branches so each tool has an isolated working directory, and to maintain both a CLAUDE.md and an AGENTS.md so each tool gets project context in the file it actually reads.
Do Claude Code and Codex conflict with each other?
Not at the process level; they are independent programs. Conflicts happen at the file level: if both agents edit the same files in the same working directory at the same time, you get overwrites and merge pain. Isolate them with one branch or worktree per task and the conflict risk drops to normal git merge resolution.
Which tool should take which task?
The pattern most commonly reported in dev communities: Claude for exploration, planning, and review, where deep codebase reasoning matters, and Codex for well-scoped implementation, where you already know what to build. It is a starting heuristic, not a law; run both on your own codebase for a week and let the results reassign the roles.
Is two $20 plans better than one $100+ plan?
For many solo developers, yes. Two entry-level subscriptions, one Claude and one ChatGPT/Codex, cost $40/month and give you two independent usage pools plus two different model families. One $100+ plan gives you a deeper pool on a single vendor. If you routinely exhaust one tool's limits mid-day, the dual-$20 setup buys resilience and model diversity for less money.
Do I need the official Codex plugin for Claude Code?
No, but it is a signal. OpenAI ships an official Codex plugin for Claude Code, announced on the OpenAI community forum, which lets Claude Code delegate work to Codex from inside a session. It is the tightest integration point available today; the workflows in this guide work with or without it because they coordinate through git and shared context files, not through either vendor's plugin system.
Does running both double my context-file maintenance?
Slightly. Claude Code reads CLAUDE.md and Codex reads AGENTS.md, so you maintain two files. The practical fix is to treat one as the source of truth and keep the other in sync, or make one a thin pointer to the other. The cost is a few minutes a week; the payoff is that both agents share one understanding of your conventions.

Keep reading

One board. Both CLIs.

AIDEN runs your existing Claude Code and Codex CLIs side by side on a kanban board, with a worktree per story and per-story agent choice. Free for one project.

macOS 12+ · Bring your own Claude Code or Codex · Your code stays local