Expand description
Stage-specific agent prompts.
Prompts are minimal: each stage hands the agent its GSD slash command
(from Stage::gsd_command) and the DEVFLOW_RESULT completion contract.
There is no long instruction template — the GSD command carries the process,
and DevFlow only needs the structured completion marker back.
Enums§
- FixType
- A fix variant used when looping Code ↔ Validate.
- Stage
Intent - The data a stage wants rendered, with NO agent-specific syntax.
Constants§
- COMPLETION_
PROTOCOL - The completion contract every agent must honor as its final message.
Functions§
- checkpoint_
auto_ decide_ prompt - The synthesized instruction sent into a resumed Claude session when a confirmed human-blocking checkpoint has nobody available to answer it (D-03, 28-CONTEXT.md): DevFlow’s default, unconditional policy — no flag, no config toggle — is for the agent to resolve the checkpoint itself, using its own judgment, and record why.
- fix_
prompt - Build a fix prompt used on Code → Validate loop-backs.
- render_
claude_ style - Render a
StageIntentas the legacy Claude/OpenCode slash-command text. - render_
workflow_ style - Render a
StageIntentas a workflow-reference instruction for agents that cannot receive the legacy/gsd-*slash command (Codex, Pi). The instruction points at the GSD workflow file to follow, carries the--autotoken where the workflow requires it, and states the completion contract. Contains NO GSD slash command. Render aStageIntentfor an agent that cannot receive the legacy/gsd-*slash command (Codex, Pi). Each stage’s contract is preserved — Validate verdict, Ship review gate, Define no-op, Plan idempotency — but the instruction references the workflow file underworkflow_root(a per-driver path) instead of naming a slash command. - stage_
prompt - Build the prompt for a stage of a phase.
- stage_
prompt_ for_ project - Build a stage prompt with project-local configuration applied.