← Back to article

Equation 2 · How Claude Code's Memory Actually Persists Across Sessions

What does this equation mean?

MiM_i

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

the token count of the i -th memory file discovered along the walk from the filesystem root to the working directory, summed over however many, k , are found. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

MiM_i

Symbol M_i

the token count of the i -th memory file discovered along the walk from the filesystem root to the working directory, summed over however many, k , are found.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

How to interpret it

Read this expression with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

where MiM_i is the token count of the i -th memory file discovered along the walk from the filesystem root to the working directory, summed over however many, k , are found. Every term is committed before the developer types a word. The point is not the specific numbers; it is that TstartT_{\mathrm{start}} is arithmetic settled at launch, and every additional CLAUDE.md file anyone commits to a repository is a term someone chose to add to it, permanently, for the rest of that session.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to How Claude Code's Memory Actually Persists Across Sessions

Browse the mathematical compendium →