Minecraft hurt sounds when your build, lint, or test fails — and a level-up ding when it goes green.
Plays Minecraft sounds when Claude's commands fail.
Every Bash tool call goes through a PostToolUse hook. Exit code + stderr decide which sound plays:
| tier | when | sound |
|---|---|---|
| hurt | lint fail, test fail, generic non-zero exit | the iconic player "oof" |
| explode | build / compile error, missing module, syntax error | TNT |
| anvil | segfault, panic, core dump, OOM | anvil drop |
| levelup | a previously-failing command finally goes green | the "ding" |
| nothing | success without a prior failure | — |
Real Minecraft sounds. Pulled on first run from Mojang's CDN (resources.download.minecraft.net) and cached at ~/.cache/mc-agent-oof/sounds/. Nothing audio is checked in.
git clone https://github.com/trevorstenson/mc-agent-oof
cd mc-agent-oof
claude
In Claude:
/plugin marketplace add ./
/plugin install mc-agent-oof@mc-agent-oof
Restart Claude. Run /hooks and confirm you see PostToolUse → Bash → mc-agent-oof/posttooluse-bash.sh. Done.
bin/mc-agent-oof npm test
bin/mc-agent-oof cargo build --release
bin/mc-agent-oof sh -c './configure && make'
Same classifier, runs locally on whatever command you pass. stdin/stdout/stderr pass straight through. Symlink it onto your PATH if you want it everywhere:
ln -s "$(pwd)/bin/mc-agent-oof" ~/.local/bin/mc-agent-oof
python3 plugins/mc-agent-oof/scripts/fetch_sounds.py
python3 plugins/mc-agent-oof/scripts/test_sounds.py hurt explode anvil levelup
afplay. Linux: install paplay, ffplay, or mpv. (aplay doesn't decode .ogg.)If anything's missing, classification still runs. You just won't hear it.
MC_AGENT_OOF_SOUNDS=/path/to/dir overrides the cache. File names matching the tier prefix work:
hurt1.ogg, hurt2.ogg, hurt3.ogg → hurt
explode1.ogg, explode2.ogg, ... → explode
anvil_land.ogg → anvil
levelup.ogg → levelup
First match wins, top to bottom:
| stderr or exit | tier |
|---|---|
Segmentation fault, panicked at, OutOfMemoryError, SIGSEGV, Aborted | anvil |
| exit 134 / 138 / 139 | anvil |
error:, error TS\d+, error[E\d+], FAILED, fatal:, cannot find module | explode |
| any other non-zero exit | hurt |
| exit 0 with prior failure (same cwd + tool) | levelup |
| exit 0, no prior failure | silence |
Heuristic. If a test asserts on the literal string "Segmentation fault" you'll get an anvil. Whatever, it's a sound effect, not a verdict.
levelup is gated on the command's first word being build-ish: make, cargo, npm, pnpm, yarn, bun, go, gradle, mvn, pytest, jest, vitest, tsc, eslint, python3, etc. State is keyed by cwd + first word, so npm test and npm install share state.
sh.MIT for the code. The sound files belong to Mojang/Microsoft and download from their CDN at runtime — not redistributed here.
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub trevorstenson/mc-agent-oof --plugin mc-agent-oofComplete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
20 SEO/GEO skills and 5 commands on one shared contract for keyword research, content creation, technical audits, schema markup, monitoring, quality gates, entity truth, and campaign memory.
Comprehensive SEO analysis plugin for Claude Code. 25 sub-skills (21 core + 1 orchestrator + 1 framework + 2 extension mirrors) and 18 sub-agents cover technical SEO, content quality, schema, sitemaps, Core Web Vitals, local SEO, backlinks, AI/GEO, ecommerce, hreflang, SXO, clustering, drift monitoring, and Google APIs. Includes optional MCP extensions, SPA-aware rendering, portability, and hardened SSRF/DNS-rebinding safe fetchers.
Modern R development skills for Claude Code - tidyverse patterns, rlang metaprogramming, Bayesian inference, performance optimization, and more
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses