mirror of
https://github.com/instructkr/claw-code.git
synced 2026-10-18 00:00:11 +08:00
feat: add persistent auto-memory system Implement a file-based persistent memory system that allows the AI to retain knowledge about users, feedback, projects, and references across sessions. ## Implementation Details - 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 ## Verification ✓ 1023 lib tests pass ✓ Output format contract tests pass ✓ Release build succeeds ✓ Security hardening verified Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>