← Back to article

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

What does this equation mean?

kk

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.

This mathematical expression combines the displayed quantities; its precise role follows from the surrounding article text. 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

kk

Symbol k

k is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

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 →