Claude Code memory: which files actually load at session start
A test of ten memory setups on Claude Code version 2.1.300 measured how many tokens each configuration loads. Existing imported files and rules files without a path filter were found to load in full. An import pointing to a missing file loads nothing and produces no error, still ending with exit code 0. The tests also found that AGENTS.md beside CLAUDE.md is never read, and that imports inside path-filtered rules files load at session start regardless. Because every loaded character is charged on each request, these behaviors affect cost.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in