Expand librarian role to own cross-tool instruction file sync,
.memory/ file maintenance, and knowledge merge workflows. Lead
now proactively dispatches librarian in PHASE-WRAP and Documentation
Completion Gate instead of handling docs inline.
AGENTS.md, CLAUDE.md, copilot-instructions.md, and .cursorrules may
contain project knowledge added by other tools or people. Agents now
read these files at session start and merge new knowledge into
.memory/knowledge.md as the canonical source.
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
Add 7 new sections to lead.md addressing failure patterns observed in
real session transcripts: exploration sharding for context-exhausted
explorers, environment probe protocol for infrastructure verification,
finding completion tracker to prevent silently dropped findings, targeted
re-review to avoid infinite review loops, tester capability routing to
match agent tools to task requirements, post-implementation sanity check
for coherence verification, and artifact hygiene for temp file cleanup.