Session Management Guide
Phase Tracking
Sessions track EDIRD phases:
- NOTES.md: "Current Phase" section with phase, last verb, gate status
- PROGRESS.md: "Phase Plan" section with 5 phases and status
MUST-NOT-FORGET
- Session folder location:
[DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/
- Default:
[DEFAULT_SESSIONS_FOLDER] = [WORKSPACE_FOLDER] (override in !NOTES.md)
- Required files: NOTES.md, PROBLEMS.md, PROGRESS.md
- Lifecycle: Init → Work → Save → Resume → Finalize → Archive
- Sync session PROBLEMS.md to project on /session-finalize
- Phase tracking: NOTES.md has current phase, PROGRESS.md has full phase plan
- STOP after session init: After creating session files, STOP and wait for user review. Do NOT implement session goal until explicitly requested. User must review and refine goals before work begins.
Session Lifecycle
- Init (
/session-new): Create session folder with tracking files
- Work: Create specs, plans, implement, track progress
- Save (
/session-save): Document findings, commit changes
- Resume (
/session-load): Re-read session documents, continue work
- Finalize (
/session-finalize): Sync findings to project files, prepare for archive
Session Folder Location
Base: [DEFAULT_SESSIONS_FOLDER] (default: [WORKSPACE_FOLDER], can be overridden in !NOTES.md)
Format: [DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/
Example: _PrivateSessions/_2026-01-12_FixAuthenticationBug/
Required Session Files
Use templates from this skill folder:
- NOTES.md (
NOTES_TEMPLATE.md): Key information, agent instructions, working patterns, large initial prompts (>120 tokens)
- PROBLEMS.md (
PROBLEMS_TEMPLATE.md): All problems to be addressed - initial prompts, questions, feature requests, bugs, strange behavior, investigation topics. Each problem gets a unique ID and tracks status (Open/Resolved/Deferred)
- PROGRESS.md (
PROGRESS_TEMPLATE.md): Task execution tracking - to-do list, done items, tried-but-not-used approaches
Key distinction:
- NOTES.md = Context and reference information (static knowledge)
- PROBLEMS.md = All topics requiring attention (dynamic problem list with IDs)
- PROGRESS.md = Task execution status (what's being worked on)
Assumed Workflow
1. INIT: User initializes session (`/session-new`)
└── Session folder, NOTES.md, PROBLEMS.md, PROGRESS.md created
2. PREPARE (one of):
A) User prepares work manually
└── Creates INFO / SPEC / IMPL documents, tracks progress
B) User explains problem, agent assists
└── Updates Problems, Progress, Notes → researches → creates documents
3. WORK: User or agent implements
└── Makes decisions, creates tests, implements, verifies
└── Progress and findings tracked continuously
4. SAVE: User saves session for later (`/session-save`)
└── Everything updated and committed
5. RESUME: User resumes session (`/session-load`)
└── Agent primes from session files, executes workflows in Notes
└── Continue with steps 2-3
6. FINALIZE: User finalizes session (`/session-finalize`)
└── Everything updated, committed, synced to project/workspace
7. ARCHIVE: User archives session
└── Session folder moved to _Archive/
ID System
See [AGENT_FOLDER]/rules/devsystem-ids.md rule (always-on) for complete ID system.
Quick Reference:
- Document:
[TOPIC]-[DOC][NN] (IN, SP, IP, TP)
- Example:
CRWL-SP01, AUTH-IP01
- Tracking:
[TOPIC]-[TYPE]-[NNN] (BG = Bug, FT = Feature, PR = Problem, FX = Fix, TK = Task)
- Example:
SAP-BG-001, UI-PR-003, GLOB-TK-015
- Topic Registry: Maintained in project NOTES.md
Session Init Template
NOTES.md
# Session Notes
## Session Info
- **Started**: [DATE]
- **Goal**: [Brief description]
## Key Decisions
## Important Findings
## Workflows to Run on Resume
PROBLEMS.md
# Session Problems
## Open
## Resolved
## Deferred
PROGRESS.md
# Session Progress
## To Do
## In Progress
## Done
## Tried But Not Used
1---2name: session-management-103description: Apply when initializing, saving, resuming, or closing a work session4---5
6# Session Management Guide
7
8## Phase Tracking
9
10Sessions track EDIRD phases:
11- NOTES.md: "Current Phase" section with phase, last verb, gate status
12- PROGRESS.md: "Phase Plan" section with 5 phases and status
13
14## MUST-NOT-FORGET
15
16- Session folder location: `[DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/`
17- Default: `[DEFAULT_SESSIONS_FOLDER]` = `[WORKSPACE_FOLDER]` (override in `!NOTES.md`)
18- Required files: NOTES.md, PROBLEMS.md, PROGRESS.md
19- Lifecycle: Init → Work → Save → Resume → Finalize → Archive
20- Sync session PROBLEMS.md to project on /session-finalize
21- Phase tracking: NOTES.md has current phase, PROGRESS.md has full phase plan
22- **STOP after session init**: After creating session files, STOP and wait for user review. Do NOT implement session goal until explicitly requested. User must review and refine goals before work begins.
23
24## Session Lifecycle
25
261. **Init** (`/session-new`): Create session folder with tracking files
272. **Work**: Create specs, plans, implement, track progress
283. **Save** (`/session-save`): Document findings, commit changes
294. **Resume** (`/session-load`): Re-read session documents, continue work
305. **Finalize** (`/session-finalize`): Sync findings to project files, prepare for archive
31
32## Session Folder Location
33
34**Base:** `[DEFAULT_SESSIONS_FOLDER]` (default: `[WORKSPACE_FOLDER]`, can be overridden in `!NOTES.md`)
35
36**Format:** `[DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/`
37
38**Example:** `_PrivateSessions/_2026-01-12_FixAuthenticationBug/`
39
40## Required Session Files
41
42Use templates from this skill folder:
43
44- **NOTES.md** (`NOTES_TEMPLATE.md`): Key information, agent instructions, working patterns, large initial prompts (>120 tokens)
45- **PROBLEMS.md** (`PROBLEMS_TEMPLATE.md`): All problems to be addressed - initial prompts, questions, feature requests, bugs, strange behavior, investigation topics. Each problem gets a unique ID and tracks status (Open/Resolved/Deferred)
46- **PROGRESS.md** (`PROGRESS_TEMPLATE.md`): Task execution tracking - to-do list, done items, tried-but-not-used approaches
47
48**Key distinction:**
49- **NOTES.md** = Context and reference information (static knowledge)
50- **PROBLEMS.md** = All topics requiring attention (dynamic problem list with IDs)
51- **PROGRESS.md** = Task execution status (what's being worked on)
52
53## Assumed Workflow
54
55```
561. INIT: User initializes session (`/session-new`)
57 └── Session folder, NOTES.md, PROBLEMS.md, PROGRESS.md created
58
592. PREPARE (one of):
60 A) User prepares work manually
61 └── Creates INFO / SPEC / IMPL documents, tracks progress
62 B) User explains problem, agent assists
63 └── Updates Problems, Progress, Notes → researches → creates documents
64
653. WORK: User or agent implements
66 └── Makes decisions, creates tests, implements, verifies
67 └── Progress and findings tracked continuously
68
694. SAVE: User saves session for later (`/session-save`)
70 └── Everything updated and committed
71
725. RESUME: User resumes session (`/session-load`)
73 └── Agent primes from session files, executes workflows in Notes
74 └── Continue with steps 2-3
75
766. FINALIZE: User finalizes session (`/session-finalize`)
77 └── Everything updated, committed, synced to project/workspace
78
797. ARCHIVE: User archives session
80 └── Session folder moved to _Archive/
81```
82
83## ID System
84
85See `[AGENT_FOLDER]/rules/devsystem-ids.md` rule (always-on) for complete ID system.
86
87**Quick Reference:**
88- Document: `[TOPIC]-[DOC][NN]` (IN, SP, IP, TP)
89 - Example: `CRWL-SP01`, `AUTH-IP01`
90- Tracking: `[TOPIC]-[TYPE]-[NNN]` (BG = Bug, FT = Feature, PR = Problem, FX = Fix, TK = Task)
91 - Example: `SAP-BG-001`, `UI-PR-003`, `GLOB-TK-015`
92- Topic Registry: Maintained in project NOTES.md
93
94## Session Init Template
95
96### NOTES.md
97```markdown
98# Session Notes
99
100## Session Info
101- **Started**: [DATE]
102- **Goal**: [Brief description]
103
104## Key Decisions
105
106## Important Findings
107
108## Workflows to Run on Resume
109```
110
111### PROBLEMS.md
112```markdown
113# Session Problems
114
115## Open
116
117## Resolved
118
119## Deferred
120```
121
122### PROGRESS.md
123```markdown
124# Session Progress
125
126## To Do
127
128## In Progress
129
130## Done
131
132## Tried But Not Used
133```