logs

logs is an agent for Claude Code from bendrucker/claude. It costs 51 tokens per session (530 once invoked), scanned A, original, MIT.

A diagnostic agent for GitHub Actions, GitHub’s automated system for building and testing code. Given a run ID and pull-request link, it retrieves failed-job logs and summarizes the failures.

In plain words
What is it for?
Use it to identify which GitHub Actions jobs and steps failed, capture relevant error lines, and return a structured failure summary.
Why use it?
It saves you from opening each failed job and searching through long logs by hand. The complete logs are also saved to a temporary file for later reading.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the github plugin — 5 skills, 2 agents shipped together

Good fit Use it to identify which GitHub Actions jobs and steps failed, capture relevant error lines, and return a structured failure summary.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bendrucker/claude/logs
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/bendrucker/claude

Made for: Claude Code.

Or install github, the plugin that ships this one along with the rest of its 5 skills, 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 logs

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bendrucker/claude/logs"><img src="https://agentmods.dev/badge/agents/bendrucker/claude/logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 530 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.00051 $0.00530
Opus 5.5 $0.00020 $0.00212
Sonnet 5.5 $0.00010 $0.00106
Haiku 4.5 $0.00005 $0.00053

Measured 12d ago against content hash 505509db1b0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

logs 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.

plugins/github/agents/logs.md · 56 lines

What it actually says

You extract failing-job diagnostics from a GitHub Actions run. You are invoked with a run ID and a PR URL. Return a structured JSON summary and persist the raw logs to a known path for the caller to re-read.

Inputs

  • run_id: GitHub Actions run databaseId
  • pr_url: PR URL (used only for context/display)

Steps

Enumerate failing jobs

gh run view <run-id> --json jobs --jq '[.jobs[] | select(.conclusion == "failure") | {name, databaseId}]'

Fetch combined failing logs

Run gh run view <run-id> --log-failed once to capture every failing step across the run.

Write the raw output to $TMPDIR/$CLAUDE_SESSION_ID/github/<run-id>.log. Create parent directories with mkdir -p first.

Identify relevant lines

Follow the strategy in plugins/github/skills/actions-monitor/references/log-parsing.md. Use Grep on the temp file to locate matches, and Read with offset/limit for specific ranges.

Return JSON

Respond with a single JSON object on stdout:

{
  "log_file": "/tmp/<session>/github/<run-id>.log",
  "failing_jobs": [
    { "name": "lint", "step": "Run eslint", "lines": "..." }
  ],
  "summary": "Two jobs failed: lint (eslint errors in src/api.ts) and typecheck (missing type exports)."
}

Keep lines short (10 to 50 lines per job). The caller can read log_file for more context.

Notes

  • Do not analyze root causes or suggest fixes. Extract and summarize.
  • If no jobs are failing, return failing_jobs: [] and a summary noting the run is not failed.
  • If the run id is missing or null, no Actions run failed. Return failing_jobs: [] with that summary and run no gh run view.
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 Changed · +1 lines 505509db1b0a
  2. 1mo ago First seen · 55 lines · 51 tokens per session scan A da3ff600d213

Subscribe to this mod's changes

logs is an agent published in the GitHub repository bendrucker/claude (18 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 530 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-08-30.

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

ci-diagnostic

Read-only diagnosis of one failing CI check on a pull request — caused-by-diff, pre-existing, or gate-broken — after it failed on two fresh merge commits. Dispatched by the orchestrate-issues skill only; never self-initiate.

aj604/toolshed · 55 tokens

ci-failure-triager

Use this agent when a CI pipeline is failing and you need the root cause and exact fix, across GitHub Actions, GitLab CI, or CircleCI. Trigger on "CI is red", "workflow failed", "pipeline broken", "why did the build fail", "actions permission denied", "secret not found", or a pasted CI log. Examples.

sigistry/marketplace · 0 tokens

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

sniper

Use when: after ANY code modification (mandatory post-edit validation). Do NOT use for: new features, quick fixes already identified (use sniper-faster), read-only analysis.

fusengine/agents · 38 tokens