cestDone — Prompts
cestDone generates prompts dynamically at runtime from spec content and phase definitions. The primary prompt artifacts are the phase-N-prompt.md files written to .cestdone/reports/. No static prompt template files are shipped in the repo that were publicly accessible; the prompt construction logic is in TypeScript source.
Verbatim Excerpt 1 — README Architecture Description (Director's Prompt Philosophy)
From README.md:
How It Works
Planning (once per spec):
1. Planning Worker — A Worker explores the codebase and writes a structured
.plan.md with numbered phases
2. Validation — The plan format is validated; if invalid, a revision Worker
fixes it
3. Approval — If --with-human-validation, the plan is shown for approval
before execution
Execution (per phase):
1. Execute — Worker implements the phase (or the Director, in director-only mode)
2. Review — Director reads the Worker's report and code diff to verify
3. Complete — Director updates .plan.md, commits verified work, moves to next phase
Technique: The Director is explicitly designed to be a thin context-light orchestrator. Its "prompt" is the phase spec from .plan.md + the Worker's report + the git diff — no code content, just structured human-readable markdown. This prevents context accumulation.
Verbatim Excerpt 2 — File-Based Communication Pattern (README)
File-Based Communication
The Director and Workers communicate exclusively through markdown files
in .cestdone/reports/:
phase-0-prompt.md ← Planning Worker's prompt (what the Director asked)
phase-1-prompt.md ← Phase 1 Worker's instructions
phase-1-report.md ← Phase 1 Worker's report (status, summary, files changed)
phase-2-prompt.md ← Phase 2 Worker's instructions
phase-2-report.md ← Phase 2 Worker's report
Additionally:
spec.plan.md — the plan file (written by Planning Worker, read by Director)
.cestdone/cestdone-diff.txt — git diff of changes (written by Worker,
read by Director during review)
This gives full traceability of every Director↔Worker interaction.
Technique: Explicit prompt persistence — every instruction given to a Worker is saved as a phase-N-prompt.md file. This is both an audit log and a re-entrypoint: cestdone resume re-reads these files to reconstruct state without a database.
Prompting Pattern Assessment
- Prompt chaining via files: Each Worker's output (report) becomes the next Director decision's input via markdown file.
- Context isolation: Workers receive only their phase spec + project files, never the Director's full history. This is a structural context-compaction technique.
- Director-as-reviewer: The Director's prompt in review mode is: plan phase spec + Worker report + git diff. No code reading required.
- House rules injection:
--house-rules <path> injects a constraint file into all agent prompts.