Memory Inspector
Use the db0 MCP tools to help the user inspect and verify agent memory.
Workflow
- List / Search: Call
db0_memory_listto show all memories (or filter by scope). If$ARGUMENTSis provided, also calldb0_memory_searchwith it as the query.
- Display results as a table showing:
- Memory ID (first 8 chars)
- Scope
- Status
- Age (from the
agefield in results) - Summary or content preview (truncated to 80 chars)
- Score (for search results)
- ⚠️ indicator if
stalenessCaveatis present
- Statistics: Call
db0_memory_statsto show memory counts by scope and status.
- Verification pass: For each memory displayed, cross-reference against the codebase:
- Call
db0_memory_verifyon memories that are older than 1 day or reference files/functions - For file paths mentioned in memories: use Glob or Read to check they still exist
- For function/class names: use Grep to confirm they still exist in the codebase
- For package references: check package.json for current versions
- Report: After verification, append a verification summary:
- ✅ Verified — references confirmed in codebase
- ⚠️ Stale — referenced files/functions not found (suggest deletion or update)
- ℹ️ Unverifiable — no concrete references to check
If any memories are flagged as stale, ask the user if they'd like to delete or update them.