skill: add /add-memory — semantic memory with RAG#727
Open
obekt wants to merge 1 commit intonanocoai:mainfrom
Open
skill: add /add-memory — semantic memory with RAG#727obekt wants to merge 1 commit intonanocoai:mainfrom
obekt wants to merge 1 commit intonanocoai:mainfrom
Conversation
Vector-search memory system using sqlite-vec and local embeddings (all-MiniLM-L6-v2). Three layers: core memories (facts/preferences), conversation memory (embedded message chunks), and archival memory (session summaries). Integrates via RAG into agent prompts and scheduled tasks. Agent manages memories through IPC. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
klapom
added a commit
to klapom/nanoclaw
that referenced
this pull request
Mar 5, 2026
…res) Bug fixes applied: - nanocoai#636: task-scheduler recalculates next_run before enqueue - nanocoai#655: LIMIT 200 on message queries to prevent OOM - nanocoai#670: rateLimitResetAt field in ContainerOutput interface - nanocoai#694: ANTHROPIC_MODEL passthrough to container env - nanocoai#700: session rotation at 5MB JSONL threshold - nanocoai#701: session retry on corrupted resume (clear + retry) - nanocoai#708: update_task MCP tool in ipc-mcp-stdio - nanocoai#719: outputChain .catch() to prevent group hang - nanocoai#729: fix send_message description (remove incorrect scheduled-task note) - nanocoai#735: datePrefix() injects current date/time into all agent prompts - nanocoai#738: ANTHROPIC_MODEL from .env passed to agent container - nanocoai#746: systemd OnFailure restart prevention logic (container hardening) - nanocoai#751: DM-with-bot JID normalization - nanocoai#754: setOnPipeCallback to reset idle timer on piped messages - nanocoai#756: cursorBeforePipe rollback on container crash Features added: - nanocoai#723: streaming infrastructure (STREAM_TEXT markers, onStreamDelta) - nanocoai#742: container hardening (entrypoint.sh privilege drop, env sanitize) - nanocoai#680: add-cli skill (CLI send binary) - nanocoai#727: add-memory skill extracted to .claude/skills/add-memory/ - nanocoai#744: add-s3-storage skill extracted to .claude/skills/add-s3-storage/ Test fixes: - Mock fs.promises in container-runner.test.ts to prevent real I/O - Add ANTHROPIC_MODEL to config mock - Fix cpSync expectation: { recursive: true, force: true } - Fix isActive() to use state.active instead of state.process - Fix container-runtime error message: Docker → Container runtime Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Open
10 tasks
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
Adds the
/add-memoryskill — a three-layer semantic memory system with RAG that gives container agents automatic recall of past conversations and stored facts.This is a repackaging of PRs #560 and #561 as a standalone skill, following the feedback that the memory system is too complex for core but would work well as a skill.
What this skill does
memory_add,memory_update,memory_remove,memory_searchUses sqlite-vec for vector search within the existing SQLite database and local embeddings via @huggingface/transformers (all-MiniLM-L6-v2) — no external API costs.
Skill type
Code modification — adds
src/memory.tsand modifiessrc/db.ts,src/index.ts,src/ipc.ts,src/task-scheduler.ts.Files
SKILL.mdmanifest.yamladd/src/memory.tsmodify/src/db.tsgetDb()modify/src/index.tsmodify/src/ipc.tsmodify/src/task-scheduler.tstests/add-memory.test.tsTesting
isMain,syncGroups, sender-allowlist, channel registry)Dependencies
sqlite-vec^0.1.7-alpha.2@huggingface/transformers^3.8.1New environment variables
None
Supersedes
Generated with
/create-skill