First, resolve the user's home directory by running echo $HOME via Bash. The todo file is at <home>/.claude/todo.md. The plan directories live under <home>/.claude/todo/.
Save progress on a task back to its plan directory.
If $ARGUMENTS is a task number, use it. If only one task was checked out this session, use that. Otherwise ask.
Steps:
- Create
<home>/.claude/todo/<N>/if it doesn't exist - Write or update
<home>/.claude/todo/<N>/plan.mdwith:- Status: brief one-line summary (e.g. "In progress — fixture refactor done, coverage at 80%")
- Last session: date and summary of what was accomplished this session
- Approach: current strategy/decisions (update if changed)
- Next steps: concrete items to pick up next session
- Open questions: anything unresolved
- Preserve previous session entries under a
## Session logsection (append, don't overwrite)
- If there are working files discussed or produced during the session, save them to the task directory and reference them from plan.md
- Update the summary table in the todo file:
- Set the task's Plan column to
yes - Set the task's Status back to
pending(or a brief status likein progressif partially done)
- Set the task's Plan column to
- Confirm what was saved, listing all files written to the task directory
