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 → Close → Archive
- Sync session PROBLEMS.md to project on /session-close
- Phase tracking: NOTES.md has current phase, PROGRESS.md has full phase plan
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-resume): Re-read session documents, continue work
- Close (
/session-close): Sync findings to project files, 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
- PROBLEMS.md (
PROBLEMS_TEMPLATE.md): Problems found and their status (Open/Resolved/Deferred)
- PROGRESS.md (
PROGRESS_TEMPLATE.md): To-do list, done items, tried-but-not-used approaches
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-resume`)
└── Agent primes from session files, executes workflows in Notes
└── Continue with steps 2-3
6. CLOSE: User closes session (`/session-close`)
└── 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-113description: 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 → Close → Archive
20- Sync session PROBLEMS.md to project on /session-close
21- Phase tracking: NOTES.md has current phase, PROGRESS.md has full phase plan
22
23## Session Lifecycle
24
251. **Init** (`/session-new`): Create session folder with tracking files
262. **Work**: Create specs, plans, implement, track progress
273. **Save** (`/session-save`): Document findings, commit changes
284. **Resume** (`/session-resume`): Re-read session documents, continue work
295. **Close** (`/session-close`): Sync findings to project files, archive
30
31## Session Folder Location
32
33**Base:** `[DEFAULT_SESSIONS_FOLDER]` (default: `[WORKSPACE_FOLDER]`, can be overridden in `!NOTES.md`)
34
35**Format:** `[DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/`
36
37**Example:** `_PrivateSessions/_2026-01-12_FixAuthenticationBug/`
38
39## Required Session Files
40
41Use templates from this skill folder:
42
43- **NOTES.md** (`NOTES_TEMPLATE.md`): Key information, agent instructions, working patterns
44- **PROBLEMS.md** (`PROBLEMS_TEMPLATE.md`): Problems found and their status (Open/Resolved/Deferred)
45- **PROGRESS.md** (`PROGRESS_TEMPLATE.md`): To-do list, done items, tried-but-not-used approaches
46
47## Assumed Workflow
48
49```
501. INIT: User initializes session (`/session-new`)
51 └── Session folder, NOTES.md, PROBLEMS.md, PROGRESS.md created
52
532. PREPARE (one of):
54 A) User prepares work manually
55 └── Creates INFO / SPEC / IMPL documents, tracks progress
56 B) User explains problem, agent assists
57 └── Updates Problems, Progress, Notes → researches → creates documents
58
593. WORK: User or agent implements
60 └── Makes decisions, creates tests, implements, verifies
61 └── Progress and findings tracked continuously
62
634. SAVE: User saves session for later (`/session-save`)
64 └── Everything updated and committed
65
665. RESUME: User resumes session (`/session-resume`)
67 └── Agent primes from session files, executes workflows in Notes
68 └── Continue with steps 2-3
69
706. CLOSE: User closes session (`/session-close`)
71 └── Everything updated, committed, synced to project/workspace
72
737. ARCHIVE: User archives session
74 └── Session folder moved to _Archive/
75```
76
77## ID System
78
79See `[AGENT_FOLDER]/rules/devsystem-ids.md` rule (always-on) for complete ID system.
80
81**Quick Reference:**
82- Document: `[TOPIC]-[DOC][NN]` (IN, SP, IP, TP)
83 - Example: `CRWL-SP01`, `AUTH-IP01`
84- Tracking: `[TOPIC]-[TYPE]-[NNN]` (BG = Bug, FT = Feature, PR = Problem, FX = Fix, TK = Task)
85 - Example: `SAP-BG-001`, `UI-PR-003`, `GLOB-TK-015`
86- Topic Registry: Maintained in project NOTES.md
87
88## Session Init Template
89
90### NOTES.md
91```markdown
92# Session Notes
93
94## Session Info
95- **Started**: [DATE]
96- **Goal**: [Brief description]
97
98## Key Decisions
99
100## Important Findings
101
102## Workflows to Run on Resume
103```
104
105### PROBLEMS.md
106```markdown
107# Session Problems
108
109## Open
110
111## Resolved
112
113## Deferred
114```
115
116### PROGRESS.md
117```markdown
118# Session Progress
119
120## To Do
121
122## In Progress
123
124## Done
125
126## Tried But Not Used
127```