scratch: Structured Scratchpads for Coding Agents

346 · Nikiforov Alexey · June 8, 2026, 5:40 p.m.
Summary
The article introduces scratch, a tool that helps coding agents organize their temporary knowledge into 'scratchpads'—essentially simple folders with a JSON manifest. It emphasizes that agents benefit from externalizing memory to the filesystem, thereby maintaining clarity and accessibility of their work. Scratchpads allow for effective management of notes, previous findings, and auxiliary files over sessions, which helps prevent loss of critical context. The tool fosters better planning and supports workflows for complex tasks through a structured approach to file management and documentation.