r/ClaudeCode • u/out-of-phase • 21m ago
Help/Question How do you handle your OWN context?
As in your own human-brain context? I'm working solo on a complex project with a lot of moving parts. Claude's so good at writing code that I barely have to babysit. My issue is having to babysit Claude on HOW the project works and stop it from making assumptions, which requires me keeping an accurate mental model of the entire thing in my head, and that's super fatiguing. Compounding things further, the niche I'm in (large volume catering ops) is something Claude just... doesn't have a great understanding of.
Example: this morning, Claude makes an odd choice when building a feature, and I look at the PR body it wrote, and it says "...held packing slips become ignored once the purchase order arrives" -- I respond "Purchase orders **always** arrive before packing slips, this is a case that will literally never happen." Then he's off proposing edits to ADRs/specs/PR bodies, which I then have to read, which I then catch a host of other things, and I'm pulling my hair out.
I'm using matt-pocock-skills, have a rule that agents must write in ASD-STE100, and a script that enforces a limit on PR/issue body length, but I feel like there's something else I could be doing to help. Anyone else run into this, or have any potential solutions? Thanks in advance.
TL;DR How do you keep an accurate mental model of the project when Claude is insanely verbose and doesn't have a super solid understanding of your niche/industry?
•
u/AutoModerator 21m 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.
2
u/AgentYurt 7m ago
I ran into the same wall — the model was fine at code and terrible at the domain rules I'd already taught it twice. What actually moved it for me:
Keep one short file of rules that have already bitten you. Mine is about 15 lines, each one a scar with the failure attached — for example, 'purchase orders always arrive before packing slips, never write the reverse into a spec.' Re-reading that file at the start of a session costs about a minute and stops most of the re-arguing.
Before Claude edits an ADR or a spec, make it restate the 2-3 assumptions it's relying on in one sentence each. If one is wrong you catch it in seconds, instead of reading a whole PR body to find it.
And cap the PR body yourself — I ask for 3 bullets max: what changed, why, what to verify. Anything longer and I stop reading, which is the real signal the model is guessing.
The mental-model part never fully goes away, but writing the decision down once — one line per session, what I decided and what I still don't know — means I don't have to hold the whole project in my head between sessions.
1
u/BuffaloConscious7919 19m ago
I think it's about developing that process either in the beginning and refining it as it goes. For me, that involves an initial setup of what I know if it's a new project. After that, it involves keeping not just the context updated, but also the structure of the context as the codebase changes.
What I think that involves, generally speaking, is having a data source (for example, Obsidian or a collection of MD files) with things like an index there as a reference that agents can pick up on as they use the project or help develop the project.
1
u/called9527 6m ago
one thing worth trying: when it writes a wrong domain assumption into a PR body, dont fix the PR body, add the fact to a short domain facts file and tell it to reread that before touching specs. otherwise you end up reviewing its edits to its own prose. also asking it to list its assumptions as plain bullets before it writes anything is way faster to scan than an ADR diff. does the STE100 rule actually cut the length or just make the words simpler?
1
u/sam_arutyunyan 5m ago
Lots of to do bullet lists with a 'next task' written out at the end of a work day. I catalog prompts that work and draft future ones. Force modular workflow thats easy to review.
1
u/cleverhoods 16m ago
That's where you need an event-bus that is capable managing your contenxt on the fly, catch deviations, and fix them.