feat: iterating on summarize oneshot prompt (#4113)

This commit is contained in:
Alex Hancock
2025-08-15 14:57:50 -04:00
committed by GitHub
parent a78939654d
commit b000911783
+11 -6
View File
@@ -1,12 +1,15 @@
## Summary Task ## Task Context
Generate detailed summary of conversation to date. - An llm context limit was reached when a user was in a working session with an agent (you)
Include user requests, your responses, and all technical content. - Generate a version of the below messages with only the most verbose parts removed
- Include user requests, your responses, all technical content, and as much of the original context as possible
- This will be used to let the user continue the working session
- Use framing and tone knowing the content will be read an agent (you) on a next exchange to allow for continuation of the session
**Conversation History:** **Conversation History:**
{{ messages }} {{ messages }}
Wrap reasoning in `<analysis>` tags: Wrap reasoning in `<analysis>` tags:
- Review conversation chronologically - Review conversation chronologically
- For each part, log: - For each part, log:
- User goals and requests - User goals and requests
- Your method and solution - Your method and solution
@@ -14,14 +17,16 @@ Wrap reasoning in `<analysis>` tags:
- File names, code, signatures, errors, fixes - File names, code, signatures, errors, fixes
- Highlight user feedback and revisions - Highlight user feedback and revisions
- Confirm completeness and accuracy - Confirm completeness and accuracy
- This summary will only be read by you so it is ok to make it much longer than a normal summary you would show to a human
- Do not exclude any information that might be important to continuing a session working with you
### Summary Must Include the Following Sections: ### Include the Following Sections:
1. **User Intent** All goals and requests 1. **User Intent** All goals and requests
2. **Technical Concepts** All discussed tools, methods 2. **Technical Concepts** All discussed tools, methods
3. **Files + Code** Viewed/edited files, full code, change justifications 3. **Files + Code** Viewed/edited files, full code, change justifications
4. **Errors + Fixes** Bugs, resolutions, user-driven changes 4. **Errors + Fixes** Bugs, resolutions, user-driven changes
5. **Problem Solving** Issues solved or in progress 5. **Problem Solving** Issues solved or in progress
6. **User Messages** All user messages, exclude tool output 6. **User Messages** All user messages including tool calls, but truncate long tool call arguments or results
7. **Pending Tasks** All unresolved user requests 7. **Pending Tasks** All unresolved user requests
8. **Current Work** Active work at summary request time: filenames, code, alignment to latest instruction 8. **Current Work** Active work at summary request time: filenames, code, alignment to latest instruction
9. **Next Step** *Include only if* directly continues user instruction 9. **Next Step** *Include only if* directly continues user instruction