Prompt Locations
Prompt Locations
Use this page as the canonical registry for agent instruction locations in this repo. When prompt behavior changes, update this file and any source files listed here together.
Prompt templates are also mirrored into the first-class resource registry at .wavemill/registry/resources.jsonl. The legacy .wavemill/evals/prompt-registry.jsonl log remains for GEPA compatibility.
Planner and reviewer phase prompts now resolve through tools/resolve-runtime-resource.ts, which applies governed runtime selection before shared/lib/agent-adapters.sh performs placeholder substitution. If runtime selection fails, the shell layer logs a warning and falls back to the static prompt file.
Runtime code should prefer typed lookup through shared/lib/resource-retrieval.ts when it needs prompt, memory, or policy assets. The backing files below remain the source of truth in phase one.
Registry
shared/lib/agent-adapters.sh:agent_launch_autonomous()andagent_launch_interactive()define how mill mode launches agents in autonomous vs phase-launch flows. Codex launchers should usecodex exec ... --dangerously-bypass-approvals-and-sandbox - < prompt_file, while Claude keeps its interactive CLI path. Active phase prompts arebuild_planning_prompt,build_coding_prompt, andbuild_review_prompt;build_planning_promptandbuild_review_promptcalltools/resolve-runtime-resource.tsbefore loading prompt content whilebuild_coding_promptstill readstools/prompts/coding-phase.mddirectly and appends the.coding-blocked-completion.jsonfallback guidance for coding-phase verification blockers.build_autonomous_prompthas been removed;build_routing_promptandbuild_interactive_promptremain legacy test-only render paths.tools/prompts/planning-phase.md: Planning phase instructions (loaded bybuild_planning_prompt). GEPA-optimizable.tools/prompts/coding-phase.md: Coding phase instructions (loaded bybuild_coding_prompt). GEPA-optimizable.tools/prompts/review-phase.md: Review phase instructions (loaded bybuild_review_prompt). GEPA-optimizable.tools/resolve-runtime-resource.ts: Shell-safe runtime resolver for planner/reviewer prompt content plus selection metadata.shared/lib/blocked-completion.ts: Shared validation/read helper for the coding blocked-completion artifact contract.shared/schemas/blocked-completion.schema.json: JSON Schema mirror for.coding-blocked-completion.json.tools/prompts/review-general.md: Default general-purpose review persona prompt (resolved by typed lookup inshared/lib/resource-retrieval.ts, consumed byshared/lib/review-engine.tsin normal operating mode).tools/prompts/review-general-scoped.md: Degraded-mode scoped review persona prompt (resolved by typed lookup inshared/lib/resource-retrieval.ts, consumed byshared/lib/review-engine.tswhen operating mode isconstrainedorsurvival).tools/prompts/initiative-planner.md: Standard initiative decomposition prompt (resolved by typed lookup inshared/lib/resource-retrieval.ts, consumed bytools/plan-initiative.tsviashared/lib/plan-prompt-selector.ts). Used when operating mode isnormal. GEPA-optimizable.tools/prompts/initiative-planner-compressed.md: Compressed initiative decomposition prompt (resolved by typed lookup inshared/lib/resource-retrieval.ts, consumed bytools/plan-initiative.tsviashared/lib/plan-prompt-selector.ts). Used when operating mode isconstrainedorsurvival. GEPA-optimizable.tools/prompts/issue-writer.md: Expand-mode task packet generation template. Keep section naming and Key Files semantics aligned withshared/lib/task-packet-validator.ts.shared/lib/task-packet-validator.ts: Expand-mode quality gate for task-packet structure and path semantics. Update in lockstep withtools/prompts/issue-writer.mdwhen changing validation-section or Key Files contracts..wavemill/project-context.md: Typedmemorylookup roleproject-context..wavemill/context/*.md: Typedmemorylookup rolesubsystem-spec..wavemill/context/concepts/*.md: Typedmemorylookup roleconcept-page..wavemill-config.json: Typedpolicylookup rolewavemill-config.commands/workflow.md: Phase 4 defines the interactive/workflowself-review loop.commands/bugfix.md: Phase 5 defines the bugfix self-review loop.commands/create-plan.md: Phase 5 plan review must surface planner/coder/reviewer model routing viashared/lib/model-resolution-display.tsbefore approval.commands/plan.md: Phase 5 verification must keep the plan-review routing block aligned with/create-planwhen routing records are present.commands/implement-plan.md: does not define self-review; that behavior is owned by/workflow.tools/prompts/native-read-only-phase.md: Native agent fork — system prompt for native read-only phases (planning and review). Loaded vialoadNativePhasePrompt()inshared/lib/native-agent/prompts.tsand consumed byshared/lib/native-agent/launch-planning.tsandshared/lib/native-agent/smoke.ts; the read-only review path inshared/lib/native-agent/review.tsalso uses it as the registry-logged system prompt. This is a fork fromtools/prompts/planning-phase.mdbecause the planning-phase template contains shell-specific placeholders (,, etc.) that do not apply to the TypeScript native agent path. Prompt usage is logged throughlogPromptUsage(), and the native adapter registers provider/model/api identity as aruntimeresource plus the exposed phase tool set as anagent-configresource linked in the session manifest.shared/lib/native-agent/review.ts: Native read-only review path. Reusestools/prompts/review-general.mdandtools/prompts/review-general-scoped.mdthroughloadPromptResourceSync()for the user-message review surface, and usestools/prompts/native-read-only-phase.mdas the registry-logged system prompt for runtime read-only instructions. Transcript artifacts are written under.wavemill/runs/*/native-sessions/for downstreamNativeSessionAdapterconsumption.shared/lib/resource-adapters/native-runtime-adapter.ts: Registers native provider/model/api identity (runtimeresource type) and phase-level tool set (agent-configresource) for eval traceability. Called byrunNativeAgentDryRunandrunNativeAgentLiveinshared/lib/native-agent/smoke.ts.shared/lib/wavemill-startup-runner.sh: active startup launch path used bywavemill-mill.shto enter planning.docs/routing-contract.md: bootstrap, expanded, and authoritative execution route lifecycle for mill-mode routing.shared/lib/wavemill-orchestrator.sh: deprecated compatibility wrapper that delegates towavemill-startup-runner.sh.codex/prompts/*.mdpluscodex/src/commands/workflow.js: intentional Codex-native parallel workflow; these prompts are not built throughshared/lib/agent-adapters.sh.
Typed Lookup Status
- Migrated runtime callers:
shared/lib/plan-prompt-selector.ts,shared/lib/review-engine.ts. - Remaining direct path-backed surface:
shared/lib/agent-adapters.shphase prompt loading still readstools/prompts/*.mddirectly. - Stability and versioning:
resource-retrieval.tsacceptsstabilityandversionfields, but phase one only supportsstableand rejects explicit version selection until HOK-1379 lands.
Update Rule
If you change agent launch instructions, workflow phase ownership, self-review behavior, or degraded-mode scoped review behavior, update this registry and the corresponding Claude/Codex-facing entrypoint docs so future editors can find the full instruction surface quickly.