Skip to main content

Plan

cmd/crewship/cmd_plan.go runs the default agent in PLAN mode. The agent outputs a step-by-step plan plus the files it would touch, without calling any tools or modifying anything. Useful before kicking off a long autonomous run — review, adjust, then re-run with crewship run or crewship ask. The agent stays a normal CHAT agent server-side — plan mode is achieved by prompting alone, not by a separate API mode. This keeps the feature shippable in one PR at the cost of relying on instruction-following: if the agent ignores “do not call tools,” output degrades gracefully into a verbose preview.

Prompt template

Plan mode injects the following prefix into the prompt:
The terminator PLAN READY is grep-able for shell pipelines that gate on “is the plan finished”.

crewship plan [prompt]

--quiet is forced on by default so the plan body isn’t lost in [agent: …] noise. Pass --quiet=false to re-enable meta output.

Examples

Common errors

  • plan requires a prompt (positional, --prompt, or stdin) — empty input.
  • internal: ask command has no RunE — wiring error, should never appear in shipped builds.

--plan on ask / run

crewship ask --plan and crewship run <slug> --plan flip the same latch (planModeRequested) and prepend the same prefix, so plan-mode is reachable from both directions.

See also