Fix a bug from an alert
A PR with checks
Your alerting posts to a webhook trigger; an agent reproduces the failure, fixes it and opens a pull request with the checks passing.
Best for
- On-call teams with alerts that point at code
- Failures a test can reproduce
Uses
- A connected GitHub repository
- A Project
- An automation with a webhook trigger
Automation · Fix from alert
POST /o/{org}/p/{project}/automations/{automation}/triggers{
"kind": "webhook"
}Watch it work, then read what comes back
GET /o/{org}/sessions/{session}/eventsevent: thinkingThe stack trace points at retry.ts:88.event: tool_useedit · retry.test.ts (reproduces it)event: tool_result1 failedevent: tool_useedit · retry.tsevent: tool_result12 passedevent: messageOpened a pull request with the fix and the test.GET /o/{org}/sessions/{session}- status
completed- branch
rush/fix-retry-timeout- pr_url
github.com/acme/api/pull/…- total_cost_usd
0.88
Steps
- 01
Add a webhook trigger
Create an automation with the prompt above and a
webhooktrigger. Rush shows its URL and signing secret once. - 02
Point your alerting at it
Send the alert's payload to the trigger URL. The payload reaches the agent as untrusted data after your prompt, never as instructions.
- 03
Fire a test alert
A run starts per alert. Duplicate deliveries are deduplicated, and a busy or rate-limited automation reports why it skipped.
- 04
Review the pull request
The run opens one pull request on its own branch. When the checks do not pass, the run ends
needs_review, never a false done.
In the API and the docs
Related
All use casesInvestigate an incident
A report with evidence
Hand the agent an incident and read access to its sources; it comes back with a report that cites what it found, and no code change.
Open the recipeReview every pull request
A review on the PR
Each pull request gets an agent that checks it out in its own sandbox, runs the tests and posts a review with the evidence.
Open the recipe