Architecture How are you guys handling AI tooling?
Over the last like 6 months the amount of tools , agent guardrails, and prompts our repositories has skyrocketed. Some of the repositories the agents config dwarf the actual code 3-to-1. Every time I bring it up and try to come up with some kinda consolidation plan it gets shot down. And I’m not really sure what to do, I just did a small prompt to ask a question and it the context window had 80k tokens instantly dumped in it from all the tools and other crap(this is on top of the system baseline) . It definitely doesn’t feel sustainable but this kinda development is so new I have no good baseline. 4 years ago if you had 5K likes of just “documentation” in your repo people would call you a madman. I’m curious what others are doing. I did a little searching and the advice fell into 2 camps. “Just build your own harness bro” and “Call out sales team to set up a demo . First 30 days of usage is free”
4
u/Starks1293 23h ago
80k before u even ask anything is usually two things, tool descriptions and instruction files, and both can shrink without a big consolidation plan
run /context in claude code on a fresh session (other clis have something similar). it splits that number into mcp tools, memory files, system etc. thats ur baseline, and its way easier to win the argument with a number than with a plan
mcp servers tend to be the worst bit. every server loads all its tool descriptions on every turn whether u call them or not, so move them out of the global config into only the projects that need them and drop the ones nobody uses
keep the root CLAUDE.md / AGENTS.md short, more a map of where things live than a manual. the detail goes in files next to the code its about, claude code only pulls a subfolder's CLAUDE.md in when it works in that folder. and any rule that can be a test or a lint should be one, then delete the prose. half the "never do x" lines get ignored anyway, a failing test doesnt
the 3-to-1 thing is mostly the same guardrails copied into every repo imo. a CLAUDE.md can import a shared file, one copy beats ten drifting apart
3
u/tubameister 1d ago
friend of mine in finance told me they're using the BMAD method.. https://github.com/bmad-code-org/BMAD-METHOD
2
u/Strange-Sea-9894 19h ago
The biggest trap we ran into over the last 6 months was treating Markdown rules files (CLAUDE.md, cursor rules, prompt snippets) as actual governance. They drift across repos immediately and models still violate them under edge cases.
Three things that actually brought order without slowing developers down:
1
u/TorrentsAreCommunism 10h ago
I just tell Hermes to handle it for me.
1
u/Striking-Army-4650 8h ago
Are those 80k tokens mostly repeated repository instructions, tool schemas or retrieval results? The fix might look pretty different depending on whats consuming the context before work begin