| name | task-switch |
| description | Switch to a different task within the current branch (fuzzy match). |
/task-switch
Switch the active task within the current branch.
Arguments
<name>: task name or partial match
Steps
- Read meta.md to get current branch directory and active task.
- List all tasks:
ls <branch-dir>/tasks/
- Resolve task name:
- Exact match on directory name
- Substring match (if unique)
- Grep
## Goal sections in all status.md files for keywords
- If multiple matches: list them and ask user to pick
- If no match: ask "No task found matching ''. Create a new task?"
- Update
**Active Task:** in meta.md using write_meta_field.
- Read the new task's status.md, knowledge (knowledge.md if flat file, or knowledge/index.md if split into directory), and workflows.md.
- Report: "Switched to task ''. Status: . Goal: ."