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
Implement a file-based persistent memory system that allows the AI to
retain knowledge about users, feedback, projects, and references across
sessions. Memory files use YAML frontmatter with markdown body, stored
at ~/.claw/projects/<workspace-hash>/memory/.
Key components:
- MemoryStore data layer with FNV-1a workspace fingerprinting
- MemoryRead/MemoryWrite tools with security hardening (path traversal,
symlink, absolute path, and size limit protections)
- System prompt injection of MEMORY.md index with prompt injection
mitigation (fenced code block + trust-lowering notice)
- autoMemoryEnabled config option (defaults to true)
- Doctor health check for auto-memory state
- /memory command enhancement showing persistent memory info
Tested end-to-end with Zhipu GLM-4-Flash via OpenAI-compatible routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments