Glossary

Agent scratchpad

A short-lived working space where an AI agent writes its plan, to-do list and intermediate notes during a run, separate from its final outputs and long-term memory.

An agent scratchpad is a working space where an AI agent writes down its plan, a to-do list, intermediate results and notes to itself while it carries out a task. The agent reads the scratchpad back at each step to recall what it has done and what comes next. Its contents serve the current run and are usually discarded once the task is finished.

Where the term comes from

Early prompting research used scratchpad for the space where a model wrote out intermediate steps before giving an answer, an idea that later became chain-of-thought prompting. In agent systems the word moved from reasoning text to a tool: a place outside the model’s reply where the agent records its plan and progress. ReAct agents, which alternate between reasoning and acting, often keep this record in the prompt itself, while later designs give the agent a dedicated tool or file for it.

What goes on a scratchpad

A typical scratchpad holds the task broken into steps, a status for each, partial findings and open questions. Task decomposition and agent planning produce the first list, and the agent updates it as it works through the agent loop: marking a step done, adding one it discovered, noting a source to revisit. A research run might list ten questions, tick them off as it finds answers and record which sources were dead ends.

The scratchpad acts as working memory for the run. It overlaps with short-term memory, though the agent writes it deliberately instead of accumulating it from the conversation.

Why agents use one

Long tasks drift. After dozens of tool calls, the original instructions sit far back in the context window, where models attend to them less reliably, an effect described under lost in the middle and context rot. Rewriting a short plan and reading it back keeps the goal and the remaining steps in view. It is one form of context offloading: the agent keeps a compact record of progress instead of relying on the full history.

A scratchpad also helps with recovery and review. If a run stops part-way, a long-running agent can resume from the plan, and a person reading the run afterwards can see what the agent intended at each point. Paired with agent tracing, it explains why each tool call happened.

Scratchpad vs memory vs artifacts

Aspect

Scratchpad

Agent memory

Artifacts

Holds

Plan, to-do list, intermediate notes

Facts and preferences about users

Finished outputs such as reports and code

Lifetime

One run

Across sessions, updated as facts change

Until deleted

Read by

The same run

Later runs and other agents

People and later runs

Each kind of state wants different storage. Putting a to-do list into agent memory fills it with stale tasks, and leaving a finished report on the scratchpad loses it when the run ends. Agent artifacts, agent state and short-term vs long-term memory cover the neighbouring ideas, and memory vs context window explains why none of them should live only in the prompt.

Agent scratchpads in Exabase

Workers, the autonomous agents that run jobs inside an Exabase Base, have a built-in scratchpad. The scratchpad-todo-write and scratchpad-todo-read tools let a Worker write a to-do list and read it back while planning within a run, alongside tools for searching resources, writing notes, organising folders and tags, managing tasks and searching the web. The Worker tools guide lists them all, and a Worker’s toolPermissions setting controls which ones it may use.

Each run is recorded as a conversation, which you can read through the run messages endpoint to see the plan next to every tool call and the final output. Whatever should outlast the run goes elsewhere: finished outputs become notes or files stored as Resources, follow-ups become tasks, and facts about a user go to Memory. The running Workers guide covers scheduled and on-demand runs. Exabase hosts the run, the tools and the storage; how the Worker plans follows the prompt you give it.

FAQs

What is an agent scratchpad?

It is a working space where an agent keeps its plan, to-do list and intermediate notes during a run. The agent reads it back at each step to stay on track.

Is a scratchpad the same as chain-of-thought?

They are related. Chain-of-thought is reasoning written into the model’s output, while an agent scratchpad is usually a tool or file the agent writes to and reads from across many steps.

How is a scratchpad different from agent memory?

A scratchpad serves one run and can be discarded afterwards. Memory holds facts that should persist across sessions, which the agent memory solution covers.

Does a scratchpad save tokens?

It can. Reading back a short plan costs fewer tokens than relying on the whole history to recall the goal, and reduce token costs covers other ways to keep context small.

Should users see the scratchpad?

Often, yes. Showing the plan helps users follow a long task and stop it early if it heads the wrong way, which matters for deep research agents.

Can several agents share a scratchpad?

Yes, with care. A supervisor agent can write a shared plan that subagents update, provided each step has a clear owner. The multi-agent coordination use case shows one approach.

Related pages: Agent artifacts, Agent workspace, Working memory, Agent planning, Context offloading, Workers, Research agents, Best AI agent frameworks, CrewAI vs LangGraph, The rise of background agents, Agentic AI, Tool use, Multi-agent architecture.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.