Epic: #46
Summary
Replace the “concise summary” with a structured BUILD‑mode handoff that reliably carries context needed to continue work.
Problem
- Current prompt is too light; compaction leads to context loss and poor continuation.
Proposal
Adopt a compact, structured handoff format with sections:
- Primary Request and Intent
- Key Technical Concepts
- Files and Code Sections (include snippets when essential)
- Errors and Fixes
- Problem Solving
- All user messages (non‑tool) recap
- Pending Tasks
- Current Work (last active step)
- Rules & Constraints (tie‑in with rules preservation)
- Optional Next Step (strictly aligned with the latest user request)
Code Refs
- packages/opencode/src/session/compaction.ts:169 (user content for summary message)
- packages/opencode/src/session/system.ts (SystemPrompt.summarize)
Tasks
Acceptance Criteria
- After compaction, model resumes work accurately in BUILD mode without re‑asking for context.
- Summary includes “Current Work” and “Rules & Constraints” reliably.
Epic: #46
Summary
Replace the “concise summary” with a structured BUILD‑mode handoff that reliably carries context needed to continue work.
Problem
Proposal
Adopt a compact, structured handoff format with sections:
Code Refs
Tasks
Acceptance Criteria