From 600ff5d3160edbf610921ae1efcced8fcfef3815 Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Fri, 15 May 2026 11:24:23 -0700 Subject: [PATCH] fix(bot): add anti-hallucination rule to prompts --- tools/gemini-cli-bot/brain/interactive.md | 5 ++++- tools/gemini-cli-bot/brain/scheduled.md | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/gemini-cli-bot/brain/interactive.md b/tools/gemini-cli-bot/brain/interactive.md index cee59d3207..9dc5307a69 100644 --- a/tools/gemini-cli-bot/brain/interactive.md +++ b/tools/gemini-cli-bot/brain/interactive.md @@ -95,4 +95,7 @@ If the user's request is purely informational: - **Do NOT delegate to the 'generalist' agent.** - **Strict Read-Only Reasoning**: You cannot push code or post comments via API. Your only way to effect change is by writing to specific files and explicitly - staging file changes using the `git add` command. + staging file changes using the `git add` command. **You MUST NOT claim to have + made changes or staged files in your response or in `lessons-learned.md` + unless you have successfully executed the corresponding tool calls in the + current session.** diff --git a/tools/gemini-cli-bot/brain/scheduled.md b/tools/gemini-cli-bot/brain/scheduled.md index 06a0197ac4..c7c7cdbb18 100644 --- a/tools/gemini-cli-bot/brain/scheduled.md +++ b/tools/gemini-cli-bot/brain/scheduled.md @@ -97,7 +97,10 @@ For any detected bugs, bottlenecks, or opportunities: artifacts do not yet exist. These are environment issues, not code bugs. - **Strict Read-Only Reasoning**: You cannot push code or post comments via API. Your only way to effect change is by writing to specific files and explicitly - staging file changes using the `git add` command. + staging file changes using the `git add` command. **You MUST NOT claim to have + made changes or staged files in your response or in `lessons-learned.md` + unless you have successfully executed the corresponding tool calls in the + current session.** ## Loop Prevention & Success Criteria