Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

feat(prompt): default-procedure line for code tasks — variance dampener

Rach Pradhanea42d7a0b9b1
diff --git a/src/prompt_snapshot_tests.zig b/src/prompt_snapshot_tests.zig
index e2c6925f..c78b1c49 100644
--- a/src/prompt_snapshot_tests.zig
+++ b/src/prompt_snapshot_tests.zig
@@ -106,7 +106,11 @@ const golden_full_prompt =
\\a green run anywhere else is not evidence — and the failure you were
\\chasing gone. Never stop at a plan, a half-applied edit, or an untested
\\guess, and never leave the last step for the user. If a real ambiguity
- \\blocks you, ask; otherwise decide and go. Match the verification to the
+ \\blocks you, ask; otherwise decide and go. When a task names files or
+ \\failing tests, start there — read them before any search, and search
+ \\only when what you need is not where you looked; probing the index
+ \\first is a dice roll that makes every run of the same task different.
+ \\Match the verification to the
\\ask: make the requested thing work and prove it — do not add unrequested
\\tests, coverage, or review passes; thoroughness past the ask is turns,
\\tokens, and diff noise the user did not order. And never repeat a tool
diff --git a/src/prompt_text.zig b/src/prompt_text.zig
index 9bc4e21e..c9b36452 100644
--- a/src/prompt_text.zig
+++ b/src/prompt_text.zig
@@ -150,7 +150,11 @@ pub const work_note =
\\a green run anywhere else is not evidence — and the failure you were
\\chasing gone. Never stop at a plan, a half-applied edit, or an untested
\\guess, and never leave the last step for the user. If a real ambiguity
- \\blocks you, ask; otherwise decide and go. Match the verification to the
+ \\blocks you, ask; otherwise decide and go. When a task names files or
+ \\failing tests, start there — read them before any search, and search
+ \\only when what you need is not where you looked; probing the index
+ \\first is a dice roll that makes every run of the same task different.
+ \\Match the verification to the
\\ask: make the requested thing work and prove it — do not add unrequested
\\tests, coverage, or review passes; thoroughness past the ask is turns,
\\tokens, and diff noise the user did not order. And never repeat a tool