Borrowing it
Nothing to install: this file belongs to littlebearapps/untether. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/littlebearapps/untether/master/.claude/commands/debug/output-template.mdgit clone --depth 1 https://github.com/littlebearapps/untetherWrote 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.
[](https://agentmods.dev/commands/littlebearapps/untether/output-template)<a href="https://agentmods.dev/commands/littlebearapps/untether/output-template"><img src="https://agentmods.dev/badge/commands/littlebearapps/untether/output-template/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.
<a href="https://agentmods.dev/commands/littlebearapps/untether/output-template"><img src="https://agentmods.dev/badge/commands/littlebearapps/untether/output-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02324 |
| Opus 5.5 | $0.00000 | $0.00930 |
| Sonnet 5.5 | $0.00000 | $0.00465 |
| Haiku 4.5 | $0.00000 | $0.00232 |
Grade A, and why
output-template 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 18d 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Output templates
Two templates: Debug Report (targeted mode, posted as an issue comment) and Triage Report (sweep mode, printed to stdout). Plus the Verification Spec block embedded inside the Debug Report.
Debug Report (targeted mode)
Use this template verbatim. Each section is required; mark "n/a" if a section truly doesn't apply (rare).
## Debug Report — Issue #<N>: <Title>
_Generated by `/debug <N>` at <UTC timestamp>. Walked all 8 steps; see below._
### Classification
- **Class**: <one of 15 from step-classify.md>
- **Secondary class** (if any): <or "none">
- **Severity**: <severity:critical | severity:major | severity:minor | severity:trivial> _(per ~/.claude/commands/monitor/severity-rubric.md)_
- **Matches systemic pattern?**: <Yes → #XXX (name from systemic-patterns.md) | No → novel | By-design — STOP, no fix>
- **Affected version(s)**: <e.g. 0.36.0rc1–rc3>
- **Affected host(s)**: <lba-1 / nsd / channelo / sl / mac / fleet-wide>
### Evidence gathered (Step 2)
- **journalctl**: <findings — quote 2-5 lines, truncate at 200 chars each>
- **structlog event signatures matched**: <list with counts>
- **State files inspected**: <files + relevant deltas>
- **Telegram chat history**: <chat_id + relevant message snippets, or "n/a">
- **Fleet probe**: <per-host result; mark unreachable hosts explicitly>
- **Per-host PyPI version**: <table if version-skew relevant, else "uniform across fleet">
- **Pytest reproduction**: <test command + result, or "not attempted because <reason>">
- **Git regression**: <commits in the suspected range — rcs are not tagged, so use the rc merge commits on `dev`, e.g. `git log <rcN-1 merge>..<rcN merge> -- src/untether/<area>/`>
- **CHANGELOG correlation**: <relevant entries, with version + section>
### Research conducted (Step 3)
- **Untether docs**: <specific docs + sections cited>
- **Closed Untether issues (last 90d)**: <relevant numbers + outcomes>
- **Upstream engine repo**: <upstream issue numbers, or "no relevant upstream issue found">
- **Library issues (anyio/msgspec/structlog/httpx)**: <if relevant>
- **Memory notes consulted**: <e.g. `feedback_agent_self_restart_pattern`, `project_channelo_rc15_dead_wakeup_507_redux`>
### Systemic pattern check (Step 4)
<exact pattern name from systemic-patterns.md, OR "no match — novel issue">
If match: <whether posture is `bug` / `regression-watch` / `by-design` / etc.,
and the implication for this specific issue>
### Hypothesis (Step 5)
**Hypothesis**: <root cause stated as cause → effect>
**Supporting evidence**: <log lines, file references, doc citations — cite Step 2 + 3 outputs>
**Ruled out**: <alternatives investigated and dismissed, with reason>
**Prior confidence**: <0–100%> _(recorded BEFORE testing)_
**Pre-mortem (if confidence <80%)**: <if the fix fails in 48h, the most likely reason is...>
### Verification (Step 6)
- **Reproduction**: <stub-subprocess test path | live repro on @untether_dev_bot | journalctl observation | "could not reproduce — see hypothesis">
- **Doc support**: <specific docs / rule files / changelog entries>
- **Closed-issue prior fixes**: <relevant fix SHAs or "none found">
### Fix (Step 7)
**Files touched**: <list with line ranges>
**Change summary**: <one paragraph: what changes, why this fixes it, why it's minimal>
**Commit / PR**: <commit SHA | PR URL once opened; or "PR pending — awaiting approval">
**Test results**:
- Targeted: `uv run pytest tests/test_<area>.py -x` → <pass/fail + count>
- Full suite: `uv run pytest` → <pass/fail + count>
- Lint: `uv run ruff check src/ tests/` → <clean/diagnostics>
- Format: `uv run ruff format --check src/ tests/` → <clean/needs-format>
**CHANGELOG**: <quoted entry with issue link>
### Verification Spec (for follow-up verification)
- **Verify-After**: <YYYY-MM-DD; default fix-merge-date + 2 days>
- **Verification criteria**: <plain-English success definition>
- **Falsification criteria**: <what would prove the fix is NOT working — REQUIRED>
- **Data source hints**: <one or more from the Untether vocabulary below>
- **Min-Samples**: <integer; gate against low-traffic false-PASS>
- **Min-Traffic-Hours**: <integer; INCONCLUSIVE until this many hours of normal-volume traffic>
- **Baseline**: <pre-fix metric value, if measurable>
- **Target**: <post-fix target>
#### Untether Verification Spec vocabulary
- `journalctl:event=<event_name>` — absence/count of a specific structlog event in journalctl
- `journalctl:level=error` — error-level lines in journalctl
- `gh_issues:label=<label>` — count of issues with a label
- `pytest:tests/test_<X>.py::test_<Y>` — specific pytest passes
- `attestation:integration-test-pass-${VERSION}.json` — marker exists for VERSION
- `telegram_chat:<chat_id>` — observation in a specific chat
- `proc_diag:<field>` — proc_diag field value (e.g. `proc_diag:cpu_active=true`)
- `fleet_rollout:${VERSION}` — version uniform across 5 hosts
- `cost_tracker:peak_idle_seconds` — cost-tracker metric thresholds
### Prevention (Step 8 + future)
<test additions / hook additions / monitoring additions / runbook additions / config exposures that would have prevented or quickly surfaced this>
---
🤖 Generated by `/debug` — see `.claude/commands/debug/` for protocol detail
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.
- 18d ago Changed · +1 lines 710cb0c3ed84
- 1mo ago First seen · 190 lines · 0 tokens per session scan A 79b9996d62ce
output-template is a command published in the GitHub repository littlebearapps/untether (74 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,324 tokens. 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-30.
Other commands, from other repositories
root-cause
Use when any test fails, bug appears, or behaviour surprises you, before proposing a fix - find the cause and prove it, by reading real evidence, tracing bad values back to their origin, comparing against a working case, and testing one hypothesis at a time.
refactor
Refactor and optimize [code].
hotfix
Emergency fix workflow with audit trail.
kotlin-build
Fix Kotlin/Gradle build errors, compiler warnings, and dependency issues incrementally. Invokes the kotlin-build-resolver agent for minimal, surgical fixes.
bug-report
Create structured bug report.
wtfp:report-bug
Collect a reproducible bug report and publish it only after explicit user approval.