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
+1 -1
View File
@@ -10,7 +10,7 @@
"plugins": [
{
"name": "claude-mem",
"version": "4.2.3",
"version": "4.2.4",
"source": "./plugin",
"description": "Persistent memory system for Claude Code - context compression across sessions"
}
+18 -2
View File
@@ -4,7 +4,7 @@
Claude-mem is a persistent memory compression system that preserves context across Claude Code sessions. It automatically captures tool usage observations, processes them through the Claude Agent SDK, and makes summaries available to future sessions.
**Current Version**: 4.2.3
**Current Version**: 4.2.4
**License**: AGPL-3.0
**Author**: Alex Newman (@thedotmack)
@@ -210,7 +210,23 @@ npm run build && git commit -a -m "Build and update" && git push && cd ~/.claude
## Version History
### v4.2.3 (Current)
### v4.2.4 (Current)
**Breaking Changes**: None (patch version)
**Improvements**:
- Enhanced summary prompt clarity and reliability
- 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 Details**:
- Updated `src/sdk/prompts.ts` to remove `WHEN NOT TO SUMMARIZE` section
- Added footer text clarifying summaries track progress within ongoing sessions
- Changed request field prompt from "Use their original sentiment" to "Form a title that reflects the actual request"
- Affects both observation and summary prompt generation
### v4.2.3
**Breaking Changes**: None (patch version)
**Security**:
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "claude-mem",
"version": "4.2.3",
"version": "4.2.4",
"description": "Memory compression system for Claude Code - persist context across sessions",
"keywords": [
"claude",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "claude-mem",
"version": "4.2.3",
"version": "4.2.4",
"description": "Persistent memory system for Claude Code - seamlessly preserve context across sessions",
"author": {
"name": "Alex Newman"
File diff suppressed because one or more lines are too long
+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.
`;
}