819 B
819 B
TASK: Reference study — crush internals (PORTING-NOTES-crush.md)
Objective
Study /home/reachableceo/projects/meta/MOPAC/reference/crush. Produce /home/reachableceo/projects/meta/MOPAC/harness/docs/PORTING-NOTES-crush.md.
Deliverables (notes file, <=180 lines, dense, no fluff)
- MCP plumbing: config format, stdio/http transports, tool registration — what to port to Go.
- Session/persistence model: session files, --continue, resume semantics.
- Provider layer: how providers.json/crush.json merge, model routing, retries/stream handling (note where stream-truncation errors would surface).
- Headless mode: how crush run/--print works, exit codes.
- OAuth flows: where they live (deferred for v1 but map the code path).
- Top 10 packages/files worth reading in detail during build; top 5 gotchas.