Add basic-memory as a global cross-project knowledge store alongside
the existing per-project .memory/ system. Agents can now persist
reusable patterns, conventions, and lessons learned across all projects
via MCP tools (write_note, search_notes, build_context).
Changes:
- opencode.jsonc: add basic-memory MCP server config
- AGENTS.md: rewrite Project Memory section for dual system with
routing table (global vs per-project)
- agents/lead.md: integrate basic-memory into phase transitions,
CONSULT, PHASE-WRAP, escalation, and knowledge freshness
- agents/sme.md: dual caching strategy (basic-memory for cross-project
guidance, .memory/ for project-specific)
Add three new sections to AGENTS.md addressing workflow gaps observed in
a session where 6 features were implemented but none were functionally
tested — only static analysis (type checks, linting) was used, resulting
in broken features shipped as 'done'.
New rules:
- Functional Verification: features must be end-to-end tested before
completion; static analysis alone is explicitly insufficient
- Mandatory Quality Pipeline: every feature gets reviewer + tester passes;
no batch validation; quality over quantity under time pressure
- Requirement Understanding Verification: verify understanding before
implementing features with implicit expectations or domain concepts
Also simplifies tester bash permissions and adds plan write permission.
Remove the megamemory MCP knowledge graph and replace with plain
markdown files in .memory/ for tracking plans, research, knowledge,
and implementation state. This enables collaboration across people
and agentic coding tools (Claude Code, Copilot, Cursor, etc.).
Changes:
- Remove megamemory MCP from opencode.jsonc
- Delete tool/megamemory.ts and .megamemory/ database
- Rewrite all 25 config files to use .memory/ markdown files
- Add cross-tool instruction file awareness (AGENTS.md, CLAUDE.md,
copilot-instructions.md, .cursorrules)
- Update save-memory, bootstrap-memory, status commands for md workflow
- Update all agent files, skills, and commands consistently