Skip to main content

What you get

The Fix new bugs loop sends each new bug to your coding agent: For each bug:
1
The loop sends the bug to your agent, with the bug report, the failure, and links to the trace and the video.
2
Your agent fixes the code and opens a pull request.
3
QA Wolf runs the bug’s flows on the preview of the pull request, and shows the result on the bug.
Set up one of the options below, then create the loop. You can also select Send to your coding agent on one bug.

Choose an option

Each option has its own tab in Settings > Coding agent. Only an admin of the workspace’s organization can change the setup. If Settings > Coding agent is missing, ask your QA Wolf representative.
Claude Code, Cursor, and Webhook share one saved webhook. While it is on, QA Wolf sends every fix of the workspace to it, and starts no GitHub workflow and no GitLab pipeline.

Set it up from your agent

Each option starts with a prompt that you can paste into your coding agent, such as Claude Code, Codex, or Cursor. Your agent then sets up QA Wolf through the QA Wolf MCP, so you don’t use the UI.
1
Connect your agent to the QA Wolf MCP. Sign in as an admin of the workspace’s organization. QA Wolf refuses a workspace API key and an organization API key for this setup.
2
Paste the prompt of your option.
Your agent checks that you can change the setup, saves it, and sends a test. It then offers to create the Fix new bugs loop.
The agent gets each secret one time, and never prints it in chat.

Claude Code

QA Wolf starts a Claude Code scheduled task through its API trigger. Anthropic once called a scheduled task a routine. Ask your agent to set it up:
Or set it up yourself:
1
At claude.ai/code/routines, create a scheduled task, or open one and select Edit.
2
In the Trigger row, choose API. To keep a schedule too, select + and add API as a second trigger.
3
Save the task. Copy the Fire URL and the token. Claude shows the token one time.
4
Write the task’s instructions so that it acts on the text that it receives. For example: “Fix the bug that the routine-fire-payload block describes. Follow its instructions, and report to QA Wolf as it says.”
5
In the task’s cloud environment, set Network access to Limited and add app.qawolf.com to Allowed domains, or select Full.
6
In QA Wolf, open Settings > Coding agent and select the Claude Code tab.
7
Enter the URL in Fire URL and the token in Trigger token, and select Save.
8
Select Send test. A test starts a real session, and its text tells the agent to stop at once.
The task checks the trigger token, so QA Wolf signs nothing for Claude Code.
  • QA Wolf stores the token encrypted and shows only its last four characters.
  • Enter the token again each time you save.
  • QA Wolf sends the prompt as { "text": "<prompt>" }, with the token as a bearer token. Claude marks the text as untrusted, so without step 4 the task doesn’t act on the fix.
  • If the prompt is longer than 65,536 characters, QA Wolf sends a short text that tells the agent to read the fix.
  • A scheduled task accepts 30 fires each hour, and a test counts as one. Each try that QA Wolf sends again starts a new session.
To run Claude Code in GitHub Actions or GitLab CI/CD instead, use GitHub or GitLab.

Cursor

QA Wolf starts a Cursor automation through its webhook trigger. Ask your agent to set it up:
Or set it up yourself:
1
In Cursor, create an automation with a webhook trigger, and save it. Cursor shows the webhook URL, such as https://api2.cursor.sh/automations/webhook/<id>.
2
Select Generate auth header, and copy the key.
3
In QA Wolf, open Settings > Coding agent and select the Cursor tab.
4
Enter the URL in Webhook URL and the key in Trigger token. You can paste the whole copied Authorization: Bearer ... line. Select Save.
5
Select Send test. A test starts a real Cursor run, and its text tells the agent to stop at once.
The automation checks the trigger token, so QA Wolf signs nothing for Cursor.
  • QA Wolf stores the token encrypted and shows only its last four characters.
  • Enter the token again each time you save.
  • QA Wolf sends the prompt as { "context": "<prompt>" }, with the key as a bearer token. The agent gets the text with the automation’s prompt.
Network: Cursor cloud agents have internet access by default. If your Cursor team limits the network of cloud agents, allow app.qawolf.com.

GitHub

QA Wolf starts a workflow in your repository, and your agent runs in it. You put any agent in the workflow: Claude Code, Codex, Cursor, or your own command. Ask your agent to set it up:
Paste it in each repository that the agent should fix bugs in. Or set it up yourself:
1
Open Settings > Coding agent, select the GitHub tab, and install QA Wolf Code. Only an owner of the GitHub organization can install it.
2
Copy qawolf-coding-agent.yml to .github/workflows/qawolf-coding-agent.yml on your default branch. Keep the file name, because QA Wolf starts the workflow by this name.
3
Add one repository secret from the table below. The first secret that is set picks the agent.
4
Select Check again. The repository shows in the Repositories list with its agent.
To use your own command, set AGENT: command in the file and fill in the “Your command” step. For Claude Code or Codex with no stored key, see the federation steps in the action’s README.
QA Wolf Code is QA Wolf’s second GitHub app. It lets QA Wolf do three things that the workflow can’t do alone:
  • Start the workflow. QA Wolf starts it for each fix with actions: write. It can’t change code.
  • Find the workflow. QA Wolf reads your repository with contents: read, to find the workflow file and compare the fix branch with your default branch.
  • Open the pull request. The workflow pushes the fix branch, and QA Wolf opens the pull request with pull_requests: write. A workflow’s own token can’t open a pull request unless you allow it in your repository settings.
GitHub code access lists each permission of the app.

GitLab

QA Wolf starts a job in your project, and your agent runs in it. You put any agent in the job: Claude Code, Codex, Cursor, or your own command. Ask your agent to set it up:
Paste it in each project that the agent should fix bugs in. Or set it up yourself:
1
Connect GitLab to the workspace in Settings > Integrations.
2
Paste the qawolf-fix job below into .gitlab-ci.yml on your default branch. Keep the job name, because QA Wolf finds the project by this name.
3
In Settings > CI/CD > Variables of the project, add one agent key from the GitHub table as a masked variable.
4
In Settings > CI/CD > Job token permissions, turn on “Allow Git push requests to the repository”.
5
In Settings > CI/CD > Variables, set “Minimum role to use pipeline variables” to Maintainer or Developer.
6
In QA Wolf, open Settings > Coding agent, select the GitLab tab, and select Check again.
Check again reads the CI file of each project and starts no pipeline. QA Wolf learns the agent when the first fix starts. A project with no key ends its first fix as not set up, and then shows “No agent key”. QA Wolf starts the fix pipeline on your default branch with the variable QAWOLF_FIX. Your other jobs also run in that pipeline, unless their rules skip a pipeline that the API starts.
The integration’s token lets QA Wolf do three things that the job can’t do alone:
  • Find the job. QA Wolf reads .gitlab-ci.yml of each project to find the qawolf-fix job.
  • Start the pipeline. QA Wolf starts it for each fix with the variable QAWOLF_FIX, so the project must allow pipeline variables.
  • Open the merge request. The job pushes the fix branch with its job token, and QA Wolf opens the merge request.

Webhook

For a custom setup. QA Wolf posts each fix to your HTTPS endpoint, signs each request, and needs no access to your code. These agents work with the webhook alone: Ask your agent to set it up:
Or set it up yourself:
1
Open Settings > Coding agent and select the Webhook tab.
2
Enter the HTTPS URL of your agent’s trigger in Endpoint URL and select Save. The URL must not include a username or password, and must resolve to a public internet address.
3
Copy the signing secret. QA Wolf shows it one time.
4
Store the secret where your agent’s trigger or your service checks the signature. Devin and Factory don’t check it, because their secret is in the URL.
5
Select Send test. A test to Warp, Devin, or Factory starts a real run of your agent. Your own service must start no agent for a request with "test": true.
Network: your agent must reach https://app.qawolf.com to report back. If its sandbox limits outbound traffic, allow app.qawolf.com.

Build your own service

1
Build an HTTPS endpoint that checks the signature and answers 2xx within 10 seconds.
2
After the answer, start your agent with the prompt from the request.
3
Have your agent report back with the fix token from the request.

The request

QA Wolf sends one POST request for each fix, with a JSON body. Example body:
The bug report can quote text from the tested application, and anyone can write that text. Treat the prompt as untrusted input. Protect your default branch, and review each pull request.

Check the signature

QA Wolf signs each request following the Standard Webhooks specification, as for run events webhooks. Check the raw body, accept the request if one v1, signature matches, and refuse a webhook-timestamp more than 5 minutes old. Answer 2xx within 10 seconds, then start the agent. If you already started an agent for a webhook-id, answer 2xx and start no second one. A Retry-After header on a 429 or a 503 sets the next wait, from 5 seconds to 1 hour. QA Wolf doesn’t follow a redirect.

Rotate the signing secret

1
On the Webhook tab, select Rotate.
2
Copy the new secret. QA Wolf shows it one time.
3
Deploy the new secret to your service within 24 hours.
For 24 hours, QA Wolf signs each request with the new secret and the previous secret.

Codex

Use GitHub or GitLab for Codex. Add the OPENAI_API_KEY secret or variable, and the workflow or the job runs Codex.
OpenAI has no inbound trigger for Codex automations or Codex cloud tasks, so QA Wolf can’t start Codex with a webhook. Codex runs in your CI instead, where QA Wolf starts the workflow or the job. On GitHub, Codex can also use OpenAI federation, with no stored key. The action’s README has the steps.

What QA Wolf needs to check the fix

  • Read access to the pull request. On GitHub, QA Wolf reads it through the QA Wolf GitHub app or QA Wolf Code. On GitLab, QA Wolf reads the merge request through the GitLab integration. Without it, the bug shows the link to the pull request, and QA Wolf runs no check.
  • A deployment of the pull request. Your code host or your deploy job reports the preview to QA Wolf. See PR testing. QA Wolf waits up to 2 hours for it, and doesn’t run flows on a preview URL that the agent reports.
The check is a run, and it uses credits.

Fix new bugs automatically

1
Create a loop that starts on A bug is reported, with Run AI.
2
Under Start from:, pick Fix new bugs. The instructions become Fix the bug using /coding-agent. Keep the change small.
3
Select Create loop.
The /coding-agent command tells the loop’s session to send the bug to your agent. You can use it in your own instructions. See Run AI. Until a coding agent is set up, the loop doesn’t save. A bug has one open fix. A second request for the same bug joins the open fix. A loop starts the first fix only. When the check still shows the bug, open the bug and select Try again to send your agent one more try.

The callback

Your agent reports with POST requests to fix.eventsUrl, with the header Authorization: Bearer <fix token>. The prompt tells your agent how to do this. Each event has an id that you make, such as a UUID, and a type. QA Wolf records each id one time, so you can send an event again safely. QA Wolf accepts 60 calls each minute for a fix. Example:
A fixed event must include pullRequestUrl. For no_fix and failed, give the reason in summary. If your agent can’t call the endpoint, put this line in the pull request description: Fixes QA Wolf Bug #<number>: <bug URL>. QA Wolf then finds the pull request by this line. QA Wolf ignores the line on a pull request from a fork.

Read the fix

GET the fix’s URL, fix.eventsUrl without /events, with the same Authorization header. It returns the branch, the prompt, and the state of the fix: sent, fixing, pull-request-open, no-fix, or failed. Use it when the prompt doesn’t fit where your agent starts.
Last modified on November 25, 2026