@unpolarize/agent-memory-core
v0.0.1
Published
Shared core for the memory-map feature in code-build and code-sessions: provider-agnostic MemoryEntry model, file-format adapters (Claude / Grok / Codex / MCP), atomic write-back with mtime-stale-refuse contract, embedding + UMAP layout helpers. No UI.
Readme
@unpolarize/agent-memory-core
Shared core for the memory-map feature in code-build and code-sessions:
- Provider-agnostic
MemoryEntrymodel - Per-CLI adapters (Claude Code, Grok, Codex; MCP memory server later)
- Atomic write-back with mtime-stale-refuse contract
- Embedding + UMAP layout helpers (later)
No UI. Both extensions depend on this; one logic surface, two thin clients.
Design spec: knowledge/tech/agents/memory-map-spec.md (in the docs workspace).
Phase 0 (this version)
MemoryEntry,MemorySource,MemoryAdaptertypesMarkdownMemoryAdapterfor hand-curatedCLAUDE.md/AGENTS.md/.claude/rules/*.md/CLAUDE.local.md/AGENTS.override.md/~/.claude/CLAUDE.md/~/.codex/AGENTS.md/~/.grok/AGENTS.mdsnapshotFile,checkStaleness,atomicWrite(the read-modify-write primitives that make every other adapter safe against silent overwrite by the agents' own background writers)- Snapshot tests via
node --test
Build + test
npm install
npm run compile
npm test