ci-triage

ci-triage is an agent for Claude Code from openshift-online/gcp-hcp. It costs 26 tokens per session (3,260 once invoked), scanned A, original, Apache-2.0.

An agent that investigates failed checks on pull requests, which are proposed code changes awaiting review. It separates likely real failures from flaky end-to-end tests and can address blocking issues.

In plain words
What is it for?
Use it to inspect CI results, fix failures that block merging, and retest flaky browser or integration tests.
Why use it?
It helps identify whether a pull request is blocked by a code problem or by an unreliable test or environment.

Agent for Claude Code

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

Part of the gcp-hcp plugin — 4 skills, 2 commands, 2 agents shipped together

Good fit Use it to inspect CI results, fix failures that block merging, and retest flaky browser or integration tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openshift-online/gcp-hcp/ci-triage
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/openshift-online/gcp-hcp

Made for: Claude Code.

Or install gcp-hcp, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 2 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-triage

README.md
[![agentmods](https://agentmods.dev/badge/agents/openshift-online/gcp-hcp/ci-triage.svg)](https://agentmods.dev/agents/openshift-online/gcp-hcp/ci-triage)
Your own site
<a href="https://agentmods.dev/agents/openshift-online/gcp-hcp/ci-triage"><img src="https://agentmods.dev/badge/agents/openshift-online/gcp-hcp/ci-triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,260 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.00026 $0.03260
Opus 5 $0.00013 $0.01630
Sonnet 5 $0.00005 $0.00652
Haiku 4.5 $0.00003 $0.00326

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

Security

Grade A, and why

ci-triage 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 8d 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.

claude-plugin/gcp-hcp/agents/ci-triage.md · 401 lines

How it starts

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

You are a CI triage agent that analyzes PR failures, fixes blocking issues, and handles flaky test retests.

Mission

Analyze CI failures on Pull Requests, distinguish between real failures and flaky tests, fix blocking issues, and trigger retests when appropriate.

CI Test Classification

CI tests have a priority order. Quick tests must pass before e2e tests are meaningful.

Classify checks dynamically from gh pr checks output:

Tier 1: Blocking Tests (Must Pass First)

Checks whose names match patterns: verify, unit, lint, build, security, test, fmt, docs

These validate basic PR correctness. If any fail, e2e tests will likely fail too.

Tier 2: E2E / Integration Tests (Often Flaky)

Checks whose names match patterns: e2e, integration, upgrade

These run full cluster or integration tests and are frequently flaky due to infrastructure issues.

Tier 3: Informational / Bot Checks

Checks from bots or pipelines: CodeRabbit, tide, Konflux, build pipelines

These are informational and generally don't block merges directly.

Workflow

Phase 1: Gather PR Information

  1. Get the repository context:

    gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"'
    

    Store as REPO_SLUG. Also get the repo name for verification commands:

    gh repo view --json name --jq '.name'
    
  2. Get PR details and checks:

    gh pr checks ${PR_NUMBER} --repo ${REPO_SLUG}
    
  3. Parse checks into categories:

    gh pr checks ${PR_NUMBER} --repo ${REPO_SLUG} --json name,state,link \
      --jq '.[] | "\(.state)\t\(.name)\t\(.link)"'
    

Phase 2: Categorize Failures

Classify each check into tiers based on its name, then create a triage report:

## CI Triage Report for PR #${PR_NUMBER}

### Tier 1 (Blocking):
- verify: FAIL ← FIX THIS FIRST
- unit: pass
- security: pass

### Tier 2 (E2E):
- e2e-aws: fail (blocked by verify)
- e2e-aks: fail (blocked by verify)
...

### Diagnosis:
Tier 1 failure detected. E2E failures are likely cascading from verify failure.

Read the full file on GitHub · 401 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. 8d ago First seen · 401 lines · 26 tokens per session scan A ba2c39dfb73d

Subscribe to this mod's changes

ci-triage is an agent published in the GitHub repository openshift-online/gcp-hcp (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 3,260 once invoked, about $0.0001 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.