{
  "id": 21432767,
  "title": "Claude Code Is Great. It Also Forgets Everything.",
  "url": "https://urgent.news/2026/11/23/claude-code-is-great-it-also-forgets-everything",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-23T17:18:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/icegaming/claude-code-is-great-it-also-forgets-everything-3hd8"
  },
  "original_language": "en",
  "account": "Claude Code is a highly capable tool that users rely on daily. However, a challenge emerges when the session ends and a new one begins. The model appears to have forgotten the previous session's context, similar to an intern who knows nothing about the previous work. This issue has led some users to reject the current architecture in favor of a solution that utilizes a memory database. The memory database, however, faces its own set of problems. It simply repeats the same briefing every time a session starts, without retaining any valuable lessons, preferences, or past experiences. This briefing, stored in markdown files, is a burden that becomes excessive as the project progresses. It lacks the ability to perform efficient lookups and instead forces the agent to sift through large amounts of irrelevant information. Furthermore, the issue worsens when multiple agents are involved, each maintaining their own memory files, which may not be aware of the others' learnings. The author proposes a solution in the form of a project called Palace. Palace is a Rust binary and an SQLite file that stores the original text, instead of an LLM summary. This allows for quick and accurate recall of specific information without the need for the model to remember to search. Palace works as a plugin for Claude Code, automatically injecting the memory protocol at the start of each session, providing a cited briefing derived from actual work, rather than user-curated files. When a user asks a question, Palace searches its memory and injects relevant drawers before the agent provides an answer. This process is seamless, eliminating the need for manual searching. Palace also offers hooks that can surface related decisions, ensuring a continuous flow of knowledge throughout the session. Additionally, it automatically records diary entries and decision-making processes when the agent completes its work, preventing the loss of valuable information. The author emphasizes that Palace should not replace markdown files, but rather complement them by providing an always-on memory system. To demonstrate the effectiveness of Palace, the author has conducted a public retrieval evaluation on LongMemEval, achieving impressive results with an R@1 score of 0.915, R@5 of 0.987, and R@10 of 0.996. These numbers indicate that Palace successfully recalls the correct session from a large pool of information. Palace is not limited to Claude Code; it can be integrated with other agents as well, providing a consistent memory system across various tools. The author encourages others to use the same binary with different clients and emphasizes the importance of memory in enhancing the productivity and efficiency of AI-assisted workflows.",
  "summary": "Claude Code is great. I use it most days. Then I close the session, open a new one in the morning, and I am briefing a very sharp intern who has never met me. The architecture I already explained is gone. The fix I rejected last week is back on the table. The reason we dropped Redis lives in a chat I can no longer see. The model is the same. The memory is not. This is not a model-quality problem.…",
  "key_points": [
    "Claude Code forgets previous session context when new session begins.",
    "Memory database repeats briefing each session start, lacking valuable lessons.",
    "Palace project stores original text in SQLite file for quick, accurate recall."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}