← Mathematical compendium

Published equation contexts

at=π(ct)a_t = \pi(c_t)

Why this formula appears here

Let ctc_t be the context available to the model at step t : system instructions, conversation so far, file contents, tool outputs. The model is a policy π\pi that, given ctc_t , emits either a final answer or a tool call ata_t : at=π(ct)a_t = \pi(c_t). Claude Code executes ata_t — subject to a permission check described in the next section — against the real filesystem, shell, or network, producing an observation oto_t : a diff applied, a command’s stdout and exit code, a search result. That observation is appended to the context for the next step:

Read the full article-specific guide →

Read the representative guide

How to interpret it

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

Research cited beside this formula

Published contexts (1)

A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.

at=π(ct).a_t = \pi(c_t).

Equation 6 · AI Agents & Systems

Claude Code, From First Principles: The Agentic Loop, Permissions, and What Actually Executes

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions.

Let ctc_t be the context available to the model at step t : system instructions, conversation so far, file contents, tool outputs. The model is a policy π\pi that, given ctc_t , emits either a final answer or a tool call ata_t : at=π(ct)a_t = \pi(c_t). Claude Code executes ata_t — subject to a permission check described in the next section — against the real filesystem, shell, or network, producing an observation oto_t : a diff applied, a command’s stdout and exit code, a search result. That observation is appended to the context for the next step:

Equation guide → · Article →