Mode routing:
- --new: Create an isolated workspace with repo copies and independent .planning/ → new-workspace workflow
- --list: List active GSD workspaces and their status → list-workspaces workflow
- --remove: Remove a GSD workspace and clean up worktrees → remove-workspace workflow
| Flag | Action | Workflow |
|---|---|---|
| --new | Create workspace with worktree/clone strategy | new-workspace |
| --list | Scan ~/gsd-workspaces/, show summary table | list-workspaces |
| --remove | Confirm and remove workspace directory | remove-workspace |
Parse the first token of $ARGUMENTS:
- If it is
--new: strip the flag, pass remainder (--name, --repos, --path, --strategy, --branch, --auto flags) to new-workspace workflow - If it is
--list: execute list-workspaces workflow (no argument needed) - If it is
--remove: strip the flag, pass remainder (workspace-name) to remove-workspace workflow - Otherwise (no flag): show usage — one of --new, --list, or --remove is required