Scratchpad
Domain: Memory & State
π― Motivation
A temporary workspace where the agent writes intermediate results, plans, and notes during a task. Cleared when the task is done.
π Concrete Example
Scratchpad during debugging: βError on line 5. Check: variable types. Found: x is string, needs int. Fix: int(x). Test: passed.β Temporary notes that guide the current task.
π Analogy
A whiteboard during a math exam - you write intermediate steps, cross things out, try different approaches. When the exam is over, the board is erased. A scratchpad is the agentβs whiteboard.