error-handler-inspector

error-handler-inspector is an agent for coding agents from synaptiai/synapti-marketplace. It costs 38 tokens per session (1,439 once invoked), scanned A, original, Apache-2.0.

A code-review agent focused on unhandled errors, missing edge cases, silent failures, and gaps in exception handling.

In plain words
What is it for?
Use it to inspect changed code and report error-handling findings with severity and file-and-line references.
Why use it?
It helps find situations where software can fail without a useful response or where unusual inputs are not handled safely.

Agent

Part of the flow plugin — 31 skills, 21 commands, 9 agents shipped together

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/synaptiai/synapti-marketplace/error-handler-inspector
Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

Or install flow, the plugin that ships this one along with the rest of its 31 skills, 21 commands, 9 agents.

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 error-handler-inspector

README.md
[![agentmods](https://agentmods.dev/badge/agents/synaptiai/synapti-marketplace/error-handler-inspector.svg)](https://agentmods.dev/agents/synaptiai/synapti-marketplace/error-handler-inspector)
Your own site
<a href="https://agentmods.dev/agents/synaptiai/synapti-marketplace/error-handler-inspector"><img src="https://agentmods.dev/badge/agents/synaptiai/synapti-marketplace/error-handler-inspector.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 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,439 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.00038 $0.01439
Opus 5 $0.00019 $0.00720
Sonnet 5 $0.00008 $0.00288
Haiku 4.5 $0.00004 $0.00144

Measured yesterday against content hash ae91ef28ff25, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

error-handler-inspector 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 yesterday.

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.

plugins/flow/agents/error-handler-inspector.md · 138 lines

How it starts

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

Error Handler Inspector Agent

You are an error handling specialist for the flow plugin. Analyze code changes for unhandled errors, silent failures, and exception handling gaps. When a true risk trade-off decision arises (e.g., performance vs. safety — NOT finding triage), use the six-field Proactive Autonomy escalation structure (Situation / What I tried / Options / My recommendation / Blocking? / Risk if wrong) rather than open-ended questions or silent deferrals. Finding triage (P1/P2/P3 disposition) is NEVER a valid escalation trigger; fix in-PR per skills/llm-operator-principles/SKILL.md.

Process

Step 1: Get the Diff

DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null || echo "main")
git diff "origin/$DEFAULT_BRANCH"..HEAD --stat
git diff "origin/$DEFAULT_BRANCH"..HEAD

Step 2: Scan for Error Handling Gaps

Use Grep to find patterns in changed files:

Empty catch blocks:

grep -rn "catch\s*(" --include="*.{ts,js,tsx,jsx}" | grep -v "catch\s*(.*)\s*{[^}]"

Unhandled promises:

grep -rn "\.then(" --include="*.{ts,js,tsx,jsx}" | grep -v "\.catch\|await"

Silent rescues (Ruby):

grep -rn "rescue\s*$\|rescue nil\|rescue =>" --include="*.rb"

Bare except (Python):

grep -rn "except:" --include="*.py" | grep -v "except\s\+\w"

Missing null/undefined checks:

  • Read function signatures and trace call sites
  • Check if nullable returns are handled by callers
  • Look for optional chaining gaps (.foo where ?.foo is needed)

Step 2b: LSP Diagnostics Collection

When the LSP tool is available, collect diagnostics from the language server for each changed file:

  1. Use LSP(documentSymbol) on each changed file to enumerate all symbols
  2. Use LSP(hover) on function signatures to check for type errors or missing return type annotations
  3. Collect any diagnostics the language server reports (errors, warnings, hints)

Priority mapping for LSP diagnostics:

Read the full file on GitHub · 138 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. yesterday First seen · 138 lines · 38 tokens per session scan A ae91ef28ff25

Subscribe to this mod's changes

error-handler-inspector is an agent published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,439 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-09-03.

Related

Other agents, from other repositories

codebase-analyzer

Analyzes codebase implementation details. Call the codebase-analyzer agent when you need to find detailed information about specific components. As always, the more detailed your request prompt, the better! :).

CaptainMe-AI/lead-dev-os · 44 tokens

codebase-locator

Locates files, directories, and components relevant to a feature or task. Call codebase-locator with human language prompt describing what you're looking for. Basically a "Super Grep/Glob/LS tool" — Use it if you find yourself desiring to use one of these tools more than once.

CaptainMe-AI/lead-dev-os · 68 tokens

web-search-researcher

Do you find yourself desiring information that you don't quite feel well-trained (confident) on? Information that is modern and potentially only discoverable on the web? Use the web-search-researcher subagenttype today to find any and all answers to your questions! It will research deeply to figure out and attempt to…

CaptainMe-AI/lead-dev-os · 114 tokens

reviewer

The Reviewer of the aSPARK team. Use in the Review phase (/peer-review) to audit the diff produced by /increment with a staff-engineer eye: plan conformance, correctness, edge cases, error handling, security and test quality. Writes the review report and may fix obvious low-risk issues directly.

a-lottes/aSPARK · 66 tokens

designer

The Designer of the aSPARK team. Use in the Specify phase (/look-and-feel) to design-check a spec before planning starts, or later to critique an implemented UI (from screenshots or markup provided by the caller). Detects bad design: usability heuristics violations, inconsistency, accessibility problems.

a-lottes/aSPARK · 64 tokens

seo-manager

SEO specialist. Invoke for SEO strategy, keyword research, technical SEO audits, content strategy, Core Web Vitals analysis, structured data implementation, and diagnosing ranking drops. All three SEO pillars: technical, content, and authority.

pranav8494/team-of-agents · 48 tokens