opencode-mission-control
opencode-mission-control copied to clipboard
feat: AI-summarized handoff prompts for completed jobs
Source
Audit report — Section 9: Phase 3 Roadmap + Section 4: Ecosystem Patterns (opencode-handoff)
Description
When a job completes, its context (what it did, what decisions it made, what files it changed) is lost unless the user manually inspects via mc_capture and mc_diff. The main session AI has no structured summary of the completed work.
Ecosystem Precedent
opencode-handoff generates AI-summarized context with synthetic file preloading for session continuity. This pattern is directly transferable to MC's job completion flow.
Proposed Solution
- Auto-generate handoff summary when a job completes:
- Files changed (
git diff --name-only) - Commit messages from the job's branch
- Key decisions or notes from
mc_reportmessages - Terminal output summary (last N lines or AI-summarized)
- Files changed (
- Inject into main session context so the AI naturally knows what happened
- Store for reference in job state for later retrieval
- Use in PR bodies — feed handoff summaries into #22 (PR narrative synthesis)
Relationship to Other Issues
- Builds on #22 (PR narrative synthesis) — handoff summaries are input to PR bodies
- Builds on #23 (failure artifacts) — similar data collection, different trigger
- Complements existing compaction context injection (rich job cards in
compaction.ts)