You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Back up agent memory with a local git repository instead of custom backup tooling #5050
The memory backup, rewrite and archive helpers (~5.6k lines including Go modules and tests) exist because the private memory store is not version-controlled.
What
Make the private memory directory (outside any checkout) a local-only git repository and commit at the end of each run. Use git diff and git restore for safe rewrites and recovery. Keep the index size check as a one-line wc -c. Then retire memory-backup, memory-rewrite and the related Go modules, and update the durable-memory guide.
What is lost
Nothing. The repository must never get a remote, because the store holds private data.
First step
Initialise and commit the directory, run for a week alongside the existing backup, then remove the helpers.
🤖 Generated with Claude Code (interactive session)
Step one is merged in #5055: both host memory stores now have a local-only git history, and each run commits to it at the end.
Remaining, per the issue's first step: after a week of the history running next to the existing backups, from 2026-11-21, retire the backup, rewrite and archive helpers and their Go modules. Before that, check that the history holds every run's changes. Then reduce the index size check to a wc -c and update the durable-memory guide in the same PR.
Activity
feat(scripts): keep a local-only git history of the agent memory stor…
devantler commentedon Nov 14, 2026
🤖 Generated with Claude Code (interactive session)
Step one is merged in #5055: both host memory stores now have a local-only git history, and each run commits to it at the end.
Remaining, per the issue's first step: after a week of the history running next to the existing backups, from 2026-11-21, retire the backup, rewrite and archive helpers and their Go modules. Before that, check that the history holds every run's changes. Then reduce the index size check to a
wc -cand update the durable-memory guide in the same PR.