hotfix

hotfix is a command for coding agents from srstomp/pokayokay. It costs 7 tokens per session (1,153 once invoked), scanned A, original, MIT.

An urgent workflow for fixing a problem in a live production service. It covers assessing impact, reducing harm, finding the cause, applying a safe fix, and documenting what happened.

In plain words
What is it for?
Use it for outages, data-loss risks, broken major features, and other live-service incidents that need an expedited response.
Why use it?
Production incidents can affect users or data while the team is still investigating. This workflow keeps mitigation, communication, and root-cause analysis organized.

Command

Part of the pokayokay plugin — 17 skills, 23 commands, 14 agents, 4 hooks, 1 MCP server 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/srstomp/pokayokay/hotfix
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay

Or install pokayokay, the plugin that ships this one along with the rest of its 17 skills, 23 commands, 14 agents, 4 hooks, 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 hotfix

README.md
[![agentmods](https://agentmods.dev/badge/commands/srstomp/pokayokay/hotfix.svg)](https://agentmods.dev/commands/srstomp/pokayokay/hotfix)
Your own site
<a href="https://agentmods.dev/commands/srstomp/pokayokay/hotfix"><img src="https://agentmods.dev/badge/commands/srstomp/pokayokay/hotfix.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,153 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 $0.00007 $0.01153
Opus 5 $0.00003 $0.00576
Sonnet 5 $0.00001 $0.00231
Haiku 4.5 $0.00001 $0.00115

Measured 3d ago against content hash cb0b21c60431, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hotfix 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 3d 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.

plugins/pokayokay/commands/hotfix.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.

Hotfix Workflow

Production incident: $ARGUMENTS

Hotfix Philosophy

  1. Mitigate first: Stop the bleeding before fixing root cause
  2. Communicate: Keep stakeholders informed
  3. Fix safely: Avoid making things worse
  4. Learn: Postmortem prevents recurrence

Steps

1. Triage Severity

Severity Impact Response
P0 Service down, data loss Drop everything
P1 Major feature broken Urgent, today
P2 Minor issue, workaround exists Soon, this week

2. Create Hotfix Task

npx @stevestomp/ohno-cli create "HOTFIX: $ARGUMENTS" -t bug -p P0
npx @stevestomp/ohno-cli start <task-id>

3. Investigate Impact

  • Who/what is affected?
  • When did it start?
  • Is it getting worse?
  • What changed recently?

4. Mitigate (if possible)

Quick actions to reduce impact:

  • Feature flag disable
  • Rollback deployment
  • Scale up resources
  • Database fix
  • Redirect/workaround

Document mitigation taken:

## Mitigation Applied
[What was done to reduce impact]

5. Root Cause Analysis

Quick investigation:

  • What changed recently?
  • What's in the error logs?
  • Can we reproduce in staging?

6. Dispatch Agent Pipeline

Do not implement the fix inline. Hand off to the agent pipeline.

Read and follow skills/work-session/references/bug-fix-pipeline.md with these settings:

  • Mode: /hotfix (max 2 fixer retries, max 1 review cycle, Critical-only quality threshold)
  • Root cause: from Step 5
  • Impact analysis: from Step 3
  • Mitigation applied: from Step 4 (if any)

The pipeline will:

  1. Dispatch yokay-implementer with hotfix context + mandatory regression test
  2. Auto-fix test failures if needed (yokay-fixer, max 2 attempts)
  3. Verify regression test exists (re-dispatch if missing)
  4. Run two-stage review (yokay-spec-reviewer + yokay-quality-reviewer, Critical-only mode)

Time pressure handling:

  • Fixer gets 2 attempts (not 3)
  • Review cycle limit is 1 — first failure escalates to human immediately
  • Review only fails on Critical severity (security, crash, data loss)

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. 3d ago First seen · 174 lines · 7 tokens per session scan A cb0b21c60431

Subscribe to this mod's changes

hotfix is a command published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 2mo ago), licensed MIT. It adds 7 tokens to every session and 1,153 once invoked, about $0.0000 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.