diff --git a/bugbug/tools/bug_fix/agent.py b/bugbug/tools/bug_fix/agent.py index d49132eab5..806cb132c2 100644 --- a/bugbug/tools/bug_fix/agent.py +++ b/bugbug/tools/bug_fix/agent.py @@ -112,20 +112,10 @@ def load_system_prompt( dry_run: bool, ) -> str: tmpl = (HERE / "prompts" / "system.md").read_text() - if dry_run: - mode = ( - "**DRY-RUN ACTIVE.** Bugzilla write tools (`update_bug`, " - "`add_comment`, `add_attachment`, `create_bug`) are disabled — " - "do not attempt them. Source-repo edits (Write/Edit) are still " - "allowed so you can prepare and inspect a candidate patch; the " - "caller will review diffs manually." - ) - else: - mode = "Writes are live. Be careful." + return tmpl.format( rules_dir=str(rules_dir.resolve()), extra_instructions=extra or "(none)", - run_mode_note=mode, ) diff --git a/bugbug/tools/bug_fix/prompts/system.md b/bugbug/tools/bug_fix/prompts/system.md index 86c887f045..5ece5c8667 100644 --- a/bugbug/tools/bug_fix/prompts/system.md +++ b/bugbug/tools/bug_fix/prompts/system.md @@ -81,9 +81,6 @@ Always be **brief** and to the point. Do not post long-winded comments, develope Do **not** post private comments, all developers on the bug need to see the comments. -# Run mode - -{run_mode_note} # Additional instructions for this run