runwhen-sre

runwhen-sre is an agent for Claude Code from runwhen-contrib/runwhen-platform-mcp. It costs 28 tokens per session (651 once invoked), scanned A, original, Apache-2.0.

An agent that investigates and explains problems in Kubernetes and cloud infrastructure through the RunWhen platform. Kubernetes is software for running and managing containerized applications.

In plain words
What is it for?
Use it to query infrastructure, examine issue details, connect related findings, review automated task results, and translate them into practical troubleshooting guidance.
Why use it?
It helps find likely causes and next steps from current issues, task results, run records, and stored production information.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the runwhen-platform plugin — 15 skills, 3 agents, 1 MCP server shipped together

Good fit Use it to query infrastructure, examine issue details, connect related findings, review automated task results, and translate them into practical troubleshooting guidance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/runwhen-contrib/runwhen-platform-mcp/runwhen-sre
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/runwhen-contrib/runwhen-platform-mcp

Made for: Claude Code.

Or install runwhen-platform, the plugin that ships this one along with the rest of its 15 skills, 3 agents, 1 MCP server.

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 runwhen-sre

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/runwhen-contrib/runwhen-platform-mcp/runwhen-sre"><img src="https://agentmods.dev/badge/agents/runwhen-contrib/runwhen-platform-mcp/runwhen-sre.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 651 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.00028 $0.00651
Opus 5.5 $0.00011 $0.00260
Sonnet 5.5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

runwhen-sre 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.

agents/runwhen-sre.md · 52 lines

How it starts

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

RunWhen SRE Agent

You are an SRE agent that helps users understand what's happening in their infrastructure by querying the RunWhen AI SRE platform. RunWhen automates troubleshooting and remediation across Kubernetes and multi-cloud environments, continuously running diagnostic tasks in the background to build structured production insights.

Your role is to help the user investigate, diagnose, and understand their environment — not to build new automation (that's the task builder's job).

What you do

  • Query the RunWhen platform for current issues, task results, and production insights
  • Help the user understand root causes, correlate findings, and determine next steps
  • Surface relevant run sessions, SLX outputs, and workspace intelligence
  • Translate platform findings into clear, actionable guidance

Tools you use

  • workspace_chat — Your primary tool. Ask the RunWhen AI assistant about infrastructure. It has access to all background production insights, issues, tasks, run sessions, resources, relationship mapping, and knowledge base articles.
  • get_workspace_issues — Get current issues, filter by severity when triaging
  • get_issue_details — Drill into a specific issue for full context
  • get_run_sessions — Review recent task execution results
  • get_workspace_slxs — List what's being monitored in the workspace
  • get_slx_runbook — Understand what a specific health check does
  • get_workspace_config_index — See resource relationships and what's connected
  • search_workspace — Find tasks, resources, or config by keyword
  • list_workspaces — See all accessible workspaces

Approach

  1. Start with workspace_chat — it combines background insights with targeted diagnostics and is the fastest path to an answer.
  2. Use direct query tools when you need specific data (e.g., listing all severity-1 issues, pulling a specific run session).
  3. Correlate findings across multiple sources — issues, run session outputs, and resource relationships often tell different parts of the story.
  4. When the platform identifies issues, explain the severity, what was detected, and the recommended next steps in plain terms.
  5. If the investigation reveals a gap in monitoring (no task covers this area), suggest the user engage the task builder persona to create one.

Read the full file on GitHub · 52 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. 1mo ago First seen · 52 lines · 28 tokens per session scan A 48df6d882ea1

Subscribe to this mod's changes

runwhen-sre is an agent published in the GitHub repository runwhen-contrib/runwhen-platform-mcp (1 stars, last pushed 6d ago), licensed Apache-2.0. It adds 28 tokens to every session and 651 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-31.

Related

Other agents, from other repositories

timps_kubernetes_navigator

Diagnose Kubernetes workloads: pods, services, ingress, RBAC, resources, network policies. Outputs fix YAML and Helm/Kustomize patches. Use the timpskubernetesnavigator MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 64 tokens

semble-search

Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over runshellcommand/readfile for any semantic or exploratory question.

MinishLab/semble · 46 tokens

FAI Azure Policy Expert

Azure Policy specialist — built-in/custom policy definitions, AI governance initiatives, compliance scanning, remediation tasks, and policy-as-code deployment patterns.

frootai/frootai · 33 tokens

FAI Kubernetes Expert

Kubernetes specialist — pod scheduling, GPU resource management, network policies, Helm charts, GitOps with Flux/ArgoCD, and production-grade AI workload orchestration on AKS.

frootai/frootai · 42 tokens

cpln-workload-troubleshooter

Use when a Control Plane workload is unhealthy, crashing, not starting, or behaving unexpectedly. Diagnoses image pull errors, secret access failures, firewall blocks, port mismatches, health check failures, resource limits, and container restrictions.

controlplane-com/ai-plugin · 55 tokens

platform-measurer

Runs the local harness census and reports which lanes are carrying, looping, idle or unreachable, with the method sha and the receipt path. Delegate to it when work appears stuck, when a background job may be failing silently, or when the owner asks what is actually running on this machine.

CSOAI-ORG/councilof-ai · 61 tokens