CI failure explainer
By Toolspoke
Give it a red build and it reads the failing run down to the step and line that broke, and says whose problem it is.
Needs a Toolspoke account. You choose which project it installs into.
CI failure explainer
Runs when you ask- Find the run in GitHub
- Find what failed in GitHub
- Compare in GitHub
- Decide whose it is
NeverRe-run, cancel or dispatch a workflow.
- GitHub
- Required integrations
- Runs when you ask
- No schedule of its own
- Answer in four lines
- What its last step does
- Nothing destructive
- 0 of 26 actions in its tools
On this page
The short version
- What it is
- A ready-made Toolspoke agent that explains why a GitHub build is failing.
- What it reads
- The failed workflow run, the pull request's changed files and the base branch's latest run.
- What you get
- Which workflow failed, whose it is, the evidence and the smallest next step.
- How it decides whose
- It compares the failure with the pull request's diff and with the base branch.
- How often
- When you hand it a pull request, a branch or a run link.
- What it never does
- Re-run, cancel or dispatch a workflow, push a commit or open a pull request.
- What you need
- A Toolspoke account and a GitHub sign-in or personal access token.
What CI failure explainer will never do
CI failure explainer is told never to re-run, cancel or dispatch a workflow, and never to open a pull request, push a commit or comment on one unless you ask it to post its answer there.
- Re-run, cancel or dispatch a workflow.
- Open a pull request, push a commit, or comment on the pull request unless the person asks you to post your answer there.
Why it will not re-run a failing build
A re-run that passes can hide a flaky test. It is better to know the test is flaky than to see a green tick, so re-running is left to the person who asked.
What it does with instructions inside a log or a commit
Logs, commit messages and test output are written by people and tools, and can contain text aimed at an agent. The agent treats them as content to read, not as requests.
Why you may still want a lock
No instruction is a perfect lock. If you want certainty, switch off the GitHub write actions in your project, so those calls are refused whatever a log says.
These are written into CI failure explainer's instructions. They guide the agent, but they are not a permission. What it is allowed to touch is set by the access you grant.
CI failure explainer reads the build and explains it. Every re-run, push and merge stays with a person.
What CI failure explainer does
CI failure explainer is an AI agent that looks at a failing GitHub build and tells you whose problem it is, so you know who should fix it before anyone opens a log.
A red build is only slow to fix when nobody knows whose it is. A failure can belong to your change, to the branch it sits on, or to the pipeline itself, and each has a different owner and a different fix.
The red cross does not say which. You have to open the run, work out which workflow failed, check whether the same workflow passes on the base branch, and compare it with what your change touched.
CI failure explainer does that comparison. It finds the failed run, lists the files your pull request changed, and checks the base branch's latest run of the same workflow. Then it decides whether the failure points at your change, at the branch, or at the pipeline.
In practice, you get a short answer:
- Which workflow failed, and on which commit
- Whose it is: this change, the branch or the pipeline
- The evidence: the changed files, or the base branch failing the same way
- The smallest next step
How it works
CI failure explainer works in four steps: it finds the run, finds the failed workflow, compares it with your diff and the base branch, and decides whose it is. All of it comes from the agent's written instructions, which you can read and edit after you install it.
Step 1: Find the run
From a pull request or a branch, it finds the latest failed attempt.
Step 2: Find what failed
It identifies the failed workflow and the commit it ran on.
Step 3: Compare
It lists your changed files and checks the base branch's latest run of the same workflow.
Step 4: Decide whose it is
It names this change, the branch or the pipeline, with the evidence.
It uses the most recent failed attempt
From a pull request, it takes the head commit and lists the workflow runs for it. From a branch, it takes the latest run. It always uses the most recent failed attempt, because an older one may already be fixed.
It compares with your diff
It lists the files the pull request changed, so it can tell whether the failing workflow covers code you touched.
It decides whose the failure is
This change: the failing workflow covers files the pull request touches, and it names them. The branch: the same workflow fails on the base branch's latest run, so your change is innocent. The pipeline: the run record points at the pipeline, such as an earlier attempt that passed on the same commit, and it says what it saw.
It does not quote the log
The GitHub connection Toolspoke uses reads workflow runs and pull requests, not job logs. So the answer names the failed workflow and links the run, and the exact error line is one click away in GitHub. It does not guess at an error from a job name. The limits are listed under what it will never do.
What an answer looks like
An answer from CI failure explainer is a few lines: which workflow failed, whose it is, the evidence and the smallest next step.
The test workflow failed on commit 3f9a2c1.
What failed
- Workflow:
test, attempt 1, on the pull request's latest commit. - Other workflows:
buildandlintpassed.
Whose it is
- This change. The pull request edits
invoice.tsandinvoice.test.ts, which thetestworkflow covers. The same workflow passes onmain.
Smallest next step
Open the failing step in the run and fix the test or the change. The run link is below.
- What failed
The workflow that failed, the commit it ran on and which other workflows passed, with a link to the run.
- Whose it is
This change, the branch or the pipeline, with the evidence: the files in your diff, or the base branch failing the same way.
- Smallest next step
The one thing to do next. It is a suggestion, and a person makes the change.
Why it will not just re-run the build
A re-run that happens to pass hides a flaky test, and that is a decision for the person who asked. CI failure explainer reads and explains, and it leaves the re-run to you.
If the run cannot be read, it says what it could see and stops, because a confident guess from a workflow name is worse than a plain answer.
Who uses CI failure explainer
CI failure explainer suits anyone who opens a red build and has to work out whose problem it is. The examples use made-up names.
A developer with a red pull request
Jo Adeyemi pushed a small change and the build failed in a job she has never opened. She pastes the pull request link and learns it is her test, with the line number.
invoice.ts, which you edited.A reviewer who needs to know if it is safe to merge
Imran Qureshi reviews many pull requests. When one is red, he asks for an answer and finds out the failure is on main too, so the pull request is not to blame.
main run.A platform engineer chasing flaky runs
Tomás Reyes owns the pipeline. The agent tells him when a failure points at the pipeline, such as a commit that passed on another attempt, so he can look there instead of chasing a code change.
A founder who commits late at night
Mira Okafor ships on her own. The agent tells her whether the failure is hers or the pipeline's, so she knows where to look and can go to bed sooner.
What CI failure explainer connects to
CI failure explainer connects to one tool: it reads GitHub. You sign in yourself, and Toolspoke stores the connection encrypted, so the agent never sees the credential.
GitHub
RequiredManage repositories, issues, pull requests, and Actions.
Authentication: Personal access token
Skills it follows
| Tool | What CI failure explainer does | What it cannot do |
|---|---|---|
| GitHub | Finds the pull request, its changed files and the workflow runs on a commit and on the base branch (get_pull_request, list_pull_request_files, list_workflow_runs). | Read job logs: the connector has no log action. It also has no delete action. It can re-run a workflow, push a commit, open a pull request and comment, and this agent's instructions forbid all of them. |
That the agent never re-runs a workflow or changes code is an instruction to the agent, not a lock. If you want a lock, a project can switch individual actions off. Turn off the GitHub write actions and no agent in the project can call them. The access control guide explains how.
The activity log records each call, and the answer the agent gives is stored with the run.
When CI failure explainer runs
CI failure explainer has no schedule. It runs when you hand it a pull request, a branch or a link to a run, and it stops when it has answered.
- You give it a pull request, a branch or a run link.
- It finds the latest failed attempt and compares it.
- It answers in a few lines.
- It changes nothing in your repository.
Each run uses model credit from your workspace balance. The GitHub calls themselves are free.
Your copy is an ordinary agent in your project. You can run it on demand and edit its instructions. The agent's page lists recent runs and their cost.
How to set up CI failure explainer
To get CI failures explained, add CI failure explainer to a Toolspoke project, sign in to GitHub and hand it a failing build. It takes a few minutes.
Step 1: Create a Toolspoke account or sign in
Choose Use this agent. If you are new, you will be asked to sign up first, and you come straight back to this agent afterwards.
Step 2: Add it to a project
Pick the project it should live in. You get your own editable copy, and you can see the tool it brings, GitHub, before anything connects.
Step 3: Connect GitHub
Choose Sign in with GitHub, or paste a personal access token that can read the repositories and their Actions runs. Use the narrowest access that works.
Step 4: Hand it a failing build
Give it a pull request link, a branch name or the URL of a workflow run.
Step 5: Read the answer, then act
Open the run it links to and look at the failing step. Re-run or fix it yourself, as the answer suggests.
Make it fit your pipeline
CI failure explainer's instructions are plain English and you can edit them after you install it. Installing copies the agent, so your edits stay with your copy. Open the agent in Toolspoke and tell the builder what to change, and it rewrites the instructions.
Paste any sentence below into the builder chat, or say the same thing in your own words.
Compare against the develop branch, not main, when deciding whether the branch is to blame.
The e2e workflow is known to be flaky. When only e2e fails and the same commit passed on another attempt, say it is the pipeline.
After answering, post the same answer as a comment on the pull request.
This lets the agent write to GitHub, so it is a change to what it may do. Only add it if you are happy for it to comment.
Answer in two lines: which workflow failed and whose it is.
End every answer with a link to the failed run in GitHub.
Most of these edits need no more access and do not touch the Never rules. The one that posts a comment does, so it is yours to choose.
How it compares to other options
CI failure explainer beats the alternatives when you want to know whose failure it is before you read a log, and loses to them when you need the error line itself or an automatic fix.
| Compared on | CI failure explainer | Reading the log yourself | A generic AI chat | A CI summary plugin |
|---|---|---|---|---|
| Quotes the error line | No, links the run | Yes, slowly | Only what you paste | Usually |
| Says whose failure it is | Yes, with evidence | If you check | No | Rarely |
| Compares with the base branch | Yes | By hand | No | No |
| Re-runs or changes code | No, told not to | Up to you | No | Sometimes |
| Says when it cannot tell | Yes | Yes | Often guesses | Varies |
| Setup effort | Connect GitHub | None | Paste logs each time | Install per repository |
Reading the log yourself is the better choice once you know it is your failure, because the log has the error line. This agent earns its place before that, when the question is whose failure it is.
A generic AI chat can explain a log you paste in. It cannot find the run, compare with the base branch or check your diff, which is how it decides whose the failure is.
Frequently asked questions
Can CI failure explainer re-run my build?
No. It is told never to re-run, cancel or dispatch a workflow. That is an instruction, not a lock: the GitHub connection can technically run a workflow. You can switch that action off in your project (how access works).
How does it know whether it is my change?
It compares the failed workflow with the pull request's changed files, and checks whether the same workflow fails on the base branch's latest run.
Does it work with CI other than GitHub Actions?
Not as shipped, because it reads GitHub workflow runs. You can ask the agent builder for a version for another system, which needs its own instructions.
Does it show me the error from the log?
Not today. The GitHub connection reads workflow runs and pull requests, not job logs, so the answer links the run and you read the failing step there. It does not guess at an error it cannot see.
Does it read private repositories?
It reads whichever repositories your GitHub sign-in or token can reach. Use a token limited to the repositories you want it to read.
Can it fix the failure?
No. It suggests the smallest next step and a person makes the change.
Is CI failure explainer free?
It has no price of its own, and every Toolspoke plan includes agents. Tool calls cost nothing, but each run draws on your usage balance. Pricing has the details.
Explain your next red build
Connect GitHub and hand it a failing pull request. You will have which workflow failed, whose it is and the next step in a few lines.