Skip to content

Example: Full Runbook Run

End-to-end walkthrough of Junior reviewing a test repository with intentional bugs. Each step shows the exact data flowing through the runbook — useful for understanding what Junior collects, what the LLM receives, and what the output looks like.

The walkthrough uses three example prompts (security.md, logic.md, design.md). They are merged into a single system prompt and the review runs as one structured LLM call (see steps 3 and 4).

You can reproduce this by running:

Terminal window
cd /path/to/test-repo
OPENAI_API_KEY=sk-... junior run --harness pydantic \
--prompt-file ./prompts/security.md \
--prompt-file ./prompts/logic.md \
--prompt-file ./prompts/design.md \
--source branch -v
StepFileDescription
000_test_repo.mdTest repository setup and intentional bugs
101_collect.mdPhase 1: Collect — git diff, changed files, metadata
202_context_build.mdContext builder: the user message sent to AI
303_prompts.mdSystem prompts: how the prompts are merged into one system prompt
404_review.mdPhase 2: AI review — the structured ReviewResult returned by the LLM
505_publish.mdPhase 3: Formatted markdown output
SettingValue
Collectorlocal (no platform API)
Harnesspydantic (single structured call)
Publisherlocal (stdout)
Provideropenai
Modelgpt-5.4-mini
Promptssecurity.md, logic.md, design.md (merged into one system prompt)