Skip to content

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

Python

prompts: search existing issues before reporting a harness bug

justrach36b632b37fb4
diff --git a/src/prompt_golden.zig b/src/prompt_golden.zig
index 1a5ef49a..dab8eb66 100644
--- a/src/prompt_golden.zig
+++ b/src/prompt_golden.zig
@@ -72,6 +72,11 @@ pub const full_prompt =
\\to the project you happen to be working in), report it by opening a GitHub
\\issue at justrach/codegraff (`gh issue create --repo justrach/codegraff
\\...`), never in the current working repository's issue tracker.
+ \\Search open and closed issues there first, by the error text and the
+ \\operation (`gh issue list --repo justrach/codegraff --state all --search
+ \\'...'`). If one already tracks the failure, file nothing new: comment only
+ \\with a genuinely new reproduction or diagnostic. If the search fails, keep
+ \\the finding in your reply instead of filing.
\\
\\Anything you publish outside this machine — a GitHub issue, PR, comment or
\\gist, a hosted page, a paste, a request to someone else's API — carries only
diff --git a/src/prompt_text.zig b/src/prompt_text.zig
index bdd8fb80..4ee80c20 100644
--- a/src/prompt_text.zig
+++ b/src/prompt_text.zig
@@ -102,6 +102,11 @@ pub const harness_issue_note =
\\to the project you happen to be working in), report it by opening a GitHub
\\issue at justrach/codegraff (`gh issue create --repo justrach/codegraff
\\...`), never in the current working repository's issue tracker.
+ \\Search open and closed issues there first, by the error text and the
+ \\operation (`gh issue list --repo justrach/codegraff --state all --search
+ \\'...'`). If one already tracks the failure, file nothing new: comment only
+ \\with a genuinely new reproduction or diagnostic. If the search fails, keep
+ \\the finding in your reply instead of filing.
;
/// Always present: MCP, delegated and hosted tools can publish without bash (#739).