untether: Command for Claude Code

.claude/commands/debug/output-template.md

output-template is a command for Claude Code from littlebearapps/untether. It costs 0 tokens per session (2,324 once invoked), scanned A, original, MIT.

Output templates for a debugging command with two modes: a targeted report posted to an issue and a broad triage report printed to the terminal. The targeted report also includes a verification section.

In plain words
What is it for?
Use them to format issue-specific debug reports, summarize broader bug sweeps, and document how a proposed fix was verified.
Why use it?
They keep debugging results consistent and ensure required evidence, classification, severity, affected versions, and verification details are recorded.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is littlebearapps/untether's own configuration. It tells Claude Code how to work on untether itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything untether configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/littlebearapps/untether/master/.claude/commands/debug/output-template.md
Clone the repo
git clone --depth 1 https://github.com/littlebearapps/untether

Made for: Claude Code.

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 output-template

README.md
[![agentmods](https://agentmods.dev/badge/commands/littlebearapps/untether/output-template/github.svg)](https://agentmods.dev/commands/littlebearapps/untether/output-template)
Your own site
<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.

agentmods 80×15 button for output-template

Your own site · 80×15
<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>
Per session 0 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,324 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.00000 $0.02324
Opus 5.5 $0.00000 $0.00930
Sonnet 5.5 $0.00000 $0.00465
Haiku 4.5 $0.00000 $0.00232

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

Security

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.

.claude/commands/debug/output-template.md · 191 lines

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

Read the full file on GitHub · 191 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. 18d ago Changed · +1 lines 710cb0c3ed84
  2. 1mo ago First seen · 190 lines · 0 tokens per session scan A 79b9996d62ce

Subscribe to this mod's changes

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.