After a refactoring project ran for more than 40 turns, the model had forgotten naming conventions agreed on three hours earlier and proposed again an abstraction layer that had already been rejected. Expanding the context window to 200k did not solve the problem. Our judgment: the core weakness of Agents is no longer just how much they can remember, but knowing which state should be retained long term.

What This Is

The author's solution was to place a WORKLOG.md file in the session directory, recording three categories of information: “decided,” “pending,” and “rejected.” When restoring a session, there was no need to enter the full history; the Agent—an AI program capable of autonomously invoking tools and executing multi-step tasks—only needed to read the log.

The most useful design decision was attaching code anchors, such as specific files and line numbers, to settled conclusions and checking whether those anchors remained valid before restoring the session. The log records only irreversible decisions, stage transitions, and rejected approaches. It is updated approximately six to eight times during a long task, avoiding the overhead of updating it after every turn.

Industry View

We believe this approach is valuable not merely for resuming conversations, but for turning agreements into files that can be reviewed, validated, and read by other tools. It also exposes a practical boundary in enterprise Agent deployment—the programmatic capability that lets AI autonomously complete complex tasks: external memory must remain synchronized with actual state. Otherwise, misleading stale logs may cause more damage than having no logs at all.

The risks are clear. Once a log exceeds 60 lines, it needs to be compressed, and deleting outdated entries may erase the reasoning behind decisions. Incorrect anchors create false information, while every validation and cleanup operation adds maintenance cost. This is therefore an engineering patch for complex tasks lasting more than 10 days, not infrastructure every scenario needs. What the industry really needs is not simply a larger context window, but clear rules for state validity, update frequency, and ownership.

Impact on Regular People

For enterprise IT: When introducing Agents, enterprises can treat the worklog as a lightweight state layer, but they will need access controls, version validation, and expiration markers to prevent incorrect state from being propagated automatically.

For individual professionals: For complex projects, keeping three sections—“decided,” “pending,” and “rejected”—can reduce the need to repeat background information. For short tasks, however, additional maintenance is unnecessary; finishing the work directly is usually more efficient.

For the consumer market: AI assistants capable of continuing work across sessions will gradually become commonplace, but users will also pay closer attention to when these tools save information, whether the saved information is accurate, and how they can review and delete those records.