feat(FN-3497): add task planning mode to CLI reference

Merged the FN-3497 task planning mode CLI reference documentation into the published CLI guide, updating `docs/cli-reference.md` with 10 lines of new content.

Fusion-Task-Id: FN-3497
This commit is contained in:
Fusion
2026-05-05 05:09:12 -07:00
committed by gsxdsm
parent af0bc4bd07
commit 7e33272026

View File

@@ -371,6 +371,42 @@ fn task create "Investigate flaky runner" --node edge-runner
fn task plan "Design a new authentication flow"
```
For AI-guided task specification, see [Planning mode](#planning-mode).
### Planning mode
Use planning mode to turn a rough idea into a triage task through an interactive AI-guided Q&A flow.
```bash
fn task plan [description]
```
`description` is optional. If you omit it, the CLI prompts for an initial idea (`Describe your idea:`) before creating the planning session.
Planning questions are interactive and use these types:
- `text` (multi-line; finish with `DONE` on its own line)
- `single_select` (pick one option)
- `multi_select` (pick one or more comma-separated options)
- `confirm` (`[Y/n]`, Enter defaults to yes)
Planning flow:
1. Create planning session from your description/idea.
2. Answer the current question.
3. Receive either a follow-up question or completion summary.
4. Review summary (title, description, suggested size, dependencies, key deliverables).
5. Confirm creation (or skip confirmation with `--yes`).
6. Task is created in `triage` when confirmed.
- With `--yes`, final confirmation is skipped and the task is created immediately.
- Without `--yes`, the CLI asks `Create this task? [Y/n]:`; answering no cancels creation.
| Option | Description |
|---|---|
| `--yes` | Skip final confirmation before creating the planned task. |
| `--project <name>`, `-P <name>` | Run planning mode against a specific registered project. |
Planning session limit: maximum **1000 planning sessions per hour**.
### Query and logs
```bash