CRITICAL: Developer MUST follow this session workflow to maintain continuity across conversations.
The file docs/session/.current_session is the entry point for every session.
- It contains the filename (relative to project root) of the active development plan.
- If the file is empty or does not exist, there is no active session — ask the user what to work on.
- If the file contains a plan filename, read that plan first before doing any work.
- Read
docs/session/.current_sessionto check for an active development plan. - If a plan exists: Read the referenced plan file (e.g.,
docs/session/2026-02-13-1350_mock-simplification-plan.md). Understand the current sprint, completed tasks, and next tasks. - If no plan exists: Ask the user what they'd like to work on. If the work is non-trivial, create a plan in
docs/session/first. - Check
TASK.mdfor overall project status and find the matching task section.
- Work on tasks from the active plan, following the sprint order.
- Update
TASK.md: Mark tasks as[/]in progress or[x]completed as you go. - Update the plan file: Check off completed items in the plan's task lists.
- Summarize: Brief requirement, findings, work done (with suggested git commit message), recommendations, and next steps.
- Update
TASK.mdto reflect current state.
- Mark all tasks as
[x]in both the plan file andTASK.md. - Clear
docs/session/.current_session— remove the filename so it is empty. - The completed plan file stays in
docs/session/as a historical record.
- Create a new plan file in
docs/session/with naming convention:YYYY-MM-DD-HHMM_short-description.md. - Write the plan with: problem statement, scope, sprint breakdown with task checklists.
- Add corresponding tasks to
TASK.md. - Write the plan filename into
docs/session/.current_session.
docs/session/
├── .current_session # Contains filename of active plan (or empty)
├── 2026-02-13-1350_mock-simplification-plan.md # Example: active plan
└── ... # Completed plans stay as historical records
docs/session/2026-02-13-1350_mock-simplification-plan.md
When all tasks in that plan are done, the file becomes empty (no content).
IMPORTANT:
TASK.mdis the source of truth for overall project progress. Session plans indocs/session/provide detailed sprint-level tracking for active initiatives.
- Before starting work: Read
docs/session/.current_sessionfirst, then checkTASK.md - When completing sprint tasks: Update session plan to mark items as
[x]. Add suggestion, note or finding if needed. - When completing main tasks: Update both the session plan file AND
TASK.mdto mark items as[x]. At summary and finding to session plan - When starting tasks: Mark items as
[/]in progress inTASK.md - Keep both in sync: Session plan and
TASK.mdshould always reflect actual project state