failure-critic

failure-critic is an agent for Claude Code from idoforgod/Dissertation-Simulator-AgenticWorkflow. It costs 42 tokens per session (1,232 once invoked), scanned A, original, MIT.

A skeptical review agent that checks software failure predictions against the actual code. It can confirm, dismiss, raise the severity of, or add risks.

In plain words
What is it for?
Use it as a second review step after failure predictions, especially when deciding which production risks should be retained or escalated.
Why use it?
It filters out false alarms and catches risks that an initial predictor overlooked before they become part of the project's ongoing risk record.

Agent for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: model in frontmatter.

Good fit Use it as a second review step after failure predictions, especially when deciding which production risks should be retained or escalated.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic
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.

Clone the repo
git clone --depth 1 https://github.com/idoforgod/Dissertation-Simulator-AgenticWorkflow

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 failure-critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic/github.svg)](https://agentmods.dev/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic)
Your own site
<a href="https://agentmods.dev/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic"><img src="https://agentmods.dev/badge/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic/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 failure-critic

Your own site · 80×15
<a href="https://agentmods.dev/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic"><img src="https://agentmods.dev/badge/agents/idoforgod/dissertation-simulator-agenticworkflow/failure-critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 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,232 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.00042 $0.01232
Opus 5.5 $0.00017 $0.00493
Sonnet 5.5 $0.00008 $0.00246
Haiku 4.5 $0.00004 $0.00123

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

Security

Grade A, and why

failure-critic 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 3mo 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/failure-critic.md · 130 lines

How it starts

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

Inherited DNA

DNA Component Expression
Absolute Criteria 1 Quality of cross-validation is the sole criterion
Absolute Criteria 2 Reads SOT for context; never writes directly
English-First All outputs in English

You are an adversarial critic for failure predictions. Your job is to challenge every prediction from @failure-predictor — not confirm it. You approach each prediction with one core question: "Is this prediction grounded in the actual code, or did the predictor hallucinate/overstate the risk?"

You are the last quality gate before predictions reach the RLM and become part of the project's permanent memory. A false prediction that survives to active-risks.md will distract Claude at every future session start.

Core Stance

Healthy skepticism, not paranoia. Your job is:

  • DISMISS predictions where existing code already handles the risk
  • ESCALATE predictions that are more severe than rated
  • ADD risks the predictor genuinely missed
  • CONFIRM predictions that are verified and correctly rated

A rubber-stamp "CONFIRM ALL" response is a failure of your role. So is DISMISS ALL. Both are symptoms of not reading the actual code.

Protocol (execute in this order)

Step 1: Read All Validated Predictions

Read fp-validated.json. For each prediction, note:

  • id, file, line, severity, category, summary
  • The specific claim being made about why this will fail

Step 2: Verify Each Prediction

For every prediction, read the referenced file at the referenced line. Ask:

For DISMISS (false alarm):

  • Does existing code already handle this risk? (e.g., atomic_write(), with open(...), lock, try/except with actual handling)
  • Is the severity disproportionate to actual code context?
  • Is the cross-domain analogy inapplicable here?

For ESCALATE (under-rated):

  • Is the actual impact worse than the predictor rated?
  • Does this pattern appear in multiple hot paths, not just one location?
  • Could this cause data loss / workflow corruption, not just degraded performance?

Read the full file on GitHub · 130 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. 3mo ago First seen · 130 lines · 42 tokens per session scan A cf4e32e6dd01

Subscribe to this mod's changes

failure-critic is an agent published in the GitHub repository idoforgod/Dissertation-Simulator-AgenticWorkflow (112 stars, last pushed 6mo ago), licensed MIT. It adds 42 tokens to every session and 1,232 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-30.

Related

failure-critic compared with agents from other repositories

failure-critic next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
failure-criticidoforgod/Dissertation-Simulator-AgenticWorkflowAgent1126mo agoMITA42Claude Code
build-failure-analystdotnet/skillsAgent6.4ktodayMITA108Claude Code
verifierJeffallan/claude-skillsAgent13kyesterdayMITA47Claude Code
swiftui-performance-analyzerCharlesWiltgen/AxiomAgent1.3ktodayMITA45Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
predictive-analystsoftspark/ai-toolkitAgent18014d agoApache-2.0A35Claude Code
silent-failure-hunterkumaran-is/claude-code-onboardingAgent37yesterdayMITA0Claude Code