ci-diagnostic

ci-diagnostic is an agent for Claude Code from aj604/toolshed. It costs 55 tokens per session (402 once invoked), scanned A, original, MIT.

A read-only agent that investigates one failed continuous-integration check on a pull request. Continuous integration, or CI, automatically builds and tests code; the agent decides whether the change caused the failure, whether it existed already, or whether the checking system is broken.

In plain words
What is it for?
Use it to read failed CI logs, compare them with the pull request and base branch, and return a cause and evidence-based verdict.
Why use it?
It separates code problems from failures in the test environment or from problems that were already present. It does this without changing the repository.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the workbench plugin — 1 skill, 7 agents shipped together

Good fit Use it to read failed CI logs, compare them with the pull request and base branch, and return a cause and evidence-based verdict.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aj604/toolshed/ci-diagnostic
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/aj604/toolshed

Made for: Claude Code.

Or install workbench, the plugin that ships this one along with the rest of its 1 skill, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ci-diagnostic

README.md
[![agentmods](https://agentmods.dev/badge/agents/aj604/toolshed/ci-diagnostic/github.svg)](https://agentmods.dev/agents/aj604/toolshed/ci-diagnostic)
Your own site
<a href="https://agentmods.dev/agents/aj604/toolshed/ci-diagnostic"><img src="https://agentmods.dev/badge/agents/aj604/toolshed/ci-diagnostic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ci-diagnostic

Your own site · 80×15
<a href="https://agentmods.dev/agents/aj604/toolshed/ci-diagnostic"><img src="https://agentmods.dev/badge/agents/aj604/toolshed/ci-diagnostic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00402
Opus 5.5 $0.00022 $0.00161
Sonnet 5.5 $0.00011 $0.00080
Haiku 4.5 $0.00006 $0.00040

Measured today against content hash 8c79c62fdb69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-diagnostic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/workbench/agents/ci-diagnostic.md · 42 lines

What it actually says

You are diagnosing one failing CI check. You are read-only and you are not fixing it. Your product is a verdict the orchestrator can route on.

The dispatch message gives you:

  • REPO
  • PR, with its branch
  • CHECK: the failing job
  • RUNS: the failing run ids, at least two strikes on fresh merge commits

One question

What is failing, and could this PR's diff have caused it?

Read the failing logs with gh run view <id> --repo <REPO> --log-failed, read the PR's diff, and trace the failure to a cause. Look for the same failure on a base-branch run. That is the cleanest evidence that it is pre-existing.

Choose one verdict:

  • caused-by-diff: the failure traces to code this PR changed.
  • pre-existing: the failure exists on the base too, or lives in code and tests this diff never touches. Say how you established that.
  • gate-broken: no diff could cause it. The cause is environment, an upstream release, an expired credential, a runner image, or disk.

Return

VERDICT:  caused-by-diff | pre-existing | gate-broken
CAUSE:    2-3 sentences — the mechanism, with the file and identifier or the log line
EVIDENCE: what you checked that rules out the other verdicts
FIX:      one sentence on what a fix agent should do, if one is warranted
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 42 lines · 55 tokens per session scan A 8c79c62fdb69

Subscribe to this mod's changes

ci-diagnostic is an agent published in the GitHub repository aj604/toolshed (1 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 402 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

Other agents, from other repositories

ci-resolver

Use when CI or a build is red. Names each red check's cause (false test, broken gate, real regression, flaky), lands a minimal fix in its own commit, proves green. Never skips a check.

avelikiy/great_cto · 48 tokens

ash-query-optimizer

Ash query optimizer — detects N+1 loads, suggests aggregates over load+Enum, identifies calculation vs load tradeoffs. Use when reviewing Ash queries, LiveView data loading, or domain action efficiency.

oliver-kriska/claude-elixir-phoenix · 45 tokens

deep-bug-investigator

Deep bug investigation using 4 parallel subagents (reproduction, root cause, impact, fix strategy). Use when bug is complex, can't be reproduced locally, or needs thorough analysis. Spawns fresh-context subagents for each investigation track.

oliver-kriska/claude-elixir-phoenix · 54 tokens

call-tracer

Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.

oliver-kriska/claude-elixir-phoenix · 46 tokens

streaming-reviewer

Streaming / event-driven pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off delivery-guarantee + ordering decisions before senior-dev claims tasks.

avelikiy/great_cto · 38 tokens

logs

Given a GitHub Actions run ID and PR URL, fetches failing-job logs, writes full logs to a temp file, and returns a structured summary of failures. Invoked by the github:actions-monitor skill on failing-status events.

bendrucker/claude · 51 tokens