silent-failure-hunter

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

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.

agentmods
npx agentmods add agents/auerbachb/claude-code-config/silent-failure-hunter
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00062 $0.01086
Opus 5 $0.00031 $0.00543
Sonnet 5 $0.00012 $0.00217
Haiku 4.5 $0.00006 $0.00109

Measured 3d ago against content hash 2c1c2d017572, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 swallowingmapfile 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 writesguard-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 1grep -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. 3d 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 4d ago), licensed MIT. It adds 62 tokens to every session and 1,086 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

code-explorer

Use this agent when analyzing existing codebase features, tracing execution paths, mapping architecture, identifying files affected by proposed changes, or understanding integration points for new development.

NeoLabHQ/context-engineering-kit · 36 tokens

godmode-builder

Executes implementation tasks following a Godmode skill workflow exactly.

arbazkhan971/godmode · 15 tokens

contracts-reviewer

Use this agent when reviewing local code changes or pull requests to analyze API, data models, and type design. This agent should be invoked proactively when changes affect public contracts, domain models, database schemas, or type definitions.

NeoLabHQ/context-engineering-kit · 48 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens

security-reviewer

Threat-model and secure-design reviewer for changes that alter a security boundary, data flow, or guarding control — auth, data handling, dependency trust, deserialization, file/network controls, secrets, or LLM/agent authority and tool surfaces. Ordinary prompt wording with no authority, untrusted-input, tool…

eugenelim/agent-ready-repo · 282 tokens

spec-reviewer

You are a specification reviewer dispatched by Godmode's think skill. Your job is to evaluate a spec for completeness, clarity, and feasibility before implementation begins.

arbazkhan971/godmode · 0 tokens