Release v4.2.4: Enhanced summary prompt clarity

Improvements:
- Removed optional skip_summary functionality (summaries now always generated)
- Clarified that summaries are mid-session checkpoints, not session endings
- Improved request field instructions to better form descriptive titles
- Changed wording from "discovered" to "learned" for consistency

Technical changes:
- Updated src/sdk/prompts.ts summary prompt
- Removed "WHEN NOT TO SUMMARIZE" section
- Added clarifying footer text about ongoing sessions
- Updated built worker-service.cjs
- Bumped version to 4.2.4 in all metadata files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2025-10-24 20:50:31 -04:00
parent c48290a156
commit d7b9f68d80
6 changed files with 33 additions and 23 deletions
+6 -9
View File
@@ -164,12 +164,6 @@ IMPORTANT! DO NOT summarize the observation process itself - you are summarizing
User's Original Request: ${session.user_prompt}
WHEN NOT TO SUMMARIZE
----------------------
Do not summarize if the request is conversational and unrelated to the work that was just completed.
If skipping, **output only**: <skip_summary reason="[brief reason]" />
✅ GOOD - Describes deliverables:
<request>Fix authentication timeout bug</request>
<request>Add three-tier verbosity system to session summaries</request>
@@ -182,14 +176,17 @@ If skipping, **output only**: <skip_summary reason="[brief reason]" />
Output this XML:
<summary>
<request>[What did the user request? Use their original sentiment from: ${session.user_prompt}]</request>
<request>[What did the user request? Form a title that reflects the actual request: ${session.user_prompt}]</request>
<investigated>[What was explored?]</investigated>
<learned>[What was discovered about how things work?]</learned>
<learned>[What was learned about how things work?]</learned>
<completed>[What shipped? What does the system now do?]</completed>
<next_steps>[What are the next steps?]</next_steps>
<notes>[Additional insights]</notes>
</summary>
**Required fields**: request, investigated, learned, completed, next_steps
**Optional fields**: notes`;
**Optional fields**: notes
IMPORTANT: This is not the end of the session. You will receive more requests to process, and more tool usages to observe and record. The summary helps keep track of progress.
`;
}