A scratchpad originally means a pad for jotting down quick calculations or thoughts. In AI, it refers to a space where a language model writes intermediate calculations or reasoning steps before giving its final answer. In 2021, Google researchers published work showing that having language models write intermediate computations to a scratchpad first improved performance on multi-step computation tasks.
For AI agents, the term also describes a working-memory space, often a file or separate memory store, where plans, decisions and progress are kept over a multi-step task. It is close to chain-of-thought prompting, which asks a model to lay out its reasoning in sequence, but the emphasis is on a separate place where that record is kept.