r/vibecoding • u/Vcaps5 • 1d ago
Help/Question please dont laugh
I have my codebase open in VS code running Claude Code to prompt the build. Then I duplicate the the workspace and have that Claude code agent on 'plan' mode, and i get it to audit the suggested prompts from the other. My Build agent also has instructions to self review.
I know this is doubling my token usage, which I am sure people will laugh at.
I am curious, am I struggling with a cofidence problem (fueld by a developing understanding of this world) or is this actually a sesinble approach? Any ideas welcome!
3
Upvotes
3
u/Scary-Philosopher-77 1d ago
not silly, but i'd move the second agent to the other end. auditing prompts catches less than reviewing what actually changed. let the build agent run, then have the plan mode one read the git diff in a fresh session with only the task description and the test command, and tell it to find what's wrong, not summarize. a fresh context won't share the build agent's assumptions, and you only pay for review on code that exists.
11
u/redtear1115 1d ago
Next step: use Claude in Chrome to open Gemini and ChatGPT and just let them argue with each other while you grab a coffee lol.
Jokes aside, it really comes down to the complexity of what you're building.
For most tasks, a single model with a solid prompt is already more than good enough.
You don't need to over-engineer a complex multi-agent harness right away. Especially since every major LLM update tends to break half your custom setup and force you to rebuild it anyway.
1
u/DeepOntology 1d ago
This is a very sensible approach, and you're going in the right direction!
What I would say is that you can add discretion: if you're building a relatively simple feature, if it adds tests, and if you try the feature and it works, you probably don't need the audit step. If you're building something more complex, auditing is perfectly reasonable and very useful!
One thing: I wouldn't generally have an agent audit its own code. Instead, have it write a prompt for a "context-free" agent (i.e. an agent who is looking at what it produced "fresh," with no background) to evaluate its code. Also, make sure you specify the dimensions you're auditing the prompts or code along: succinctness, intelligibility, clarity, ambiguity, etc. Giving agents a set of dimensions to judge generally pushes them to do a better job.
1
u/NagatoKami 1d ago
You don't even need to set on plan/act. Instruct the senior model to be the planner and the junior one to be the one who implements and writes you the results. No need to copy paste anything when you have a session with both. Just leave the second windows (session) open so they can communicate and you've basically got an orchestrator.
1
u/onitsoga 1d ago
not a confidence problem. a second opinion is sensible early, it stops paying off once the reviewer just re-reads what your build agent self reviewed. does the plan agent catch anything? (fwiw a kanban app i'm building has agents claim cards and leave handoff notes.)
1
u/BlackberryOk182 1d ago edited 1d ago
I basically do the same thing. I've got several Claude sessions building in parallel and a separate model (Grok) that just watches them. It reads the commits and status notes and flags stuff like a session calling something done without proof, or two sessions grabbing the same task. The builders have to post real screenshots before anything counts as done, because self-review alone kept passing things that weren't actually finished.
Honestly the second set of eyes catches more than I expected, especially drift from the original plan. One tip though: a different model works better as the reviewer than another copy of the same one, since the same model tends to agree with itself. And make the reviewer check actual output (tests, screenshots) instead of just reading the plan. It does cost more tokens, but a lot less than redoing a build that went sideways.
I've had a lot done over the last 30 days building three different apps, one that's going to continue building for the next 2 years. another that's just about finished after 2 weeks that allows me to view my Claude account usage and statistics from my phone anywhere in the world.
And a third final was a advertisement and tracker blocker for my cell phone that works better than any pop-up blocker out there.
Still need human eyes on all the work because despite everything AI is still a lot more stupid than humans when it comes to organization and decision making and memory
1
u/shaymagen 1d ago
not laughing, I do a version of this too. having a second agent in plan mode poke holes before the build agent runs catches dumb stuff early. I'd just save it for bigger changes so you're not paying double on the small ones
1
u/Qajoule 21h ago
You’re already applying some of the core ideas behind Git branches and worktrees without necessarily realizing it.
I’d recommend learning the fundamental concepts behind Git, rather than just its commands. I think you’ll find that Git provides a structured way to achieve much of what you’re already doing manually.
0
u/hl_lost 1d ago
Lol. Nice. There are frameworks that will simplify this and put more structure around this. I do applaud you in using AI to write your own software. Don't ever pay anyone else again for software!!!!