跪拜 Guibai
← All articles
AI

Context Is Not Memory: Why AI 'Forgets' Between Conversations and How to Fix It

By 知行砚 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Relying on implicit memory across AI conversations guarantees breakage on any long-running project. The handoff note pattern turns a one-person context into a reproducible artifact, so a task survives conversation switches and even a different developer can pick it up.

Summary

Most people treat an AI conversation as a project and expect it to remember everything said earlier. That assumption breaks the moment a new conversation starts: the AI says it doesn't remember, and the user blames a bug. The cause is a misunderstanding of the context boundary. A single conversation carries one task, not the entire project. Persistent rules and retrieved history exist separately, and neither automatically provides the full materials and latest state of previous conversations.

The fix has three parts. First, push materials into context explicitly, by attaching files or referencing them with @ and the full path; a file on disk is not automatically read or correctly interpreted. Second, manage context capacity and pollution. Too many files dilute the key points, and old requirements left in context can override new instructions. When the direction changes, state clearly that the current instruction supersedes the old plan, or start a fresh task. Third, produce a handoff note when a task ends or a conversation closes. The note records what's done with evidence paths, current state, blockers, key files, acceptance criteria, and next steps, so a later task can continue without guesswork.

The same reasoning explains why 'file exists' is not 'file read,' why stable rules belong in memory rather than being rewritten each time, and how to troubleshoot the three common failures: the AI claiming amnesia, old and new requirements clashing, and context overload. The context-memory-retrieval distinction is the underlying model of AI work, and the handoff note is the foundation for tasks that don't depend on one person's memory.

Takeaways
— A conversation carries one task, not a whole project; new conversations inherit only persistent rules or retrieved history, never the full context of previous ones.
— Three mechanisms differ: current context (this conversation's content), persistent rules (explicit long-term instructions), and on-demand retrieval (fetching materials when needed).
— A file existing on disk does not mean it has been read into context or used correctly; key materials must be added explicitly via attachment or an @ path reference.
— Context capacity is limited; too many files dilute the critical information, so process in batches, most relevant first.
— Context pollution occurs when stale requirements from old conversations override new decisions; explicitly say 'take this as the current instruction, discard the previous plan' or start a new task.
— A handoff note template includes task number, objective, completed items with evidence paths, current state, blockers, key files, acceptance criteria, and next steps.
— Blockers must be explicitly listed in the handoff note; the main risk is unfinished work being treated as done.
— Persistent memory is for stable, repeated rules only; don't store everything.
Conclusions

The context-memory-retrieval split exposes a category error: users treat a conversation as a repository, but it is a working set. The handoff note is the externalized state that turns ephemeral conversations into durable project artifacts.

The 'file exists' vs 'file read' distinction highlights a common failure mode in LLM tooling: the model has no intrinsic knowledge of the file system, and simply saving a file does not inform the model. Explicit path naming and verification are required.

The advice to start a new conversation when the goal changes is a pragmatic response to context pollution; it's cheaper to reset than to fight stale instructions.

The handoff note template resembles a project status report, but its value in the AI context is making the state reproducible across sessions, which is a prerequisite for any serious multi-session workflow.

Concepts & terms
Current context
The set of information active within a single conversation, including what the user has said and any materials attached. It is valid only for the current task.
Persistent rules (memory)
Explicit instructions a user gives for the AI to remember across tasks, such as formatting conventions. They persist beyond a single conversation.
On-demand retrieval
The act of fetching specific files or records only when they are needed, rather than loading them all upfront. It is used when the AI is asked to look something up.
Context pollution
The presence of outdated, conflicting, or irrelevant instructions in a conversation that cause the AI to follow stale requirements or lose focus.
Handoff note
A structured summary of a task's state, including objectives, completed work, blockers, key file paths, and next steps, meant to be passed to a future conversation so it can continue without relying on memory.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗