[bug_fix] Update prompt emphasize on generating patch with tests#6001
Open
suhaibmujahid wants to merge 1 commit intomozilla:masterfrom
Open
[bug_fix] Update prompt emphasize on generating patch with tests#6001suhaibmujahid wants to merge 1 commit intomozilla:masterfrom
suhaibmujahid wants to merge 1 commit intomozilla:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the bug-fix agent system prompt to shift from pure triage toward producing fix patches and validating them with tests, aligning the prompt with recent generated examples.
Changes:
- Renames the agent role from “bug-triage” to “bug-fix” and updates the job statement to include fixing.
- Adds guidance allowing source-repo edits to prepare/inspect a candidate patch.
- Adds guidance to update/write tests and verify failure-before / pass-after.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bde9f4b to
a4c6974
Compare
marco-c
reviewed
May 7, 2026
|
|
||
| Source-repo edits (Write/Edit) are allowed so you can prepare and inspect a candidate patch. | ||
|
|
||
| Test your changes by updating existing tests or writing a new test if needed. If an existing test already covers the issue, you can just run it to verify that it fails before the fix and passes after. |
Collaborator
There was a problem hiding this comment.
Might want to add instructions to avoid "stupid" tests that Claude often generates, @padenot do you have any tips from your usage on this?
marco-c
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This version of the agent is similar to the one used to generate the following examples: