incident

incident is a command for Claude Code from HigorAlves/orc. It costs 54 tokens per session (2,848 once invoked), scanned A, original, MIT.

A live production-incident workflow that takes a monitoring issue, stack trace, or described symptom and guides the response while keeping a UTC timeline.

In plain words
What is it for?
Use it to triage an active outage, estimate how many users or systems are affected, choose a response strategy, and record events for a postmortem.
Why use it?
It helps teams respond to a broken production system in an orderly way, decide whether to reduce impact or investigate first, and preserve evidence for the later review.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the orc plugin — 80 skills, 30 commands, 14 agents, 5 hooks shipped together

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.

agentmods
npx agentmods add commands/higoralves/orc/incident
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 80 skills, 30 commands, 14 agents, 5 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 incident

README.md
[![agentmods](https://agentmods.dev/badge/commands/higoralves/orc/incident.svg)](https://agentmods.dev/commands/higoralves/orc/incident)
Your own site
<a href="https://agentmods.dev/commands/higoralves/orc/incident"><img src="https://agentmods.dev/badge/commands/higoralves/orc/incident.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 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,848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00054 $0.02848
Opus 5 $0.00027 $0.01424
Sonnet 5 $0.00011 $0.00570
Haiku 4.5 $0.00005 $0.00285

Measured 5d ago against content hash 0ab5f2a017e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

incident 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 5d 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.

orc/commands/incident.md · 174 lines

How it starts

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

/orc:incident

The during-the-fire half of incident handling. /orc:postmortem learns from an incident after it's over; /orc:incident runs one while it's happening: triage evidence, size the blast radius, choose mitigate-first or root-cause-first, and keep a timestamped timeline that becomes the postmortem's spine. Stop the bleeding before you study the wound.

Arguments

  • First argument (free-form) — one of:
    • A Sentry issue short ID (e.g. PROJ-123) or issue URL — pulled live via the orc:sentry-cli skill.
    • A pasted stack trace.
    • A described symptom ("checkout is 500ing since the 14:00 deploy").
  • --severity sev-1|sev-2|sev-3 — optional. Skips the severity proposal in Phase 2 (blast radius is still assessed).

Workflow

Phase 0 — Detect context

!orc-workspace-detect --banner

Context is injected above (ORC_* vars are exported for any Bash you run — do not re-run detection). loose context → surface and stop (no state dir to write).

Phase 1 — Intake + timeline start

  1. Determine the current branch: git branch --show-current. Sanitize (/-). Create ${ORC_STATE_DIR}/<sanitized-branch>/files/incident/.
  2. Register state: orc-state init --command incident --total-phases 5. Defer to orc:state-protocol for schema and rules.
  3. Start the timeline. Create ${ORC_STATE_DIR}/<sanitized-branch>/files/incident/timeline.md:
# Incident timeline — <slug>

Append-only. One line per action or finding, UTC.

| Time (UTC) | Who | What |
|---|---|---|
| <date -u +%Y-%m-%dT%H:%M:%SZ> | orc | Incident session opened; intake: <sentry issue \| stack trace \| symptom> |

Every subsequent action or finding in ANY phase appends a row (date -u +%Y-%m-%dT%H:%M:%SZ for timestamps). This is an iron rule, not a suggestion — the timeline is what /orc:postmortem inherits.

  1. Classify the input and gather evidence:
    • Sentry issue ID/URL → invoke the orc:sentry-cli skill (read its references/agent-guidance.md first, then references/issue.md / references/event.md as needed). Just run the commands — the CLI auto-handles auth and org/project detection:

Read the full file on GitHub · 174 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. 5d ago First seen · 174 lines · 54 tokens per session scan A 0ab5f2a017e6

Subscribe to this mod's changes

incident is a command published in the GitHub repository HigorAlves/orc (6 stars, last pushed 9d ago), licensed MIT. It adds 54 tokens to every session and 2,848 once invoked, about $0.0003 per session on Opus 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.