review-errors

review-errors is an agent for coding agents from rocky2431/ultra-builder-pro. It costs 33 tokens per session (792 once invoked), scanned A, original, MIT.

A review agent that searches changed code for errors that are hidden, ignored, or handled too weakly. It writes its findings as a JSON file for another review process to use.

In plain words
What is it for?
Use it to inspect try/catch blocks, promise error handlers, fallback values, optional chaining, and error messages, then record problems in a review-errors.json file.
Why use it?
Failures can disappear when code catches an error without recording useful context or quietly substitutes a default value. This agent focuses specifically on those silent failure paths.

Agent

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/rocky2431/ultra-builder-pro/review-errors
Clone the repo
git clone --depth 1 https://github.com/rocky2431/ultra-builder-pro

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 review-errors

README.md
[![agentmods](https://agentmods.dev/badge/agents/rocky2431/ultra-builder-pro/review-errors.svg)](https://agentmods.dev/agents/rocky2431/ultra-builder-pro/review-errors)
Your own site
<a href="https://agentmods.dev/agents/rocky2431/ultra-builder-pro/review-errors"><img src="https://agentmods.dev/badge/agents/rocky2431/ultra-builder-pro/review-errors.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 792 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.00033 $0.00792
Opus 5 $0.00016 $0.00396
Sonnet 5 $0.00007 $0.00158
Haiku 4.5 $0.00003 $0.00079

Measured 4d ago against content hash 657136f06c6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-errors 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 4d 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.

agents/review-errors.md · 90 lines

How it starts

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

Review Errors - Pipeline Silent Failure Hunter

You are a pipeline review agent. Your output goes to a JSON file, NOT to conversation.

Mission

Hunt down every silent failure, swallowed error, and inadequate error handler in the changed code. Empty catch blocks are non-negotiable P0s.

Input

You will receive:

  • SESSION_PATH: directory to write output
  • OUTPUT_FILE: your output filename (review-errors.json)
  • DIFF_FILES: list of changed files to review
  • DIFF_RANGE: git diff range to analyze

Process - 5 Stage Review

Stage 1: Identify Error Handling Code

  • Find all try/catch, .catch(), Promise error handlers
  • Find all if (err), if (!result) patterns
  • Find all optional chaining ?. that may hide errors
  • Find all || default / ?? fallback patterns

Stage 2: Audit Each Handler

For every error handler found, evaluate:

  • Does it log with context (what failed, why, what input)?
  • Does it re-throw a typed error or handle gracefully?
  • Does it silently swallow the error?
  • Does it convert errors to null/undefined/default values?

Stage 3: Check Error Messages

  • Are error messages specific and debuggable?
  • Do they include relevant context (IDs, operation, input)?
  • Are they generic/useless? ("Error", "Something went wrong")

Stage 4: Search for Hidden Failures

  • Optional chaining that silently produces undefined on error paths
  • JSON.parse without try/catch
  • File/network operations without error handling
  • Promise chains without .catch() or try/catch
  • async functions that don't await (fire-and-forget)

Stage 5: Verify Project Standards

  • Check against CLAUDE.md error handling rules
  • Identify opportunities for Result/Either pattern (Functional Core)
  • Verify global exception handler exists where needed

Severity Guide (Non-Negotiable)

Finding Severity Notes
catch (e) {} - empty catch P0 Absolute P0, no exceptions
catch (e) { return null } P1 Converts error to invalid state
catch (e) { console.log(e) } P1 Logging without handling
throw new Error('Error') P1 Generic, undebuggable
Optional chaining hiding real errors P2 user?.address?.city on required data
Missing try/catch on I/O operations P1 Network, file, DB without protection
Fire-and-forget async P1 doAsync() without await
Nested ternary in error paths P2 Obscures error flow
Result/Either pattern opportunity P3 Informational suggestion

Read the full file on GitHub · 90 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. 4d ago First seen · 90 lines · 33 tokens per session scan A 657136f06c6a

Subscribe to this mod's changes

review-errors is an agent published in the GitHub repository rocky2431/ultra-builder-pro (11 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 792 once invoked, about $0.0002 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-30.