# 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
What did the user request?
What code and systems did you explore?
What did you learn about the codebase?
What was accomplished in this session?
What should be done next?
src/auth.ts
src/middleware/session.ts
src/auth.ts
Additional insights or context
```
REQUIREMENTS
------------
All 8 fields are required: request, investigated, learned, completed, next_steps, files_read, files_edited, notes
Files must be wrapped in tags
If no files were read/edited, use empty tags:
Focus on semantic insights, not mechanical details.
```