Cross-Talk Is A Workflow Problem
Running Claude Code and Codex on the same repository can be useful. You may want one agent to investigate and another to implement. You may want to compare approaches. You may prefer different providers for different task shapes.
The risk is cross-talk: mixed context, overlapping branches, duplicated edits, or one agent reacting to artifacts from another run without understanding the boundary.
Junction can show both sessions side by side in a browser control surface. The workflow still needs isolation.
Use Separate Sessions
Do not ask two providers to share one conversational context. Start separate sessions with clear names:
claude: plan auth form cleanup
codex: implement auth form cleanupEven if both sessions work on the same repo, their purposes should be different. If both are asked to """fix auth,""" you are creating a collision, not a comparison.
Use Separate Branches Or Worktrees
The safest pattern is one branch or worktree per agent run:
agent/claude-auth-plan
agent/codex-auth-implementationThis prevents the agents from editing the same working tree at the same time. It also gives you a clean diff for each run.
If you intentionally want both agents to edit the same branch, do it sequentially, not concurrently. Let one finish, inspect the diff, then decide what the second should do.
Give Each Agent A Role
Roles reduce overlap. For example:
- Claude Code: inspect the repo and produce a plan.
- Codex: implement the smallest approved slice.
- Claude Code: review the resulting diff.
- Codex: fix a specific failing test.
The exact roles are less important than the separation. The prompt should tell each agent what it owns and what it should not touch.
Avoid Context Laundering
Context laundering happens when you paste one agent""'s confident but unverified conclusion into another agent as fact. That can make mistakes spread.
Instead, pass context as evidence:
Claude suggested the issue may be in src/auth/session.ts, but this is not confirmed.
Please inspect that file and verify before editing.That wording preserves the lead without turning it into an assumption.
Keep Approvals Separate
Approval prompts should be evaluated against the session""'s role.
If the planning session asks to edit files, that may violate its role. If the implementation session asks to run a broad command outside the target package, that may be scope drift. If the review session starts changing code before explaining the issue, pause.
Junction""'s approval flow helps because you can connect the request to the active session, transcript, and diff. Use that context.
A Practical Same-Repo Workflow
- Start a Claude Code session named
claude: investigate checkout bug. - Ask for a plan only.
- Start a Codex session named
codex: implement checkout bug fix. - Give Codex the issue, relevant files, and the approved plan as non-binding context.
- Keep Codex in its own branch or worktree.
- Review the Codex diff.
- Optionally ask Claude Code to review the PR, not to edit it.
This gives each provider a clean lane.
What To Watch For
Stop and reorganize if:
- Both agents edit the same file differently.
- One session references changes from another branch as if they are merged.
- The second agent expands scope to match the first agent""'s speculation.
- A branch contains files from both runs.
- You cannot explain which agent produced which diff.
If provenance is unclear, review quality drops.
Tradeoffs
Isolation takes more setup. You may create more branches and worktrees. You may have to copy a short summary from one session to another.
That overhead is worth it when comparing providers or running parallel work. Without it, you can end up with two agents racing through the same files and a human stuck untangling the result.
Where Junction Fits
Junction makes same-repo multi-agent work easier to supervise because sessions, providers, output, approvals, and diffs are visible in one place. It does not make overlapping edits safe by itself.
For broader provider workflow guidance, read Use Claude Code and Codex Side by Side. For daemon-level separation, read Keep Claude Code and Codex Auth Separate on Each Daemon. Start with the setup guide if either provider is not configured yet.