🧠Memory System/session
Session Memory Default Template
src/services/SessionMemory/prompts.ts
Prompt Engineering Insight
Italicized section skeleton for session-local notes that survive compaction—encourages structured handoff without duplicating the main transcript.
Techniques Used
taxonomybehavioral-constraintsguardrailsscope-limiting
prompt
Session Title
_A short and distinctive 5-10 word descriptive title for the session. Super info dense, no filler_
Current State
_What is actively being worked on right now? Pending tasks not yet completed. Immediate next steps._
Task specification
_What did the user ask to build? Any design decisions or other explanatory context_
Files and Functions
_What are the important files? In short, what do they contain and why are they relevant?_
Workflow
_What bash commands are usually run and in what order? How to interpret their output if not obvious?_
Errors & Corrections
_Errors encountered and how they were fixed. What did the user correct? What approaches failed and should not be tried again?_
Codebase and System Documentation
_What are the important system components? How do they work/fit together?_
Learnings
_What has worked well? What has not? What to avoid? Do not duplicate items from other sections_
Key results
_If the user asked a specific output such as an answer to a question, a table, or other document, repeat the exact result here_
Worklog
_Step by step, what was attempted, done? Very terse summary for each step_
Tags
session-memorytemplate