···20202121## Prerequisites
22222323-1. `mill` must be on your `PATH` — see [install instructions](https://github.com/laulauland/mill#install).
2424-2. A `mill.config.ts` with at least one driver/executor configured (`mill init` to scaffold one).
2323+1. A `mill.config.ts` with at least one driver/executor configured (`mill init` to scaffold one).
2424+2. If no bundled CLI is available, `mill` must be on your `PATH` — see [install instructions](https://github.com/laulauland/mill#install).
25252626## How it works
2727···9595| Option | Description |
9696| ------------- | --------------------------------------------------------------------------------------------------------------------- |
9797| `maxDepth` | Subagent nesting limit. `1` = agents can spawn subagents, but those subagents cannot spawn their own. `0` = disabled. |
9898-| `millCommand` | Executable name or path for mill. |
9898+| `millCommand` | Executable name or path for mill. If set to `"mill"` (default), pi-mill prefers a bundled CLI when present. |
9999| `millArgs` | Extra args prepended to every mill invocation. |
100100| `millRunsDir` | Override for `--runs-dir`. |
101101| `prompt` | Additional guidance appended to the tool description (model selection hints, project conventions, etc). |
+1-1
packages/pi-mill/index.ts
···218218export const config: ExtensionConfig = {
219219 /** Maximum nesting depth for subagent spawning. 1 = orchestrator can spawn subagents, but those subagents cannot spawn their own. 0 = no subagents at all. */
220220 maxDepth: 1,
221221- /** mill executable path/name. */
221221+ /** mill executable path/name. "mill" (default) prefers bundled CLI when available. */
222222 millCommand: "mill",
223223 /** Optional static args prepended to every mill invocation. */
224224 millArgs: [],