Expand description
Per-session working notes.
Maintains a structured markdown file for each session with sections for current state, task spec, files, workflow, errors, and key results. Used as a cheap compaction source — when context needs shrinking, session notes serve as the summary without requiring an expensive API call.
Functions§
- build_
update_ prompt - Build a prompt for updating session notes from recent conversation.
- cleanup_
old_ notes - Clean up old session notes (older than 7 days).
- has_
content - Check if session notes have meaningful content (not just the template).
- init_
session_ notes - Initialize session notes with the template if the file doesn’t exist.
- read_
session_ notes - Read existing session notes content.
- session_
notes_ path - Get the path for this session’s notes file.