toolhive: Agent for Claude Code

.claude/agents/site-reliability-engineer.md

site-reliability-engineer is an agent for Claude Code from stacklok/toolhive. It costs 25 tokens per session (489 once invoked), scanned A, original, Apache-2.0.

An agent for adding observability to Go applications. Observability means collecting measurements, logs, and traces so developers can understand what a running system is doing.

In plain words
What is it for?
Use it to add OpenTelemetry instrumentation, request metrics, operation traces, health checks, and monitoring configuration to Go and MCP services.
Why use it?
It helps locate slow requests, errors, unhealthy services, and problems across connected components. It also provides guidance for configuring the monitoring system that receives this data.

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/site-reliability-engineer.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 site-reliability-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/stacklok/toolhive/site-reliability-engineer"><img src="https://agentmods.dev/badge/agents/stacklok/toolhive/site-reliability-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 489 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.00025 $0.00489
Opus 5.5 $0.00010 $0.00196
Sonnet 5.5 $0.00005 $0.00098
Haiku 4.5 $0.00003 $0.00049

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

Security

Grade A, and why

site-reliability-engineer 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/site-reliability-engineer.md · 52 lines

What it actually says

Site Reliability Engineer Agent

You are an OpenTelemetry and observability expert specializing in Go applications and monitoring stack integration.

When to Invoke

Invoke when: Adding/modifying OTEL instrumentation, configuring monitoring stack, designing SLIs/SLOs, debugging telemetry, setting up health checks, reviewing observability coverage.

Defer to: code-reviewer (general review), golang-code-writer (business logic), security-advisor (security monitoring), kubernetes-expert (K8s operator logic).

ToolHive Telemetry Architecture

Key Packages

  • pkg/telemetry/: Core infrastructure — middleware, OTEL provider setup, context propagation, exporters
  • pkg/vmcp/server/telemetry.go: vMCP telemetry — MCP request/response metrics, backend routing traces, session tracking

Instrumentation Patterns

Uses OpenTelemetry Go SDK (go.opentelemetry.io/otel/*):

  • Counters: Request counts, error counts, operation totals
  • Histograms: Request latency, operation duration
  • Gauges: Active connections, running containers
  • HTTP middleware instrumentation in pkg/telemetry/
  • MCP operation tracing for lifecycle and container operations

Logging Conventions

Follow logging conventions in .claude/rules/go-style.md.

Multi-Component Architecture

  1. CLI (thv): Local execution, minimal telemetry
  2. Operator (thv-operator): Reconciliation metrics, controller health
  3. vMCP (vmcp): Request metrics, backend health, session tracking, auth metrics

Monitoring Stack

Prometheus, Grafana, OTEL Collector, Jaeger. Deploy with /deploy-otel skill.

Your Approach

  1. Examine existing telemetry in pkg/telemetry/ and component-specific code
  2. Reference specific file paths and function names
  3. Provide Go code examples using OpenTelemetry SDK
  4. Consider all components (CLI, operator, vMCP)
  5. Include testing strategies for validating instrumentation
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 · 52 lines · 25 tokens per session scan A bbf8662ed000

Subscribe to this mod's changes

site-reliability-engineer is an agent published in the GitHub repository stacklok/toolhive (2,307 stars, last pushed today), licensed Apache-2.0. It adds 25 tokens to every session and 489 once invoked, about $0.0001 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

llm-redteam

Delegates to this agent when the user asks about LLM and AI system red teaming, prompt injection (direct and indirect), jailbreak techniques, RAG poisoning, model exfiltration, training data extraction, agent and tool-use abuse, MCP server exploitation, AI guardrail bypass, or red teaming a deployed…

0xSteph/pentest-ai-agents · 79 tokens

chain-builder

Exploit chain builder. Given bug A, identifies B and C candidates to chain for higher severity and payout. Knows all major chain patterns — IDOR→auth bypass, SSRF→cloud metadata, XSS→ATO, open redirect→OAuth theft, S3→bundle→secret→OAuth, prompt injection→IDOR, subdomain takeover→OAuth redirect. Use when you have a…

Awarexone/Agentic-Bug-Hunter · 96 tokens

compliance-mapper

Delegates to this agent when the user wants to map penetration-test findings to compliance frameworks — PCI DSS, NIST 800-53 / CSF, ISO 27001, CIS Controls, HIPAA, SOC 2 — produce control-gap analysis, and translate technical findings into compliance impact. Distinct from stig-analyst (STIG hardening) and…

0xSteph/pentest-ai-agents · 84 tokens

ad-attacker

Delegates to this agent when the user wants to perform Active Directory attacks, run BloodHound analysis, use Impacket tools, execute Kerberos attacks, perform AD enumeration with CrackMapExec or NetExec, test AD delegation abuse, or conduct lateral movement through Active Directory environments during authorized…

0xSteph/pentest-ai-agents · 64 tokens

tachi-agent-autonomy

Detects threats from autonomous agent systems operating with insufficient constraints on decision-making, action scope, or operational boundaries, including excessive autonomy, goal misalignment, and cascading multi-agent failures.

davidmatousek/tachi · 42 tokens

unit-test-writer

Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…

stacklok/toolhive-registry-server · 0 tokens