Skip to main content

Module session_notes

Module session_notes 

Source
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.