> ## Documentation Index
> Fetch the complete documentation index at: https://smithers.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# route-task

> Classify a plain-English script and either run it as a single task or recommend the right durable workflow.

`route-task` is an archived, copyable concierge example, not installed by
`init`. Copy `examples/init-pack/route-task.tsx` and its `examples/` dependency
closure, or ask `create-workflow` for a repo-specific router. Describe what you
want in plain English: it decides if the work is a quick one-shot task or a
durable job for a real workflow, then runs it or hands you the best-fit workflow.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bunx smithers-orchestrator workflow run route-task \
  --prompt "Summarize what changed in the last 10 commits"
```

Use this when unsure which workflow fits: the classifier is cheap and fast, and
only the chosen path spends a smart agent.

## Stages

1. **classify**: cheap/fast agent sorts the script into a task `mode` and decides
   `durable` (needs ordering, crash-recovery, approval, or loops?).
2. **execute**: non-durable path; a tool-using agent does the work in one pass
   and reports `{ summary, done }`.
3. **recommend**: durable path; a smart agent points at the single best-fit
   workflow (`implement`, `research-plan-implement`, `review`, `plan`,
   `research`, `grill-me`, `ralph`, `debug`, `audit`, `create-workflow`,
   `create-skill`, `extract-skill`, `context-doctor`,
   `triage-run`, `report-slideshow`, `eval-author`, `improve-test-coverage`)
   and explains why, schema-enforced to one of those ids so a hallucinated id
   fails validation instead of flowing downstream.

Only one of `execute` or `recommend` runs, gated on the classifier's `durable`
verdict.

## Inputs

| Input    | Type   | Default                                                              |
| -------- | ------ | -------------------------------------------------------------------- |
| `prompt` | string | `"Describe the task you want Smithers to handle, in plain English."` |

## Monitor it

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bunx smithers-orchestrator workflow run route-task --prompt "…" -d   # detach
bunx smithers-orchestrator ps                                        # active / paused / recent
bunx smithers-orchestrator logs RUN_ID -f                           # follow events
```

Run a recommended durable workflow directly, e.g.
`bunx smithers-orchestrator workflow run implement --prompt "…"`.
