Human-brain-like memory system for AI coding agents. Exposes memory operations (remember, recall, forget, consolidate, proactive recall) as MCP tools for Claude Code.
Engram has well-structured tool definitions with complete input schemas and descriptions for all 12 tools. Naming follows verb_noun convention (remember, recall, forget, etc.). However, descriptions vary in quality, some are detailed (remember, recall, proactive) while others are terse (stats, health, micro_index). Parameter descriptions are present but inconsistent in depth. Output schemas are documented in code but not formally exposed in tool registration. Error handling guidance is minimal. No tool annotations (readOnlyHint, destructiveHint) despite clear risk classifications in metadata.
List memories that are candidates for archival.
Export memories to a file in jsonl or json format.
Soft-delete a memory by ID. Cannot forget pinned memories.
Check memory store health. MCP defaults to summary mode to save tokens (~200 vs ~5500 at 300 memories).
Mark insights resting on the given Compost fact_ids as obsolete. Reverse-lookup via compost_insight_sources; soft-delete; audit.
Get a compact brain overview (~200 tokens) of all memories.
Get relevant guardrails/constraints/procedures for a file by path_scope match. Only returns origin in (human, agent) and confidence>=0.7; Compost-synthesized insights never enter proactive push.
Terse descriptions on utility tools (stats, micro_index, health). 'Get memory statistics' and 'Get a compact brain overview' lack context for when/why to call them. Should explain use cases and token budgets.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk classifications in metadata (WRITE, DESTRUCTIVE, READ_ONLY). Annotations enable safer agent planning.
Error handling lacks recovery guidance. Tools return success/failure dicts but do not guide LLM on retryability, user-fixable issues, or next steps. E.g., 'forget' on pinned memory should suggest 'unpin first'.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
Search memories ranked by effective_score. budget: tiny (compact cards ~50tok each), normal (full objects), deep (limit>=50, expanded results).
Store a memory. Kinds: constraint, decision, procedure, fact, guardrail, insight. Origins: human, agent, compost. Scope: project (default when project given), global (cross-project knowledge, requires project=None), meta (about user/agent, requires project=None). If scope omitted, inferred from project. source_trace (JSON provenance) and expires_at (ISO-8601 TTL) are required for origin=compost.
Get memory statistics: total count, active count, breakdown by kind.
Stream entries in contract shape, bounded by `limit` for MCP transport. Returns memories in engram-integration-contract format (memory_id, kind, content, project, scope, created_at, updated_at, tags, origin).
Unpin a memory so it can be forgotten or age-flagged. Use sparingly: prefer superseding via a new memory with supersedes tag. Single memory only, not batch.
Output schemas documented in code (_memory_to_dict, _memory_to_compost_dict) but not formally exposed in tool registration. LLM cannot see expected response structure without reading implementation.
Parameter 'budget' in recall() uses enum (tiny, normal, deep) but description does not explain token cost differences or when to use each. Should state: 'tiny (~50 tokens), normal (full), deep (expanded, limit>=50)'.