- Read
docs/session/.current_sessionfor active plan. - If a plan exists → read it, understand current sprint and next tasks.
- If no plan exists → process user request. For non-trivial work, create a plan first.
- Check
TASK.mdfor overall project status.
- Work on tasks from the active plan.
- Update
TASK.md:[/]in progress,[x]completed. Keep entries concise. - Update the plan file: check off completed items, add findings/detail there (not in TASK.md).
Revise the current plan in-place — do NOT create a new one.
- If the user gives feedback, points out a wrong approach, or requests changes:
- Edit the existing plan file — update the affected tasks to reflect the corrected approach.
- Add a dated note in the Findings/Progress section explaining what changed and why.
- Keep all unaffected remaining tasks intact.
- Only create a new plan if the scope has fundamentally changed (e.g., user requests an entirely different feature). Even then:
- Properly close the old plan: mark remaining items as
[-]deferred or→ moved to <new plan>. - List all carried-forward items in the new plan with a reference to the old plan.
- Never silently abandon unchecked items — every remaining task must be explicitly accounted for.
- Properly close the old plan: mark remaining items as
- Changing the approach to one task does not affect unrelated tasks — only modify the tasks that the feedback applies to. All other remaining work in the plan stays as-is.
- Summarize: brief requirement, findings, work done (with suggested git commit message), recommendations, next steps.
- Update plan file: check off items, add findings/recommendations to current sprint section.
- Update
TASK.mdto reflect current state (concise status only).
- Mark everything
[x]in both plan file andTASK.md. - Clear
docs/session/.current_session(empty the file, don't delete it).
- Check the current plan first — if
.current_sessionpoints to an active plan with remaining tasks, you must handle those tasks before starting a new plan (revise in-place, carry forward, or explicitly defer). Never silently replace an active plan. - Create plan file:
docs/session/YYYY-MM-DD-HHMM_short-description.md - Include: problem statement, scope, sprint breakdown with task checklists.
- If replacing an old plan, include a "Carried from" section listing deferred items and a reference to the old plan file.
- Add corresponding tasks to
TASK.md(concise entries only). - Write the plan filename into
docs/session/.current_session.
- Do not use
/tmp, always use local project or relative path.