A plugin-based system for OpenCode that provides tool guards, memory management, and lite-mode tool description compression. Includes ADR governance, environment variable protection, auto-advisor mode, and project memory features.
Single tool 'memory_note' with well-structured schema and clear descriptions. Naming is verb-noun compliant (memory_note). Input schema is complete with typed parameters (lesson: string, scope: enum, confidence: enum) and descriptions for each. However, output schema is not documented in the source, and the tool description, while detailed, is verbose (>1024 chars) and reads more like user documentation than LLM-optimized guidance. No error handling guidance visible. The tool performs a single, well-defined action (write to file), but lacks recovery patterns and actionable error messages.
Note a durable 'lesson learned' to this project's memory. Two scopes — pick the one that fits: SCOPE HEURISTIC: 'Will another developer at this same machine, on this project, tomorrow find this useful?' YES → scope='public' (default). <projectDir>/.ocp/memory/public.md, committed to git, reviewed by your team via the normal PR flow. Examples: 'this repo uses pnpm not npm', 'do not import from packages/legacy/', 'test runner needs --preload for opentui', 'CI fails on Windows without <flag>'. NO → scope='private'. <projectDir>/.ocp/memory/private.md, gitignored (auto-gitignored on first capture via .ocp/.gitignore) — only you see it. Examples: 'user prefers no semicolons', 'VPN slow, set API timeout to 60s', 'my private TODO list for this codebase'. When in doubt → leave scope unset (defaults to public); PR review will route misclassified entries back. USE WHEN you discover a clear, reusable rule worth the next session's attention. DO NOT USE FOR: session-specific facts, current task state, anything already in AGENTS.md, one-off bug fixes, or speculative guesses that haven't been validated against real code. Confidence is metadata only — the tool does not gate on it. Rating (default medium): high = rule you will act on next session; low = a hunch, prefer to surface to the user instead of silently filing.
Description exceeds 1024 character baseline and reads as user-facing documentation rather than LLM-optimized guidance. Contains narrative examples ('user prefers no semicolons') that LLMs may reuse literally.
Output schema not documented. Tool writes to filesystem but response structure (success/failure, file path, timestamp) is not specified, forcing LLM to infer outcomes.
No error handling guidance. Tool can fail (permission denied, disk full, invalid scope) but no recovery patterns or actionable error messages are defined.
Parameter 'lesson' lacks format constraints. Description says 'One sentence' but no regex pattern or length limit enforces this, inviting multi-sentence or empty inputs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
Tool performs a write operation (RISK: WRITE) but no confirmation or dry-run pattern is offered. Agents cannot preview the lesson before committing it to the project memory file.