AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIZenn AI/MLPublished: Nov 1, 2026, 06:00 JST

Hindsight gives Claude agents memory across sessions

Send on LINE
Hindsight gives Claude agents memory across sessions

3 Key Points

  1. What happened

    A walkthrough wires the open-source Hindsight memory system (vectorize-io, MIT license) into a plain Claude API agent via Docker, then recalls past context into the system prompt and retains each exchange so a second process recalls it.

  2. Why it matters

    The recall-retain loop means a restarted agent can pick up the same stored context instead of starting from scratch, a capability the walkthrough demonstrates across two separate processes.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The walkthrough frames the problem concretely: when a Claude API agent's process ends, the context it built disappears, and the next session starts from a first meeting. The author distinguishes this from retrieving documents with RAG, because what is being stored is the agent's own experience, including user preferences and past failed approaches. The suggested path is to try an existing product first and build only the missing pieces, rather than starting with a custom Postgres plus pgvector schema and retain/recall logic.

Hindsight's structure is what sets it apart in the author's account. It splits memory into world facts, experiences, observations, and mental models, and exposes only three operations: retain, recall, and reflect. The reflect layer is described as the difference from simpler memory stores, because it lets accumulated experience turn into higher-level understanding. The release notes for v0.10.1 also included a fix to automatic reflect budget limits for coding agents, a reminder that running reflect too often accumulates LLM call costs.

The practical lessons are about operations rather than features. Memory is separated by bank_id, which the author says can double as permission separation if it is designed around user or project IDs from the start. Running reflect on a daily cron can consolidate individual question-and-answer pairs into mental-model memories, but the author warns that doing this too often raises cost. For production, the two design points to settle first are bank_id permission separation and how frequently to run reflect.

FAQ
What does Hindsight actually do?
It stores agent memories through a retain call, searches them through recall, and builds higher-level mental models through reflect. The walkthrough says it structures memory into world facts, experiences, observations, and mental models.
How do you run it?
The walkthrough starts the server with a single Docker command, exposing port 8888 for the REST API and port 9999 for management. The Hindsight side can use a different LLM provider's key even when the agent itself runs on Claude.
What went wrong in practice?
The author reports that recall can return an empty array, so injecting the empty result into the system prompt confuses Claude. Using a fixed bank_id can mix multiple users' memories, and retaining raw conversation logs adds search noise before reflect runs.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleCrawford Del Prete: AI task gains not yet in the numbers