r/ClaudeCode • u/m-ritter • 6d ago
Built with Claude Making Claude Code list the decisions it made without asking me
When Claude Code builds a feature, it makes a lot of small choices along the way, like which file a new function goes into or what happens on an empty input. Most of them are fine. The ones that hurt are the choices I never saw, because I only found them later in a big diff.
So I changed where those choices show up. Before any code exists, Claude Code writes a plan that I approve. Besides the design and what done means, the plan has two sections I read first. Decisions made for you lists every choice the agent made on its own, so I can overrule one in a sentence instead of in a rewrite. Not doing lists what it will leave alone, which gives the later review something to check scope against. Risky or unsure items are marked so I look there first.
After the build, an agent that did not write the code checks the result against that plan with evidence, and anything that went beyond the plan shows up as a finding. My own review then starts from a plan I already agreed to.
I built QualityLayer around this loop and I'm the developer. It runs on top of Claude Code, which does the planning, building and checking inside it. Repo: https://github.com/maxritter/qualitylayer
•
u/AutoModerator 6d 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/ItsMaGenetics 6d ago
I swear every time I see a post written by AI i get a brain bleed.
1
u/carstenkoch 5d ago
Hey, we do something close to this in a factory of coding agents on an open-source database, and seeing the agent's own choices before the diff paid off for us too. One step further that helped: when I accept one of those decisions and it binds later work, it goes into the decision log as its own file, with the option it rejected. Otherwise the next session makes the same choice again from scratch, sometimes the other way.
That log needs pruning, though. We keep only decisions that still bind work, so an agent never reads a superseded one next to the current one. How do you decide which of a plan's decisions are worth keeping beyond the one feature?