Loading

Fix a reported bug with a draft PR

Hand a bug report to Claude Tag in its thread. It reproduces the bug, fixes it and opens a draft pull request for an engineer to review.

10 minEngineeringClaude Tag

A bug reported in an engineering channel often stays open until an engineer can set planned work aside, reproduce it and find the cause. That investigation is usually most of the work, and the change itself is small.

With Claude Tag in the channel and the repository connected, reply to a report. Claude reproduces the bug, finds the cause and opens a draft pull request. It posts its progress in the thread, where anyone on the team can ask for a different approach. It works on its own copy of the code under its own GitHub account, so branch protection and review apply. An engineer decides whether it merges.

Set up

Loading

What to ask Claude, and what it does

When a bug report comes in, reply in its thread and ask Claude to reproduce and fix it. Tell it which repository, and when to stop, such as once a draft PR is open and CI passes.

Claude's first reply is a checklist that it updates as it works, so you can check in and see Claude's progress. When it finishes, it posts the message below:

Loading

Claude opened the pull request under its own GitHub account, so your branch protection and review rules apply to it.

Before anyone merges, read the changed code in the pull request and check that the new test covers the reported case.

Follow ups

Correct the approach in the thread

Anyone in the thread can ask for a change, without tagging Claude again, and Claude updates the same pull request (reply in the thread to steer). Leo, who owns the export code, replies in the thread:

Loading

Have Claude follow a pull request

Claude can follow a pull request, whoever opened it, and post each CI result in the thread. Ask it to tag you only when a check fails.

Loading

Have Claude act on every new report

With Respond automatically on for the channel, Claude can act on new reports without a tag (standing work). Send the message below once, and Claude tries to reproduce each new bug report. It posts a draft pull request, or what it tried.

Loading

See what standing instructions the channel has

Claude lists a channel's standing instructions when asked, so you can change or stop one.

Loading

Ask for a diagnosis only

You decide how far Claude goes. Ask for the cause only, and Claude posts its findings in the thread without changing code or opening a pull request.

Loading

Tips

Give Claude the repository and a clear stopping point

Prior to your first message, Claude has no copy of your code when a thread starts. Once you name the repository in your messages Claude clones it. Tell it when to stop, such as once CI passes, so it knows when the fix is finished.

Teach Claude your repository's conventions once

Claude can follow conventions for a repository every time it works there, such as where files go or what a pull request must include (make repo conventions stick).