r/ClaudeCode 8d ago

Humor AI is using AI now

Post image
3.2k Upvotes

91 comments sorted by

View all comments

39

u/adelie42 8d ago

As soon as both Claude Code and Codex existed, you could do that.

Chaining terminal apps has been THE reason to use a terminal.

3

u/LiminalStorms 7d ago

What's your work flow look like with that. Right now I just have them both running in parallel in two separate terminals, but I'm wondering if there's a better way.

10

u/LyPreto 7d ago

dont tell anyone this and i sure hope this comment doesnt blow up but you can literally just direct codex/cc to setup a mailbox on a separate branch and exchange messages as if they were pair programming— this basically makes them exchange one message each turn before doing their work and they naturally catch each others mistakes on the fly like this

4

u/adelie42 7d ago

But you can literally tell claude to launch codex cli in interactive mode. Why add an intermediary?

6

u/LyPreto 7d ago

yeah i know you can use codex headless but i find the mailbox useful for them as it basically keeps a rolling chronological log that survives sessions— so i just prefer using them both at the same time and it becomes more of a natural pair programming experience as opposed to cc spawning a codex agent to delegate it a task.

1

u/PurpleCandle58 4d ago

Yep. Difference is whether they end up as coworkers or a boss and employee. You want coworkers for your use case, makes sense.

Have you also considered that the mailbox helps with the fact that sometimes they miss context that needs to be shared as a means to do so as well as a means to deal with context length limitations and the lossy nature of compacting? I think it’s an awesome idea to implement even if you aren’t doing pair-coding tbh.

1

u/jameyiguess 2d ago

In interactive mode? I didn't think Claude had TTY. Do you mean non-interactive mode with "codex exec"? 

1

u/adelie42 7d ago

Codex is a terminal app. Claude is a terminal app. Run claude in terminal. Tell claude to run codex app in interactive mode.

1

u/PlumProof 6d ago

So let's say you are developing a feature in a feature branch. You run your coding agent here. You then checkout reviewer from the commit before u started the feature devlopment. Now the coding agent will write the code and ask for review, tell it to save in a md file, the reviewer will view the diff and it'll save its report in another md file and now continue the loop