Prompt packs for debugging production incidents
Incident debugging with agents fails when the prompt is “why is prod down?” A prompt pack is a short form: symptoms, timeline, signals, ranked hypotheses.
Incident debugging with agents fails when the prompt is “why is prod down?” A prompt pack is a short form: symptoms, timeline, signals, ranked hypotheses, blast radius, and stop rules. Structure beats improvisation under pressure. The trap is pasting secrets and giving the agent write access while you are still guessing the fault domain.
When a prompt pack is the right seat

Build a context pack, then grow on demand
Use the pack when:
- Production is down or degraded and you need a shared written timeline.
- The fault domain is unclear (app vs data vs infra vs vendor).
- Risky remediations must stay behind a human gate.
Store the pack next to runbooks as markdown with copy-paste sections. On-call should not hunt a wiki page while customers wait. Related: Sentry debug context for agents when traces are the main evidence.
Separate diagnosis from mitigation

Phases
Most agent damage in incidents is not bad analysis. It is mutations before evidence: restarts, flag flips, or infra applies while the hypothesis list is still empty.
Practical defaults:
- Fill the symptom card first. User impact, start time, recent deploys and flags, error signatures, dashboard links.
- Attach redacted signals. Logs and traces without tokens, customer payloads, or private hostnames you do not need.
- Ask for ranked hypotheses. Each one needs confirm/reject evidence. Keep the list in the incident doc, not only in chat scroll.
- Run read-only checks the agent proposes. Humans approve any mutating action.
- One mitigation with rollback written first. Smallest change that stops impact. Then postmortem after stable.
Three traps that show up first

Failure modes to catch early
- Secret paste. Tokens or customer payloads land in chat. Fix: redaction rules before you open the agent; never paste “just this one” secret.
- Mutations too early. Restarts or infra changes before the fault domain is confirmed. Fix: diagnosis is read-only until the gate passes.
- Lost hypotheses. Chat scroll erases the reasoning trail. Fix: keep the ranked list in the incident doc and update it after every check.
Also watch fault-domain jumping (patching code when the issue is a bad deploy flag) and mixing customer-comms drafts into the technical pack.
A one-week practice loop
Game-day once: run the pack on a fake sev so people already know the rhythm. After a real incident: prune one pack field that nobody filled, and add one field that every person wished they had. Keep paging and customer communication human-owned. Agents assist analysis; they do not own the pager.
Bottom line
A prompt pack turns incident chat into a gated loop: evidence first, mutations later, hypotheses written down. Keep it under five minutes to fill, keep secrets out, and keep remediation behind a human gate. For thrashing sessions outside incidents, pair this with hard stop rules for agents.
Share