scratchpad
In plain wordsA space where an AI writes rough working — calculations, plans, notes — before or while producing its answer, much as a person jots on scrap paper.
- 1
Reasoning
Text that a language modellarge language model, n.: A computer program trained on enormous amounts of text to predict the words that come next. At vast scale, that simple skill lets it chat, answer questions, translate, summarize and write code. generates on the way to an answer, such as partial sums or a trace of program state, and then reads back while producing later tokenstoken, n.: The small chunk of text an AI language model reads and writes — often a word, part of a word or a punctuation mark. AI usage, limits and prices are counted in tokens.. Because a transformer performs a fixed amount of computation per token, writing intermediate results down lets it split a long calculation into many short ones; in Maxwell Nye and colleagues' 2021 experiments, models taught to use a scratchpad became far more accurate at multi-digit addition and at predicting what a piece of code outputs. The idea fed directly into chain of thoughtchain of thought, n.: Getting an AI to write out its reasoning step by step before giving an answer, the way a student shows their working. This often makes answers to math and logic problems more accurate. prompting and today's reasoning modelsreasoning model, n.: An AI model trained to work through a problem step by step in hidden 'thinking' text before it answers. Letting it think longer generally makes it better at math, coding and planning., whose reasoning tracesreasoning trace, n.: The written-out 'thinking' an AI reasoning model produces before its final answer — notes to itself full of attempts, checks and corrections, which users may or may not get to see. are scratchpads at scale.
With a scratchpad, the model carried every digit correctly through twelve-digit addition.
- 2
Agents
An area outside the main conversation where an agentAI agent, n.: An AI system that does not just answer but acts: given a goal, it decides on steps, uses tools such as a browser or code editor, checks the results and keeps going until the job is done. records notes, plans, to-do lists or intermediate findings — often a file such as NOTES.md, a state object or a dedicated 'think' tool — and re-reads them later. It complements compactioncompaction, n.: Like replacing a stack of rough notes with a one-page digest: when an AI's conversation grows too long for its memory, the history is condensed into a summary and the work continues from there. and agent memoryagent memory, n.: The ways an AI assistant or agent keeps information — your preferences, past conversations, lessons from earlier tasks — and brings it back later, beyond what fits in a single conversation. by keeping progress available after older context has been summarized or cleared.
Origin
Maxwell Nye and colleagues introduced the term for language models in 'Show Your Work: Scratchpads for Intermediate Computation with Language Models' (arXiv, November 2021). The agent sense spread in 2024–2025 with note-taking patterns in coding and game-playing agents, described in Anthropic's 2025 context-engineering guide.
Usage note
In safety research a 'hidden scratchpad' is reasoning space a model is told nobody will read; studies of sleeper agentssleeper agent, n.: An AI model secretly trained to behave normally until it sees a hidden trigger — such as a particular date — and then to behave badly, like a spy waiting to be activated. and alignment fakingalignment faking, n.: An AI acting out the behavior its trainers are rewarding only while it thinks its answers will be used to retrain it, to protect the values it already holds from being changed. (both 2024) used one to elicit and inspect concealed reasoning. Whether such text reflects the model's actual computation is studied under chain-of-thought faithfulnesschain-of-thought faithfulness, n.: Whether the reasoning an AI writes out really reflects how it reached its answer, rather than being an after-the-fact story that leaves out what actually drove the decision..
Related
- chain of thoughtchain of thought, n.: Getting an AI to write out its reasoning step by step before giving an answer, the way a student shows their working. This often makes answers to math and logic problems more accurate.
- reasoning tracereasoning trace, n.: The written-out 'thinking' an AI reasoning model produces before its final answer — notes to itself full of attempts, checks and corrections, which users may or may not get to see.
- working memoryworking memory, n.: The small amount of information held in mind right now while doing a task. For an AI model, that is roughly whatever currently sits in its context window.
- agent memoryagent memory, n.: The ways an AI assistant or agent keeps information — your preferences, past conversations, lessons from earlier tasks — and brings it back later, beyond what fits in a single conversation.
- compactioncompaction, n.: Like replacing a stack of rough notes with a one-page digest: when an AI's conversation grows too long for its memory, the history is condensed into a summary and the work continues from there.
- chain-of-thought faithfulnesschain-of-thought faithfulness, n.: Whether the reasoning an AI writes out really reflects how it reached its answer, rather than being an after-the-fact story that leaves out what actually drove the decision.
Sources
- Nye, M. et al. (2021). Show Your Work: Scratchpads for Intermediate Computation with Language Models. arXiv:2112.00114. arxiv.org/abs/2112.00114v1
Mentioned in
chain of thoughtchain of thought, n.: Getting an AI to write out its reasoning step by step before giving an answer, the way a student shows their working. This often makes answers to math and logic problems more accurate., context poisoningcontext poisoning, n.: When a mistake or a planted falsehood gets into an AI's working notes or memory and the AI keeps relying on it, so the error grows over later steps., working memoryworking memory, n.: The small amount of information held in mind right now while doing a task. For an AI model, that is roughly whatever currently sits in its context window.