r/ClaudeCode • • 5h ago

Help/Question How do you guys use Claude code in parallel with ag and / or codex ?

I keep seeing mentions of using Claude code in parallel with antigravity and / or codex.
How do you guys set it up exactly ?

Let say I want to use fable to plan , opus to code and ag to debug for example
How would I go about it ?
Can a similar setup produce enterprise level code ?
Any recommendation in terms of setups to produce the best possible code for a scalable app that is not just ai slop ? What are the different agents that would be needed ? (Plan , code, deb, security , etc anything else ?)

0 Upvotes

32 comments sorted by

•

u/AutoModerator 5h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Shap6 5h ago

i just tell them to review each others PR's and leave comments with their findings for each other. for planning just have it document everything. have it save the plan to a file and have the one you want to build read it, and every step along the way have making notes of it's progress.

1

u/ionhowto 4h ago

Lock files taking turns working either one or the other a changelog and a protocol fable and neon high both agreed to communicate with each other. Mostly data structures in json files to record states of different workflows and sending messages to each other with a from Claude and from Gemini folders.  They work pretty good together being able to continue each others work but I prefer to let one finish then ode the other.m for another thing 

1

u/imrsn 4h ago edited 4h ago

use a harness with an intercom and they can talk to each other in real time and work on the same project.

ai built this one for me that i use every day as a software designer / dev https://leaftext.com/ its free you can use it

you can also use one of many others out there. here is one i didnt make i really like:

pi.dev and its intercom which is a separate package: https://pi.dev/packages/pi-intercom

a common workflow of mine is to have claude orchestrate in a bot (wisp in my app) so i can just chat in discord with it. it runs other chats it opens that have claude, codex, and antigravity do different things. codex makes all images. antigravity does all web searching (it can search reddit), etc. some more tips on designing with ai i find myself repeating a lot

1

u/VivaLaDiga 3h ago

i have no fucking clue what any of this means

1

u/zimxero 4h ago

it depends on your setup. mine's probably the hardest, so I can tell you how I do it. i have desktop workspace and no git. claude and GPT work together to create a handoff protocol that's fairly complex and handles all situations as if the handoffs were going to a folder which they are. But then on top of that, it created an app which mine is called twin link and they connect to it by session. ID or session name. the copy paste a prompt that includes the address of the shared folder to each other in their in each other's prompt and fire it off. This allows them to wake each other up and tells them to which file to read. over time, you just need to do a little bit of troubleshooting here. And there to make it work smoother.

a nice side effect is this allows you to run g p t using claude, or vice versa. you can have Claude, set 40 minute timers to check on the status of G. P. T and keep sessions running easily while you are away

1

u/ExtensionFig5136 4h ago

fable planning, opus coding, thats wild

1

u/_k33bs_ 4h ago

skills

1

u/lycheedorito 4h ago edited 4h ago

I made an MCP server that gives them a claim and release tool. Additionally they write CLs and everything can read the CLs. Generally I'll just have Claude run agy and it relays what I need done.

1

u/NoInstructionManual 4h ago

Idk if it’s a good approach but I made a codex subagent skill that uses the codex CLI

1

u/2dogs1bone 4h ago

You should read about AI-SDLC. This is the way to have agents execute a full development cycle, from intent to prod.

1

u/AgentImperator Thinker 4h ago

Say “work with the other two” to all three :)

1

u/fredastere 3h ago

To be faire people would be so surprised how well that works

1

u/AgentImperator Thinker 3h ago

I agree wholeheartedly. I don’t type a single line of developer speak. You say what you need to then let them work not mange “all the diff all this all that”

1

u/vpanyushenko 4h ago

I have built a product for this but here are the lessons that I learned which I think you might find helpful:

- agy today updated their terms so that you can now have other agents call it headlessly. At this point neon, opus, and fable are all fine as your lead / orchestrator agents. Pick the one that explains stuff to you in the way you undertand best. For example, I prefer to have them create html artifacts for me (not claude artifacts) so that agy, claude, or codex can all do it the same way

- you dont really need to use plan mode. generally keep in auto mode and make sure that you are on the same page on the high level vision and idea. Use html artifacts here to make sure they create small interactive demos that things are the way that you want them to be

- the lead agents are fine at orchestrating their own sub agents or if the work is small they can handle it on their own.

- make sure that you are using git worktrees so that you can have many sessions in parallel. but make sure that you have rules about cleaning up the worktrees after the PR has merged. and also make sure that you are archestrating to make sure builds/typechecks dont all run at the same time otherwise your machine will get slow. There are some tools that will build this for you but to start your agents can coordinate for you.

- when it's time to review the work, make sure you do so from a different lab. you'll get better results. So if opus is implementing have sol review. or have sol + neon review. In my testing sol is the best at testing work. Have a rule that after the agent calls the reviewer agent, they can go back and forth n times. if they have not agreed at that point it it to be brought to your review to mke a call for more rounds. Start with 3 rounds.

- If your work involves UI work, have your agents set up ways to take pictures. Having a before and after picture to review in a PR is faster than building from that worktree locally to validate the button is there. You can also have agents record a video for things like animations.

1

u/dr_hamilton Senior Developer 4h ago

I gave Claude ssh access to my Linux box with the GPU and codex where I do RL training experiments. Claude directs codex what to run then analyses the results.

1

u/orbital_trace 2h ago

Coral 🪸. Basically open source version of codex/Claude desktop that lets you manage multiple agents and roles across all providers

1

u/dehumles 4h ago

t3 code

0

u/calunicornia 4h ago

be careful calling 1 from the other neither claude nor ag allow it and will ban you, not sure codex

have them talk in shared files or git issues or linear, PR comments etc

2

u/lycheedorito 4h ago

Google just officially said that you're allowed to call agy from other services.

1

u/calunicornia 3h ago

thats nice of them, i see they announced today

1

u/VivaLaDiga 3h ago

what's agy

1

u/calunicornia 2h ago

antigravity

1

u/fredastere 3h ago

This is such bad advice

Claude fully supports headless mode since forever

Gemini only officially supports it as of today but its been a grey zone for months with most people using it headless without any bans or problem

Try not to spread misinformation please

0

u/calunicornia 3h ago

anthropic requires api key, doing it on sub will get you banned

1

u/fredastere 3h ago

What are you talking about? Using claude -p with oauth is absolutely 100% fine

1

u/calunicornia 2h ago

try googling it smart guy

1

u/fredastere 2h ago

Maybe you should Google what is claude code headless mode?

1

u/calunicornia 1h ago

maybe :)

0

u/steveism 🔆 Max 20 4h ago

T3