agent-incident-response

agent-incident-response is a skill for Claude Code, Codex from MLOps-Courses/agentops-open-course. It costs 79 tokens per session (641 once invoked), scanned A, original, MIT.

An operational process for handling incidents in a production AI agent, meaning an agent that is actively serving users or running business work.

In plain words
What is it for?
Use it to detect, investigate, contain, review, and turn agent incidents into tests, alerts, evaluations, or other lasting checks.
Why use it?
It provides a repeatable way to investigate errors, slow responses, injection attempts, failed outputs, rising costs, and quality regressions, then prevent their return.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to detect, investigate, contain, review, and turn agent incidents into tests, alerts, evaluations, or other lasting checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mlops-courses/agentops-open-course/agent-incident-response
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.

Any agent
npx skills add MLOps-Courses/agentops-open-course --skill agent-incident-response
Clone the repo
git clone --depth 1 https://github.com/MLOps-Courses/agentops-open-course

Made for: Claude Code, Codex.

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 agent-incident-response

README.md
[![agentmods](https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agent-incident-response/github.svg)](https://agentmods.dev/skills/mlops-courses/agentops-open-course/agent-incident-response)
Your own site
<a href="https://agentmods.dev/skills/mlops-courses/agentops-open-course/agent-incident-response"><img src="https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agent-incident-response/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 agent-incident-response

Your own site · 80×15
<a href="https://agentmods.dev/skills/mlops-courses/agentops-open-course/agent-incident-response"><img src="https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agent-incident-response.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 641 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.00079 $0.00641
Opus 5.5 $0.00032 $0.00256
Sonnet 5.5 $0.00016 $0.00128
Haiku 4.5 $0.00008 $0.00064

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

Security

Grade A, and why

agent-incident-response 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 28d 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.

skills/agent-incident-response/SKILL.md · 34 lines

How it starts

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

Agent Incident Response

An operated agent is a running workload with incidents of its own: error-budget burn, latency regression, injection spikes, schema failures, cost blowouts, thumbs-down clusters. Close each one not when service is restored, but when the smallest repeatable check or evidence path would expose it again.

When to use

  • An agent workload fires an alert (error budget, p95, cost, guardrail spike, schema failure).
  • A quality or cost incident with no alert (thumbs-down cluster, a change that doubled tokens).
  • You want every outage to leave behind a test, eval case, alert, or baseline.

The loop: detect → triage → mitigate → review → prevent

  1. Detect. Alert on the workload's own health signals (error-budget burn, p95 latency, injection-neutralized spike, structured-output schema failures, missing token telemetry, collector down).
  2. Triage a fixed walk. Metric (scope it) → trace (read the failing turn's span tree) → logs (the error text the span summarizes) → audit (what state changed, who approved). They join on the trace id.
  3. Mitigate with existing controls. Roll out startup configuration to freeze writes, cap tokens/context, disable a misbehaving opt-in, or select a validated fallback model. Roll committed prompt or code changes back with the prior evaluated image digest. Record the replacement process's readiness time as the first postmortem line.
  4. Review blamelessly. Short, factual, about the system: impact, timeline, root cause tied to evidence, "what caught it and what didn't", actions with owners.
  5. Prevent — the load-bearing step. Promote the incident to the cheapest reproducible check or evidence path that would catch it again: a deterministic unit/red-team test, an eval case, an alert rule, or a corrected cost measurement. Fix or explicitly approve the cost change before reviewing a new baseline; never normalize unexplained inflation.

Reference implementation

From the AgentOps Open Course (agent modules live under agents/python/src/agent/):

Read the full file on GitHub · 34 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. 28d ago Changed · -1 lines 56aab9795eff
  2. 1mo ago First seen · 35 lines · 79 tokens per session scan A 1f786253a243

Subscribe to this mod's changes

agent-incident-response is a skill published in the GitHub repository MLOps-Courses/agentops-open-course (2 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 641 once invoked, about $0.0003 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 skills, from other repositories

troubleshoot-sandbox

Troubleshoot OpenSandbox issues by running diagnostics (logs, inspect, events, summary) via CLI or HTTP API to diagnose sandbox failures like OOM, crash, image pull errors, network problems, etc.

opensandbox-group/OpenSandbox · 48 tokens

network-rca

Kubernetes network root cause analysis skill powered by Kubeshark MCP. Use this skill whenever the user wants to investigate past incidents, perform retrospective traffic analysis, take or manage traffic snapshots, extract PCAPs, dissect L7 API calls from historical captures, compare traffic patterns over time, detect…

kubeshark/kubeshark · 163 tokens

mirrord-up

Helps users run multiple concurrent mirrord sessions from a single mirrord-up.yaml (compose-style multi-service local debugging). Use when the user mentions mirrord up, mirrord-up.yaml, mirrord up init, debugging several related microservices together, or managing multiple mirrord sessions' lifecycle in one command.

metalbear-co/mirrord · 73 tokens

routing-calibration

Use when calibrating or validating a maintained routing recipe against live model backends, including probe manifests and evidence reports.

vllm-project/semantic-router · 27 tokens

logging-patterns

Java logging best practices with SLF4J, structured logging (JSON), and MDC for request tracing. Includes AI-friendly log formats for Claude Code debugging. Use when user asks about logging, debugging application flow, or analyzing logs.

piomin/claude-ai-spring-boot · 50 tokens

k8s-incident

Respond to Kubernetes incidents with runbooks and diagnostics. Use for outages, pod failures, node issues, network problems, and emergency response.

rohitg00/kubectl-mcp-server · 33 tokens