claude-code-config: Agent for Claude Code

.claude/agents/silent-failure-hunter.md

silent-failure-hunter is an agent for Claude Code from auerbachb/claude-code-config. It costs 62 tokens per session (1,086 once invoked), scanned A, original, MIT.

A read-only review agent that looks for shell scripts that hide errors instead of reporting them.

In plain words
What is it for?
Reviewing Bash, shell tooling, and related TypeScript, JavaScript, or Python code for swallowed exit codes, fake success signals, inactive guards, and missing error handling.
Why use it?
Silent failures can make a script appear successful while a required command, safety check, or guard did not work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is auerbachb/claude-code-config's own configuration. It tells Claude Code how to work on claude-code-config 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 claude-code-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to auerbachb/claude-code-config. 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/auerbachb/claude-code-config/main/.claude/agents/silent-failure-hunter.md
Clone the repo
git clone --depth 1 https://github.com/auerbachb/claude-code-config

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 silent-failure-hunter

README.md
[![agentmods](https://agentmods.dev/badge/agents/auerbachb/claude-code-config/silent-failure-hunter/github.svg)](https://agentmods.dev/agents/auerbachb/claude-code-config/silent-failure-hunter)
Your own site
<a href="https://agentmods.dev/agents/auerbachb/claude-code-config/silent-failure-hunter"><img src="https://agentmods.dev/badge/agents/auerbachb/claude-code-config/silent-failure-hunter/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 silent-failure-hunter

Your own site · 80×15
<a href="https://agentmods.dev/agents/auerbachb/claude-code-config/silent-failure-hunter"><img src="https://agentmods.dev/badge/agents/auerbachb/claude-code-config/silent-failure-hunter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,086 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.00062 $0.01086
Opus 5.5 $0.00025 $0.00434
Sonnet 5.5 $0.00012 $0.00217
Haiku 4.5 $0.00006 $0.00109

Measured 2mo ago against content hash 2c1c2d017572, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

silent-failure-hunter 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 2mo 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/agents/silent-failure-hunter.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Silent Failure Hunter Agent

You have zero tolerance for silent failures. Primary surface: Bash scripts and shell tooling in .claude/scripts/, .github/scripts/, and hooks. Apply the same hunt to any TypeScript/JavaScript or Python in scope.

Hunt Targets

1. Bash-Specific Silent Failures (Primary)

These patterns are documented recurring failures in this codebase:

  • mapfile exit-code swallowing — mapfile arr < <(cmd) captures mapfile's rc, not cmd's. Non-zero exit from cmd is silently discarded. Fix: probe cmd separately before piping, or capture into a temp file and check $? there.

  • || true on guard-arming writes — guard-arming-write || true converts a bounded guard into an always-succeeding no-op, making the guard silently inactive. Fix: let failures propagate or handle them explicitly; never append || true to a write that gates later behavior.

  • VAR="$(cmd)" masking failures — local/export scope and non-set -e scripts — Two related patterns: (1) Without set -e, a plain VAR=$(cmd) silently swallows the non-zero exit if $? is never checked. (2) Under set -euo pipefail, local VAR=$(cmd) and export VAR=$(cmd) silently absorb non-zero exits because the wrapper builtin always exits 0 — the script continues silently with VAR unset. Fix: RC=0; VAR="$(cmd)" || RC=$? then check $RC.

  • Fabricated sentinels making lookup failures look like stable state — defaulting a failed lookup to a placeholder (e.g., ${VAR:-UNKNOWN} or || echo "none") makes "failed to look up" read as "nothing changed" in downstream comparisons. Fix: propagate the failure explicitly; never default a failed lookup to a value that passes a guard.

  • grep -c on empty/absent input exits 1 — grep -c pattern file exits 1 when no match found (even on a valid empty file), tripping set -e or breaking &&-chains. The || echo 0 workaround emits "0\n0" and corrupts downstream jq --argjson; piping to wc -l (grep ... | wc -l) triggers the same pipefail failure under set -euo pipefail. Fix: capture with count=$(grep -c pattern file || true) — || true suppresses the no-match exit before $() closes, yielding a safe "0" with no pipe involved.

Read the full file on GitHub · 72 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. 2mo ago First seen · 72 lines · 62 tokens per session scan A 2c1c2d017572

Subscribe to this mod's changes

silent-failure-hunter is an agent published in the GitHub repository auerbachb/claude-code-config (5 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 1,086 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

dry-and-code-smells

Detect code duplication, DRY violations, and classic code smells (shotgun surgery, long methods, feature envy, data clumps) in changed and related files.

ncoevoet/claude-review-all · 39 tokens

eval-failure-analyzer

Analyze Logic-Lens benchmark/eval failures. Use after running content-evals, or when pointed at a skills-workspace/iteration- directory or a benchmarks/runs/ entry, to cluster failing cases by failure mode, map each mode to the specific eval IDs, and propose concrete SKILL.md disambiguation-rule changes. Read-only…

hyhmrright/logic-lens · 90 tokens

performance-reviewer

Performance reviewer subagent. Auto-loads the performance skill; applies any .review-pro/ stack signals; returns structured findings.

tufantunc/review-pro · 32 tokens

bug-hunter

Use this agent when reviewing local code changes or in the pull request to identify bugs and critical issues through systematic root cause analysis. This agent should be invoked proactively after completing a logical chunk of work.

NeoLabHQ/context-engineering-kit · 43 tokens

code-resolver

Re-checks prior findings after a code fix. Given the prior findings (untrusted), diffs of newly changed files, per-finding since-raised diffs, and the tip worktree, decides whether each finding was addressed. Not for general questions.

Jose-Ribeir/claude-code-review-gate · 56 tokens

antipattern-reader

An anti-pattern checker that compares changed files with a list of warning signs in the code. It returns a JSON report with the checks, findings, file names, line numbers, and exact quotes.

Romandredan/1c-quality-gate · 313 tokens