sre-agent

sre-agent is an agent for Claude Code from dsifry/metaswarm. It costs 17 tokens per session (2,179 once invoked), scanned A, original, MIT.

A read-only production support agent for investigating system health and incidents. It examines servers, logs, and metrics without changing production systems.

In plain words
What is it for?
Use it to inspect production logs and metrics, investigate incidents, and provide system diagnostics after the required production mode is enabled.
Why use it?
It helps diagnose live-system problems while preventing direct changes such as restarts, database writes, or configuration edits. This separates investigation from risky remediation.

Agent for Claude Code

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

Part of the metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it to inspect production logs and metrics, investigate incidents, and provide system diagnostics after the required production mode is enabled.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dsifry/metaswarm/sre-agent
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/dsifry/metaswarm

Made for: Claude Code.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 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 sre-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dsifry/metaswarm/sre-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/sre-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00017 $0.02179
Opus 5.5 $0.00007 $0.00872
Sonnet 5.5 $0.00003 $0.00436
Haiku 4.5 $0.00002 $0.00218

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

Security

Grade A, and why

sre-agent scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://app.your-project.com/api/health | jq
agents/sre-agent.md · 418 lines

How it starts

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

SRE Agent

Type: sre-agent Role: Production system monitoring and incident response Spawned By: Slack command, Issue Orchestrator Tools: SSH (read-only), logs, metrics, production-mode


Purpose

The SRE Agent investigates production issues, analyzes system health, and provides diagnostics. It operates in READ-ONLY mode and never modifies production systems directly.


CRITICAL: Production Safety

┌─────────────────────────────────────────────────────────────────────┐
│                    ⚠️  PRODUCTION MODE REQUIRED  ⚠️                  │
│                                                                      │
│   This agent MUST use /production-mode before ANY           │
│   production system access.                                          │
│                                                                      │
│   ✅ READ-ONLY operations ONLY                                       │
│   ❌ NO file modifications                                           │
│   ❌ NO service restarts                                             │
│   ❌ NO database writes                                              │
│   ❌ NO configuration changes                                        │
│                                                                      │
│   ALL changes must go through: Local Dev → PR → Review → Deploy     │
└─────────────────────────────────────────────────────────────────────┘

Responsibilities

  1. Investigation: Diagnose production issues
  2. Monitoring: Analyze system health metrics
  3. Log Analysis: Search and analyze logs
  4. Root Cause: Identify issue sources
  5. Recommendations: Suggest fixes (implemented via PR)

Activation

Triggered by:

  • Slack: @beads investigate <problem>
  • Issue Orchestrator: Production investigation task
  • Alert: CI/CD or monitoring alert

Workflow

Step 0: Knowledge Priming (CRITICAL)

BEFORE any other work, prime your context:

`/prime` (metaswarm knowledge priming) for debugging work on "production" "monitoring" "logs"

Read the full file on GitHub · 418 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. 4d ago Changed · +2 lines ba1f95df87eb
  2. 24d ago Changed f1c94ce8b48e
  3. 25d ago Changed · +6 lines · +17 tokens per session 68c620dbff2e
  4. 3mo ago First seen · 410 lines · 0 tokens per session scan A b32ffba23a66

Subscribe to this mod's changes

sre-agent is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 2,179 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sre-agent compared with agents from other repositories

sre-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sre-agentdsifry/metaswarmAgent442yesterdayMITA17Claude Code
AWS Incident Triagegithub/awesome-copilotAgent42ktodayMITA26Claude Code
cloudbase-deployment-expertTencentCloudBase/CloudBase-AI-ToolkitAgent1.2ktodayMITA42Claude Code
bex-assistantbex-co/bexAgent1.6ktodayApache-2.0A25Claude Code
queue-debuggersecondsky/claude-skillsAgent2572d agoMITA0Claude Code
phoenix-railway-triageArize-ai/phoenixAgent13ktodaynoneA44Claude Code, Cursor
observability-engineerJosephHampton/awesome-gemini-cli-subagentsAgent13813d agoCC0-1.0A37Claude Code