tencentdb-agent-memory (Claude Code plugin)
A local, API-free Claude Code plugin that gives the agent four layers of long-term memory — conversation, atom, scene and persona — built on local full-text and vector search.
This Claude Code plugin adds four-layer long-term memory to Claude Code: conversation, atom, scene and persona. It runs fully locally with no external gateway, no paid API and no Python; all extraction and consolidation is done by the Claude agent itself.
Retrieval combines local full-text search with a local vector index using reciprocal rank fusion. Session hooks inject a persona summary at session start, run hybrid recall on each user prompt, and spawn a detached background process to consolidate new turns into memory after a session ends, so consolidation never costs the active session context.
It is also published as a standalone command-line tool on npm for use outside Claude Code, and requires Node 24 or newer.