Cross-project persistent memory for AI coding assistants via MCP and SQLite
dev-memory has 20 well-named tools with consistent verb_noun patterns (search_, get_, save_, update_, delete_, list_, log_, scan_, restore_, purge_, empty_, export_, import_, related_, prune_). All tools have descriptions (avg ~120 chars, within 10-1024 baseline). Input schemas are visible and typed via Zod (SearchContextSchema, SaveContextSchema, etc.). However, parameter descriptions are sparse, most params lack inline descriptions explaining constraints, formats, or dependencies. Output schemas are not documented in the code; responses are inferred from handler implementations. Error handling is present but recovery guidance is minimal. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk classifications (READ_ONLY, WRITE, REVERSIBLE, DESTRUCTIVE). Composition is strong, tools chain well (search_context → get_context) and avoid duplication.
Delete an outdated or incorrect knowledge entry by its id.
Permanently delete all trashed entries older than `older_than_days` (default 0 = all).
Write the full hub to a JSON file (projects, contexts, sessions). Use for backup, migration, or sharing across machines.
Fetch a single knowledge entry by id with full content. Use after search_context to retrieve entries that look relevant.
Aggregate statistics: project/context counts, category breakdown, top used, most recent.
Load a hub export from a JSON file. `mode: 'merge'` (default) keeps existing data; `mode: 'replace'` wipes first.
Parameter descriptions missing or minimal. Zod schemas define types but inline parameter descriptions in tool registration are absent. E.g., save_context has 'importance' (number) but no description of valid range (1-10 stated in tool description, not param schema). LLMs cannot infer constraints from type alone.
Output schemas not documented. Tool descriptions state what is returned (e.g., search_context 'Returns summaries') but response structure is not formally specified. Handlers return objects inferred from db.ts, but LLMs cannot see the schema to plan downstream calls or extract fields reliably.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
List the edit history of a context entry (newest revision first). Shows how a decision or note has evolved.
List all projects with their tech stacks and context counts.
List soft-deleted context entries (most recent first). Use restore_context(id) or purge_context(id).
Log a coding session with summary, outcome, and context IDs used. Auto-creates the project if needed.
Find or soft-delete entries with times_used=0 older than N days. Defaults to a dry-run; pass apply:true to soft-delete.
Permanently delete a context entry (and its history). Bypasses the trash — not recoverable.
Find contexts related to a given entry by shared tags, project, or category. Useful for impact tracing and mental-context rebuild.
Restore a soft-deleted context entry from the trash.
Save a new knowledge entry (pattern, decision, gotcha, snippet, etc.). Auto-creates the project if it doesn't exist.
Scan a project directory to detect tech stack, config, and structure. Returns findings for the user to review — does NOT auto-save. Use this to bootstrap an empty knowledge base for a new project.
Full-text search across the knowledge hub. Supports optional category, project_name, and technology filters. Returns summaries — use get_context for full content.
Search logged sessions by summary/outcome substring. Helps with meeting prep and rebuilding recent project context.
Partial update of an existing knowledge entry. Only provided fields are changed; usage count and timestamps are preserved.
Update a project's tech_stack, description, or repo_path.
No tool annotations despite clear risk classifications. Tools are marked READ_ONLY, WRITE, REVERSIBLE, DESTRUCTIVE in comments, but MCP tool registration does not include readOnlyHint, destructiveHint, or idempotentHint. Agents cannot distinguish safe from dangerous operations without parsing descriptions.
Error handling lacks recovery guidance. Handlers likely return errors (e.g., 'Context not found') but descriptions do not guide LLMs on next steps. E.g., get_context should say 'If ID is unknown, call search_context first.' Missing recovery patterns per pattern:recovery-guide.
Pagination not visible in search tools. search_context and search_sessions accept 'limit' but no offset/cursor or total_count documented. Large result sets could exhaust context window; LLMs need pagination guidance.