samwize.com · 23d · discuss
The shared project I work on has a CLAUDE.md of about 12,000 tokens. My replacement is about 900. In Codex, an AGENTS.override.md does the swap. Claude Code has no override file, so I built one from 2 parts: a setting that skips the team’s file, and a hook that loads mine. What loads at startup Claude Code loads ~/.claude/CLAUDE.md, then the CLAUDE.md in the folder you start in and every folder above it. (That’s the instruction side of memory. I wrote about where auto memory lives before.) A subfolder’s CLAUDE.md loads later, only when Claude reads a file in that...