Model
LLM · the reasoning engine
A neural network that, given input text, generates the most likely continuation. It reasons, writes and decides, but on its own it remembers nothing between calls and cannot act on the world.
AnalogyA brilliant expert in a windowless room: they only know what you slide under the door.
ExampleClaude, GPT, Gemini, Llama
API call: text in → text out
Context
Context window · working memory
Everything the model “sees” in one call: instructions, history, files read and tool results. It is finite (measured in tokens) and it is the scarcest resource to manage.
AnalogyThe workbench: whatever does not fit on it does not exist for the model.
Example200K tokens ≈ a long book
Filling it with logs degrades reasoning
Instructions
System prompt · CLAUDE.md · AGENTS.md
Fixed text injected at the start of every session to define role, rules and project conventions. It is always loaded, so it must be short and high-value.
AnalogyA new hire’s onboarding: “this is how we work here”.
ExampleCLAUDE.md
- Use pnpm, never npm
- Run the tests before committing
Memory
Persistence across sessions
Information that outlives the conversation: decisions, preferences, project status. The model does not store it; the system does, and puts it back into the context when needed.
AnalogyThe expert’s notebook: what they write down today, they read tomorrow.
Examplememory/decisions.md
“ADRs live in /docs/adr”