938eb9dc0e
- Added final finalize prompt for session summary generation with required XML fields. - Introduced recommended prompt flow with structured observation format and hierarchical storage principles. - Created final init prompt for processing tool executions with clear guidelines on when to store observations. - Developed final observation prompt for analyzing tool outputs and generating structured observations. - Migrated old prompt flow to a new system with improved clarity and structured data handling. - Updated parser and storage mechanisms to accommodate new observation formats and fields. - Enhanced documentation for new prompts and their usage in memory processing sessions.
42 lines
1.0 KiB
Markdown
42 lines
1.0 KiB
Markdown
# Draft Finalize Prompt
|
|
|
|
```
|
|
SESSION ENDING
|
|
==============
|
|
This Claude Code session is completing.
|
|
|
|
TASK
|
|
----
|
|
Review the observations you generated and create a session summary.
|
|
|
|
Output this XML:
|
|
|
|
```xml
|
|
<summary>
|
|
<request>What did the user request?</request>
|
|
<investigated>What code and systems did you explore?</investigated>
|
|
<learned>What did you learn about the codebase?</learned>
|
|
<completed>What was accomplished in this session?</completed>
|
|
<next_steps>What should be done next?</next_steps>
|
|
<files_read>
|
|
<file>src/auth.ts</file>
|
|
<file>src/middleware/session.ts</file>
|
|
</files_read>
|
|
<files_edited>
|
|
<file>src/auth.ts</file>
|
|
</files_edited>
|
|
<notes>Additional insights or context</notes>
|
|
</summary>
|
|
```
|
|
|
|
REQUIREMENTS
|
|
------------
|
|
All 8 fields are required: request, investigated, learned, completed, next_steps, files_read, files_edited, notes
|
|
|
|
Files must be wrapped in <file> tags
|
|
|
|
If no files were read/edited, use empty tags: <files_read></files_read>
|
|
|
|
Focus on semantic insights, not mechanical details.
|
|
```
|