I Built Relay Because Finding a CI Failure Shouldn't Take Five Clicks

A GitHub CLI extension experiment in getting from a failed run to useful evidence with less navigation, for both people and coding agents.

Hello, Jae Wook Kim here.

A CI check fails.

You open the pull request. Click the failed check. Find the right job. Expand the failed step. Scroll past the setup output, the summary, and the final exit code.

Eventually you find the line you needed.

The frustrating part is not that the information is missing. It is that finding it takes work every single time.

I wanted to try a different approach: what if I could run one command from the repository I am already working in and see the failure evidence immediately?

That experiment became Relay, a read-only GitHub CLI extension I started over the holiday weekend.


The First Screen Has One Job

Relay starts with the current Git checkout. It looks for GitHub Actions runs associated with the exact commit at HEAD, then brings the failed job, step, and a useful log line forward.

gh relay

No separate dashboard. No repository name to type when I am already in a checkout. No clicking through a hierarchy just to see the first useful error.

The first screen is intentionally opinionated: show the failure first, then make the rest available. If I need the full failed-step log, I can open it, search it, and move between matches.

This does not mean the first highlighted line is guaranteed to be the root cause. More on that in a moment.


Exact Commit Matters More Than a Reassuring Green Check

Early on, I ran Relay in a repository where the current commit had [skip ci] in its message. The most recent successful workflow was older.

A tempting design would be to show the green run as if it represented the current commit. That would look helpful. It would also be wrong.

Relay instead reports that no workflow ran for the exact commit and labels the previous result as history. For a squash-merged change, it can also show checks from the original pull request as context, separately from the current commit’s result.

That distinction matters because a green result for one commit does not prove another commit was tested.


Evidence, Not a Magic Root-Cause Detector

Picking the right line is harder than looking for the last error in a log.

A failing job can contain setup noise, repeated test failures, and a final summary that tells you the process exited without explaining why. Another job may fail only because it aggregates the results of everything else.

Relay tries to prefer a specific message from a failed step over generic exit text. It groups repeated failure signatures and shows a strength label with a reason. The label describes how directly the available log supports the selected line. It is not a probability that the diagnosis is correct.

Dogfooding caught an embarrassing example: an early version selected an ok line from a passing Go package as the evidence for a failing test. I added Go test failure recognition and kept that failure as a regression fixture.

That’s the kind of mistake I want the tool to expose and help me fix, not hide behind a confident label.


Why a GitHub CLI Extension?

I considered a separate web UI and a browser extension. Both could make the GitHub Actions experience nicer, but each brought its own distribution and authentication questions.

A gh extension fit the workflow better:

  • I am often already in the repository when I need the answer.
  • I can reuse an existing GitHub CLI login instead of introducing another account.
  • The same evidence can be useful to a person in a terminal and to an agent that needs structured output.

Relay provides a terminal UI, a brief text mode, and JSON output. It remains read-only: for example, a rerun command can be shown as text, but Relay does not rerun a workflow for me.

There are still permission boundaries. An existing login does not magically grant access to every repository or organization, and a missing log is not evidence of a successful run.


Did My Change Break It?

Finding the failure line is the first step. The next question is whether the failure appeared with my change or was already present on the base branch.

Relay now tries to answer that question, but I don’t want to present it as a definitive blame detector.

One baseline check showed why. A recent successful workflow had skipped the job I wanted to compare. The most recent run where that job actually executed was older. Treating the skipped job as a clean baseline would have given me a false sense of certainty.

The rule I settled on is conservative: if the relevant base job was not verified at the relevant base commit, a base-comparison verdict is UNKNOWN. An older successful run can still be shown as historical context, but it is not proof the base was green.

There is a separate case: Relay can report FLAKY when its bounded history check finds the same job both passing and failing on the same commit. That evidence can take precedence over an unverified base. It is still a signal, not proof of the underlying cause. A manually triggered run can use different inputs, for example, so that comparison is weaker.

The terminal UI now shows the attribution result alongside the failure. When a commit range is available, c opens the range view. Changed files mentioned in the evidence are context for investigation, not a claim that those files caused the failure.


Where It Is Now

I have shipped an internal v0.2 release with the terminal UI, log search, attribution, and structured output. The repository is still private, so it is not available for general installation or feedback yet. Linux installation has been checked; I have not yet verified the release running natively on my Mac.

I am still learning where a failure-first interface helps and where the tool should simply admit it does not know. My working rule is simple:

Show the evidence quickly. Be just as clear about what the evidence cannot prove.

If this becomes useful beyond my own projects, I will share what worked, what did not, and how the interface changes after more real-world use.

Comments