webhook: Agent for Claude Code

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

silent-failure-hunter is an agent for Claude Code, Cursor from webhook-co/webhook. It costs 53 tokens per session (688 once invoked), scanned A, original, Apache-2.0.

A review agent that looks for errors hidden by empty catch blocks, ignored failures, missing rejection handling, or insufficient logs. It is tailored to webhook infrastructure, including retries, signing checks, duplicate prevention, and ordered delivery.

In plain words
What is it for?
Use it for read-only reviews of changes involving ingestion, delivery, retries, signing or verification, error handling, and related webhook correctness paths.
Why use it?
It helps reveal failures that would otherwise look successful, making retries and incident diagnosis unreliable.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md).

This is webhook-co/webhook's own configuration. It tells Claude Code and Cursor how to work on webhook 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 webhook configures →

Reuse

Borrowing it

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

Made for: Claude Code, Cursor.

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/webhook-co/webhook/silent-failure-hunter/github.svg)](https://agentmods.dev/agents/webhook-co/webhook/silent-failure-hunter)
Your own site
<a href="https://agentmods.dev/agents/webhook-co/webhook/silent-failure-hunter"><img src="https://agentmods.dev/badge/agents/webhook-co/webhook/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/webhook-co/webhook/silent-failure-hunter"><img src="https://agentmods.dev/badge/agents/webhook-co/webhook/silent-failure-hunter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 688 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.00053 $0.00688
Opus 5.5 $0.00021 $0.00275
Sonnet 5.5 $0.00011 $0.00138
Haiku 4.5 $0.00005 $0.00069

Measured 1mo ago against content hash 35b6ef5de299, 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 1mo 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.

.cursor/agents/silent-failure-hunter.md · 46 lines

How it starts

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

You are a silent-failure reviewer for webhook.co, open-core webhook infrastructure (TypeScript on Cloudflare Workers + Durable Objects; Neon Postgres via Hyperdrive; R2 for batched payloads). You review diffs read-only and report where failures are being hidden instead of handled. You do not modify code.

Load-bearing context (restated; you do not inherit project memory)

  • Fail loud internally, fail safe externally. Errors must be typed, actionable, and wrapped with context — not swallowed. But internal detail (stack traces, secrets, tenant data, raw payloads) must never leak to responses or logs.
  • Retryable vs terminal must stay distinguishable so the DO Alarm retry scheduler does the right thing. A swallowed error that erases that distinction is a correctness bug, not a style nit.
  • Correctness-critical paths: Standard Webhooks signing/verification, dedup/idempotency, retry/backoff, FIFO ordering (one DO per endpoint), replay, and single-dimension metering.
  • PII/PHI scrubbed from logs. Adequate logging means enough to diagnose by event id — never full payloads, secrets, or tenant identifiers.

What to hunt for

  • Empty or token catch blocks — catch {}, catch (e) {}, or a catch that only returns/continues with no logging, re-throw, or recovery. Where does the error go?
  • Swallowed async failures — unawaited promises, missing await, .catch(() => {}), fire-and-forget calls on a critical path, ignored Promise.allSettled rejections.
  • Discarded results — ignored return values / status codes that encode failure (e.g. a delivery attempt whose non-2xx result is dropped), void-ing a meaningful error.
  • Failure flattened into success — catching then returning a default/empty/null so the caller can't tell something broke; collapsing retryable into terminal (or vice versa).
  • Inadequate logging — a real failure with no signal at all, log level too low to alert, or the opposite: logging that over-shares (payloads, secrets, PII) to compensate.
  • Over-broad catches that hide unrelated bugs, and error messages that lose the original cause (no cause/wrapping).

Read the full file on GitHub · 46 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. 1mo ago First seen · 46 lines · 53 tokens per session scan A 35b6ef5de299

Subscribe to this mod's changes

silent-failure-hunter is an agent published in the GitHub repository webhook-co/webhook (0 stars, last pushed 18d ago), licensed Apache-2.0. It adds 53 tokens to every session and 688 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

pre-commit-reviewer

Use this agent to review code changes before committing and pushing to a PR. This agent analyzes diffs for bugs, style issues, dead code, missing tests, and alignment with target repository conventions. Use as a fallback when the PR review toolkit is unavailable, or dispatch directly for standalone pre-commit review.…

costajohnt/oss-autopilot · 243 tokens

silent-failure-hunter

Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. This agent should be invoked proactively after completing a logical chunk of work that involves error handling, catch blocks, fallback logic, or any code that could…

fuxicodex/Fuxi · 0 tokens

type-design-analyzer

Use this agent when you need expert analysis of type design in your codebase. Specifically use it (1) when introducing a new type to ensure it follows best practices for encapsulation and invariant expression, (2) during pull request creation to review all types being added, and (3) when refactoring existing types to…

fuxicodex/Fuxi · 110 tokens

sentry-mcp

Sentry error tracking and performance monitoring agent. Use when the user asks about errors, exceptions, issues, stack traces, performance, traces, releases, snapshots, screenshots, visual regression, CI snapshot failures, preprod checks, agent conversations, or provides a Sentry URL (especially URLs containing…

getsentry/toolkit · 92 tokens

performance-profiler

Performance analysis expert - bottleneck, N+1, memory leak detection.

fatihkan/badi · 18 tokens

auditor

Quality assurance gate - verifies outputs, detects inconsistencies.

fatihkan/badi · 13 tokens