Discussion about this post

User's avatar
Pawel Jozefiak's avatar

The conditional loading point is what most people miss. I went through a similar evolution with my agent's instruction file - started as one growing http://CLAUDE.md that hit 800+ lines before I realized the problem wasn't length but specificity.

What worked for me was a different split than pure file paths: behavioral rules in the base file (what the agent always needs), domain workflows as skills (loaded on demand), and a self-extending memory layer the agent manages itself.

The base file stayed under 200 lines. Skills handle the rest. Token cost dropped and consistency went up because the agent only loads what's relevant.

Full breakdown after 1000+ sessions of iterating on this: https://thoughts.jock.pl/p/how-i-structure-claude-md-after-1000-sessions

Curious - do your 27 files ever conflict with each other when multiple load at once?

2 more comments...

No posts

Ready for more?