Distills your Claude Code / OpenCode sessions — or any text corpus you ingest — into a dated history of how its subject changed, queryable by your agent over MCP. A local memory & self-improvement engine that captures coding sessions and distills how your patterns, habits, and knowledge evolve over time.
Witness defines 5 tools with clear, domain-specific purposes (observation search, profile retrieval, fact recording). All tools have descriptions and visible schemas in internal/mcp/server.go. However, several baseline expectations from production tooling are not met: (1) parameter descriptions are present but terse (many under 50 chars, baseline is 72 chars); (2) output schemas are not documented in the visible code, only input schemas appear; (3) no enum constraints on 'lens' parameter despite it accepting only known values ('default', domain names); (4) error handling is not visible in the schema definitions; (5) pagination is absent despite tools like search_observations and get_facets likely returning variable-length results; (6) the 'session' parameter in record_observation appears to require external session management without documented session lifecycle or error paths. Tool names follow the verb_noun convention well (search_, get_, record_, delete_), but descriptions lack LLM-optimization depth, they explain WHAT but not WHEN or WHY to call each tool.
Delete an observation from the archive by its obs_id.
Read structured L2 facets from the archive.
Read the L4 narrative (cross-lens portrait or single-lens narrative).
Record a decision-aware observation in-session, adding to the user's growth archive.
Search the user's growth archive for observations related to a query. Returns past observations about how the user thinks/works/changes. Defaults to the 'default' lens (cross-domain); pass lens='math' etc. for a repo-scoped view.
Output schemas not documented. Input schemas are visible, but tool responses (what fields are returned, pagination structure, total counts) are not specified in the provided code. LLMs cannot plan downstream tool calls without knowing the structure of returned data.
'lens' parameter accepts only specific values (e.g., 'default', 'math', repo-scoped names) but is defined as a free-form string without enum constraints. This invites hallucinated invalid values and wastes tokens on error recovery.
No pagination parameters visible for search_observations and get_facets despite descriptions implying variable-length results ('max results (default 8)' on search_observations suggests result sets can vary). Tools returning lists should offer limit, offset/cursor, and return total_count. Without pagination, large result sets risk context window exhaustion.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | 2025-06-18+ | v2 |
Parameter descriptions are terse. Baseline for production tools is 72 characters; many here are 30-50 chars. E.g., 'get_facets' description is only 35 chars ('Read structured L2 facets from the archive.'). Descriptions lack context on WHEN to call tools and what they return. This reduces LLM confidence in tool selection.
record_observation requires 'session' parameter but no documentation of session lifecycle, how sessions are created, or how to obtain session_id. This creates an implicit dependency on out-of-band session management and risks calls failing due to invalid session IDs with no recovery guidance.
No error handling guidance visible. Tools don't document what errors they return, how to recover, or which errors are retryable. E.g., delete_observation offers no guidance if obs_id doesn't exist, and record_observation doesn't explain what happens if session_id is invalid.
Numeric parameter 'poignancy' (1-10 salience) lacks explicit min/max constraints in schema. Baseline practice requires numeric bounds to prevent LLM hallucination of out-of-range values (e.g., 'poignancy': 500).