An agent session ends, and everything the agent learned goes with it. The next session starts cold: the model sees whatever you paste in, and nothing else. Sebastian Raschka's breakdown of coding agents makes the point that the harness, meaning tool use, context management and memory, plays as large a role as the model itself in how capable a coding agent feels in practice. A task log is the cheapest form of that memory you can own outright, because it is just text you control.
The problem the log solves is concrete. Long-horizon agent work degrades as context accumulates: research on context management for long tasks describes how accumulated context causes long-context degradation and reasoning failures, and shows that pruning stale content while preserving task constraints and progress improves outcomes across agents. A log is the manual version of that idea. Instead of carrying every tool call forward, you carry a short, structured record of what was asked and what shipped.
There is a second, subtler failure. Work presented to an agent as a long pre-filled trajectory from a weaker run can cause goal drift, even in strong models according to a survey of long-horizon planning. Pasting a raw transcript as "here is what we did" is exactly that pattern. A distilled log entry, with the prompt and outcome but not the 40 tool calls in between, avoids it.
The decision rule: if the next task depends on facts the current session discovered (file paths, constraints, the reason a test fails), those facts go in the log. If they are noise from an exploratory detour, they do not.



