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/.
Check out a task for the current session.
If $ARGUMENTS is a task number, use it. Otherwise print the summary table from the todo file and ask.
Steps:
- Read the todo file and find the task by number
- Display the task's full description
- Check if
<home>/.claude/todo/<N>/exists- If it does, read
plan.mdand list all other files in the directory. Read any.mdor.txtfiles and summarise other file types present. - If it doesn't, tell the user there's no plan directory yet — one will be created on checkin
- If it does, read
- Update the summary table: set the task's Status to
active - Note the task's Directory field and set that as the working context
- Summarise the current state: what was done previously (from plan.md) and what remains
The user is now working on this task. All subsequent work should be understood in the context of this task until the user checks in or switches.
