toolhive: Agent for Claude Code

.claude/agents/bug-triage.md

bug-triage is an agent for Claude Code from stacklok/toolhive. It costs 44 tokens per session (506 once invoked), scanned A, original, Apache-2.0.

An agent for reviewing GitHub issues, which are reports or requests stored with a software project. It investigates the code and history to decide whether an issue is fixed, still valid, replaced, or lacking information.

In plain words
What is it for?
Use it to inspect affected code, commits, and tests, then recommend closing an issue, leaving it open, or asking for more details.
Why use it?
It helps clean up stale issue backlogs with evidence and appropriate next steps instead of closing reports blindly.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is stacklok/toolhive's own configuration. It tells Claude Code how to work on toolhive itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything toolhive configures →

About the project

ToolHive is a platform for running and managing Model Context Protocol servers, which give AI clients access to tools and data. Developers, platform teams, and enterprises use it to isolate MCP servers, control access, and monitor their operation. The catalogue entries provide agent workflows and configuration for operating ToolHive and its MCP servers.

stacklok/toolhive · 2,307 stars · on GitHub · stacklok.com

Reuse

Borrowing it

Nothing to install: this file belongs to stacklok/toolhive. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/stacklok/toolhive/main/.claude/agents/bug-triage.md
Clone the repo
git clone --depth 1 https://github.com/stacklok/toolhive

Made for: Claude Code.

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 bug-triage

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/stacklok/toolhive/bug-triage"><img src="https://agentmods.dev/badge/agents/stacklok/toolhive/bug-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 506 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.00044 $0.00506
Opus 5.5 $0.00018 $0.00202
Sonnet 5.5 $0.00009 $0.00101
Haiku 4.5 $0.00004 $0.00051

Measured 1mo ago against content hash 99590c717f5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bug-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 1mo 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/agents/bug-triage.md · 59 lines

What it actually says

Bug Triage Agent

You specialize in reviewing GitHub issues, investigating their status in the codebase, and recommending actions.

When to Invoke

Invoke when: Doing bug triage sessions, reviewing stale issues, investigating if an issue has been fixed, cleaning up the backlog.

Do NOT invoke for: Writing fixes (use code-writing agents), creating issues, PR reviews (code-reviewer).

GitHub Access

Use the gh CLI (via Bash) to read, comment on, and close issues.

Investigation Workflow

  1. Receive issue from parent
  2. Search codebase for affected code paths, commits, test cases
  3. Categorize into outcome:
Category Criteria Action
FIXED Bug was fixed, code resolves it Close "completed", explain fix
IMPLEMENTED Feature/enhancement was built Close "completed", point to implementation
WON'T DO Bandwidth/direction/low demand Close "not_planned", polite explanation
SUPERSEDED Replaced by different approach Close "not_planned", explain alternative
STILL VALID Unresolved Leave open, add context
NEEDS INFO Can't determine status Comment asking for clarification

Output Format

## Issue #NNN: [Title]
**Status:** [FIXED | IMPLEMENTED | WON'T DO | SUPERSEDED | STILL VALID | NEEDS INFO]
**Evidence:** [What you found, file paths, commits]
**Recommendation:** [Specific action]
**Suggested Comment:** [Draft message if closing]

Closure Comment Tone

  • Friendly and genuine, not corporate
  • Honest about reasoning
  • Appreciative of the reporter
  • Open to revisiting when appropriate

For FIXED: Explain what was changed, thank for reporting.

For WON'T DO: Thank them, explain bandwidth/demand, leave door open for contributions or revisiting.

For SUPERSEDED: Explain direction change, suggest opening new issue if still relevant.

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. 1mo ago First seen · 59 lines · 44 tokens per session scan A 99590c717f5e

Subscribe to this mod's changes

bug-triage is an agent published in the GitHub repository stacklok/toolhive (2,307 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 506 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

malware-analyst

Delegates to this agent when the user asks about malware analysis, reverse engineering, binary analysis, disassembly, debugging, sandbox analysis, static analysis, dynamic analysis, or suspicious file triage.

0xSteph/pentest-ai-agents · 44 tokens

phoenix-bug-fixer

Leads one Phoenix bug from report to draft PR - reproduce, fix, review, revise.

Arize-ai/phoenix · 26 tokens

git-investigator

Code archaeology expert. Tracks code history, identifies where issues were introduced, and analyzes root causes.

sd0xdev/sd0x-harness · 23 tokens

git-historian

Use this agent for git archaeology, when the user asks "why does this code exist", "when did this break", "what introduced this behavior", mentions "git blame", "git bisect", "pickaxe", "regression", "who changed this", or "find the commit that". Examples.

sigistry/marketplace · 0 tokens

appsec-run-diagnostician

INTERNAL — dispatched after explicit report-error investigation consent or when APPSECPLUGINDEV=1, either from the offer after a appsec-analyzer run's completion summary or from /appsec-advisor:diagnose-run. Reads the deterministic .run-issues.json, decides per issue whether the symptom is a defect in this plugin or…

appsec-foundry/appsec-advisor · 116 tokens

qa-lead

The QA Lead owns test strategy, bug triage, release quality gates, and testing process design. Use this agent for test plan creation, bug severity assessment, regression test planning, or release readiness evaluation.

TraftG/opencode-game-studio · 41 tokens