Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions bugbug/tools/bug_fix/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Comment on lines 116 to 118
Comment on lines 116 to 118
run_mode_note=mode,
)


Expand Down
3 changes: 0 additions & 3 deletions bugbug/tools/bug_fix/prompts/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down