liveBook · Manning

Amnesiac coder issue

As explained in Vibe Engineering

The amnesiac coder issue is an AI-agent failure mode in which the agent loses prior task decisions, interactions, and code context over a long task.

The amnesiac coder issue appears when an AI coding agent treats each request as isolated and loses earlier decisions, fixes, interactions, or code context during a long task. Retrieval-augmented generation can find relevant information, but it does not provide continuity across steps. section 3.5.2 section 3.5.2

Typical symptoms include:

  • Reintroducing errors that were already fixed. section 3.5.2
  • Contradicting established design choices or requiring repeated requirements and context. section 3.5.2
  • Drifting as the sliding token window fills with prompts, diffs, error messages, corrections, and rationales. section 3.5.2

The failure is structural: once earlier context falls beyond the window, it vanishes. Appending every interaction can also crowd out useful information, producing long-session context rot. Continuity therefore requires explicitly built, persistent, structured memory rather than retrieval alone. section 3.5.2 section 3.5.2

Figure 3.8 Tools like Cline allow you to track current context window fulfillment.

A context-window fulfillment view helps operators see when accumulated history is crowding out usable context. section 3.5.2

How Vibe Engineering covers it

How deep it goes
Explains symptoms and token-window mechanics but stops short of specifying a memory architecture.
Examples
Uses coding conversations containing prompts, diffs, errors, corrections, and design rationales as the accumulating context.
What you can do after
Diagnose/debug with it by recognizing drift and identifying when persistent, structured memory is required.
How it connects
Contrasts retrieval-augmented generation with persistent memory, context windows, and context rot.

This explainer was generated by Manning's knowledge graph from the text of Vibe Engineering. The section links point to the parts of the book it draws on.