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/.
Read the todo file.
If $ARGUMENTS matches a task (by name or number), remove it. If no arguments or ambiguous, print the summary table and ask the user which task to remove.
Two edits are required:
- •Remove the row from the summary table in the
## Summarysection. - •Remove the full task entry (the
### N.heading and all its content) from the## Taskssection.
Note: the task's plan directory at <home>/.claude/todo/<N>/ (if it exists) is kept as an archive. Do NOT delete it.
Confirm what was changed.