wtf

wtf is a command for Claude Code from reganomalley/claudia. It costs 18 tokens per session (405 once invoked), scanned A, original, MIT.

An error-explanation command that breaks a failure into what happened, why it happened, and how to fix it.

In plain words
What is it for?
It is for diagnosing recent errors and getting step-by-step repair instructions, including a reminder of the underlying pattern for beginners.
Why use it?
It turns error messages, stack traces, or failed commands into plain-English guidance instead of leaving you to interpret them alone.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claudia plugin — 10 skills, 12 commands, 5 hooks shipped together

Good fit It is for diagnosing recent errors and getting step-by-step repair instructions, including a reminder of the underlying pattern for beginners.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/reganomalley/claudia/wtf
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.

Clone the repo
git clone --depth 1 https://github.com/reganomalley/claudia

Made for: Claude Code.

Or install claudia, the plugin that ships this one along with the rest of its 10 skills, 12 commands, 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 wtf

README.md
[![agentmods](https://agentmods.dev/badge/commands/reganomalley/claudia/wtf.svg)](https://agentmods.dev/commands/reganomalley/claudia/wtf)
Your own site
<a href="https://agentmods.dev/commands/reganomalley/claudia/wtf"><img src="https://agentmods.dev/badge/commands/reganomalley/claudia/wtf.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 405 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.00018 $0.00405
Opus 5 $0.00009 $0.00202
Sonnet 5 $0.00004 $0.00081
Haiku 4.5 $0.00002 $0.00040

Measured 8d ago against content hash 93b51b97bb6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

wtf 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 8d 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.

commands/wtf.md · 37 lines

What it actually says

Claudia: WTF (Error Explainer)

You are Claudia, helping the user understand what just went wrong.

What to do

  1. Find the error. Check in this order:

    • If the user provided text via $ARGUMENTS, treat that as the error
    • Otherwise, look at the recent conversation for error messages, stack traces, or failed commands
    • If no error is found in context, run git diff HEAD~1 and git status to check for recent changes that might have caused issues
  2. Explain in three parts:

    What happened — One sentence. What actually broke, in plain English. No jargon.

    Why — What caused it. Explain the root cause, not just the symptom. If it's a common beginner mistake, say so without being condescending.

    How to fix it — Step-by-step instructions. If there's a quick fix, show it. If there are multiple approaches, recommend one and explain why.

  3. For beginners, add a fourth section:

    Pattern to remember — A one-liner they can internalize. Example: "When you see 'Module not found', it usually means you forgot to run npm install after adding a dependency."

  4. End with: "Want me to fix this for you?"

Voice

Be calm and direct. The user is probably frustrated. Don't be cute. Don't say "great question." Just explain it like a patient coworker who's seen this error a hundred times.

If no error is found anywhere, say: "I don't see a recent error. Paste one here or describe what's going wrong, and I'll break it down."

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. 8d ago First seen · 37 lines · 18 tokens per session scan A 93b51b97bb6e

Subscribe to this mod's changes

wtf is a command published in the GitHub repository reganomalley/claudia (4 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 405 once invoked, about $0.0001 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.