Skip to main content

Module prompt

Module prompt 

Source
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.
StageIntent
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 StageIntent as the legacy Claude/OpenCode slash-command text.
render_workflow_style
Render a StageIntent as 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 --auto token where the workflow requires it, and states the completion contract. Contains NO GSD slash command. Render a StageIntent for 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 under workflow_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.