pub const SESSION_MEMORY_TEMPLATE: &str = "# Session Memory Template\n\nUse this structured template for session memory. Fill in each section with info-dense content.\n\n```\n# Session Title\n_A short and distinctive 5-10 word descriptive title for the session. Super info dense, no filler_\n\n# Current State\n_What is actively being worked on right now? Pending tasks not yet completed. Immediate next steps._\n\n# Task specification\n_What did the user ask to build? Any design decisions or other explanatory context_\n\n# Files and Functions\n_What are the important files? In short, what do they contain and why are they relevant?_\n\n# Workflow\n_What bash commands are usually run and in what order? How to interpret their output if not obvious?_\n\n# Errors & Corrections\n_Errors encountered and how they were fixed. What did the user correct? What approaches failed and should not be tried again?_\n\n# Codebase and System Documentation\n_What are the important system components? How do they work/fit together?_\n\n# Learnings\n_What has worked well? What has not? What to avoid? Do not duplicate items from other sections_\n\n# Key results\n_If the user asked a specific output such as an answer to a question, a table, or other document, repeat the exact result here_\n\n# Worklog\n_Step by step, what was attempted, done? Very terse summary for each step_\n```\n\n## Update Rules\n\n- **CRITICAL**: Maintain exact structure with all sections and italic descriptions intact\n- NEVER modify, delete, or add section headers\n- NEVER modify the italic _section description_ lines\n- ONLY update content below the italic descriptions\n- Do NOT reference the note-taking process anywhere in the notes\n- It\'s OK to skip updating a section if there are no substantial new insights\n- Write DETAILED, INFO-DENSE content \u{2014} include specifics like file paths, function names, error messages\n- For \"Key results\", include the complete exact output the user requested\n- Keep each section under ~2000 tokens \u{2014} condense if approaching this limit\n- **Always update \"Current State\"** to reflect the most recent work\n\n## Max Section Length\n\n- Per-section limit: 2000 tokens\n- Total session memory budget: 12000 tokens\n\n## Memory Update Prompt\n\n```\nIMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to \"note-taking\", \"session notes extraction\", or these update instructions in the notes content.\n\nBased on the user conversation above (EXCLUDING this note-taking instruction message), update the session notes file.\n```\n";Expand description
Session memory template with structured sections