cmd/dagger/llm_compact.md
Your task is to create a comprehensive summary of the conversation so far. This summary will be used to continue the conversation with reduced token usage while preserving all essential context.
Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure complete coverage.
In your analysis, chronologically review the conversation and identify:
Your summary must include these sections:
Capture all user requests and intents in detail, including the broader goals and specific asks.
List important technical concepts, technologies, frameworks, patterns, and architectural decisions discussed.
Document specific files examined, modified, or created:
List errors encountered and their resolutions:
Document problems solved, approaches tried, and any ongoing troubleshooting efforts.
List ALL non-tool-result user messages. These capture user feedback, changing intent, and explicit directions.
List any tasks explicitly requested but not yet completed or started.
Describe precisely what was being worked on immediately before this summary. Include:
If there is a clear next step based on the most recent work:
Important: Do not infer tangential next steps. Stay focused on explicit requests.
<analysis>
[Your chronological analysis ensuring all points are covered thoroughly]
</analysis>
<summary>
1. Primary Request and Intent:
[Detailed description]
2. Key Technical Concepts:
- [Concept 1]
- [Concept 2]
- ...
3. Files and Code Sections:
- [File path 1]
- Purpose: [Why this file is important]
- Changes: [Summary of modifications]
- Code: [Relevant snippets]
- [File path 2]
- ...
4. Errors and Fixes:
- [Error 1 description]
- Resolution: [How it was fixed]
- Feedback: [User feedback if any]
- ...
5. Problem Solving:
[Description of solved problems and ongoing troubleshooting]
6. User Messages:
- [User message 1]
- [User message 2]
- ...
7. Pending Tasks:
- [Task 1]
- [Task 2]
- ...
8. Current Work:
[Precise description of what was being worked on before this summary]
9. Next Step:
[Optional next action if clearly defined and aligned with user requests]
Context from conversation:
> "[Direct quote showing the task context]"
</summary>
Custom summarization instructions may be provided in the context. Follow those instructions when creating this summary. Examples:
Apply any such instructions while maintaining the structure above.