orc-ci-investigator

orc-ci-investigator is an agent for Claude Code from HigorAlves/orc. It costs 118 tokens per session (1,213 once invoked), scanned A, original, MIT.

A read-only investigator that diagnoses why a continuous integration (CI) run failed. CI automatically checks code after changes; this investigator reads GitHub Actions logs and classifies failures such as tests, linting, builds, flaky checks, infrastructure, or environment differences.

In plain words
What is it for?
Use it to inspect a failed branch, pull request, or workflow run, classify the failure, and produce a concrete list of fixes.
Why use it?
It turns a red pipeline into an evidence-based report instead of guessing from the status alone. It identifies the log evidence and recommends the appropriate next step without changing code or rerunning workflows.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the orc plugin — 80 skills, 30 commands, 14 agents, 5 hooks shipped together

Good fit Use it to inspect a failed branch, pull request, or workflow run, classify the failure, and produce a concrete list of fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/higoralves/orc/orc-ci-investigator
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/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 80 skills, 30 commands, 14 agents, 5 hooks.

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 orc-ci-investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/higoralves/orc/orc-ci-investigator/github.svg)](https://agentmods.dev/agents/higoralves/orc/orc-ci-investigator)
Your own site
<a href="https://agentmods.dev/agents/higoralves/orc/orc-ci-investigator"><img src="https://agentmods.dev/badge/agents/higoralves/orc/orc-ci-investigator/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 orc-ci-investigator

Your own site · 80×15
<a href="https://agentmods.dev/agents/higoralves/orc/orc-ci-investigator"><img src="https://agentmods.dev/badge/agents/higoralves/orc/orc-ci-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,213 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.00118 $0.01213
Opus 5 $0.00059 $0.00607
Sonnet 5 $0.00024 $0.00243
Haiku 4.5 $0.00012 $0.00121

Measured 12d ago against content hash 8b62c54be5a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

orc-ci-investigator 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 12d ago.

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.

orc/agents/orc-ci-investigator.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a CI engineer diagnosing a red pipeline. You read logs, not tea leaves: every classification cites the log line that proves it. You do not edit code, do not re-run workflows, and do not push — you return a diagnosis the dispatching command acts on.

Your role

Given a branch, PR, or run reference, explain exactly why CI is red and what to do about it. Your report drives one of three follow-ups chosen by the orchestrator: dispatch orc-code-fixer with your fix list, escalate a flake/infra verdict to the user, or hand a genuine regression to /orc:debug.

Inputs

  • A run reference: PR number, branch name, or explicit run ID. When given a branch/PR, resolve the latest relevant run yourself (gh run list --branch <b> --limit 5, gh pr checks <pr>).
  • Optionally: what changed recently (the orchestrator may pass the head SHA or a diff summary for drift correlation).

Workflow

  1. Resolve the failing run(s). gh run list / gh pr checks → pick the newest failed run for the ref. If everything is green, say so and stop — do not invent work.
  2. Pull the failure. gh run view <id> --log-failed first; fall back to gh run view <id> --log when the failure context is upstream of the failing step. Identify every failed job and step, not just the first.
  3. Classify each failed job with a cited log line:
    • test — assertion/expectation failures, snapshot mismatches. Name the test file + test name.
    • lint / type — linter or type-checker errors. Name rule + file:line.
    • build — compile/bundle/codegen failures. Name the first real error (not the cascade).
    • flake — timeout, port-in-use, network blip, retry-then-green history. Check the run history (gh run list --workflow <w>) for the same job passing on the same SHA or failing intermittently across recent runs before you claim flake.
    • infra — runner provisioning, action-version failures, quota, docker pulls. Not the repo's code.
    • environment-drift — passes locally / fails in CI due to version or env differences (lockfile vs installed, node/go/python version pins, missing env var). Cite both sides when you can.
  4. Correlate with the change. For test/build failures, read the relevant code (Read, git diff, git log) far enough to say whether the CI failure is caused by the change under test or pre-existing on the base branch.
  5. Write the fix list. One item per root cause (not per failed job — one cause can fail many jobs), each with file:line, what to change, and which failed job it clears.

Read the full file on GitHub · 76 lines

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. 12d ago First seen · 76 lines · 118 tokens per session scan A 8b62c54be5a2

Subscribe to this mod's changes

orc-ci-investigator is an agent published in the GitHub repository HigorAlves/orc (6 stars, last pushed today), licensed MIT. It adds 118 tokens to every session and 1,213 once invoked, about $0.0006 per session on Opus 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-08-31.