feat: persistent agent memory across conversations and restarts#46
Merged
Conversation
Adds memory.persistent: true, giving the agent remember/recall/list_memories/ forget tools backed by a new `memories` table in its own SQLite file — independent of memory.scope: thread's per-conversation transcript. Writes and deletes land in the audit trail; remembered keys are listed cheaply in the system prompt, values fetched on demand (same progressive-disclosure shape as skills). Adds a dedicated Memory doc page and updates the data-volume docs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K6wwrBFR7kYybfWNzjJx4t
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memory.persistent: true, giving the agentremember/recall/list_memories/forgettools backed by a newmemoriestable in its own SQLite file — distinct frommemory.scope: thread's per-conversation transcript replay.recall/list_memories.remember/forgetcall lands in the existing audit trail as akind: "memory"event; reads aren't audited, consistent with read-only tools elsewhere.docs/memory.mdcapability page, and updatesdocs/agent-file.mdanddocs/docker-run.md's data-volume section accordingly.Test plan
deno task test— 105 passed, 0 failed (new coverage instore_test.tsandpackages/core/tools/memory_test.ts)deno checkon all touched filesdeno fmt --check/deno lintcleanschema/agent.jsonregenerated viadeno task gen-schema🤖 Generated with Claude Code
https://claude.ai/code/session_01K6wwrBFR7kYybfWNzjJx4t