← All parts of this equation

Equation 1 · Part 13 · How Claude Code's Memory Actually Persists Across Sessions

Starting index or lower bound: i=1

Tstart=Tsys+Tmem+Tenv+Ttools+∑i=1kMiT_{\mathrm{start}} = T_{\mathrm{sys}} + T_{\mathrm{mem}} + T_{\mathrm{env}} + T_{\mathrm{tools}} + \sum_{i=1}^{k} M_i
i=1i=1

What this part means

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Its job in the formula

i=1 appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

The passage around this formula

Anthropic ships an interactive walkthrough of a representative session specifically to make this loading concrete, breaking startup context down by component with illustrative token counts: a system prompt around 4,200 tokens, an auto-memory index around 680 tokens, environment information around 280 tokens, MCP tool names around 120 tokens with full schemas deferred until needed, then a global CLAUDE.md around 320 tokens and a project CLAUDE.md around 1,800 tokens in that particular worked example [ 4 ] . The documentation is careful to call these “representative numbers” rather than fixed constants — actual figures move with every project’s own files — but the shape they describe is stable…

Read this part in the article →

Learn the underlying idea

Σ adds a collection of terms. Π multiplies them. The lower and upper labels tell you which terms belong to the collection.

Open the illustrated sums and products: repeat an operation over an index guide →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.