command-failure-analyst

command-failure-analyst is an agent for Claude Code from LeanAndMean/scramjet. It costs 26 tokens per session (283 once invoked), scanned A, original, Apache-2.0.

A read-only investigator for a specific command failure. It traces what the user wanted, what the command actually did, and where those paths first differed.

In plain words
What is it for?
It reconstructs an execution timeline, identifies the first evidence-supported divergence, and records which safeguards or conditions contributed to the outcome.
Why use it?
It prevents every failure from being blamed on wording by separating instruction problems from missing context, model decisions, tools, runtime behavior, and external systems.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit It reconstructs an execution timeline, identifies the first evidence-supported divergence, and records which safeguards or conditions contributed to the outcome.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/leanandmean/scramjet/command-failure-analyst
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/LeanAndMean/scramjet

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 command-failure-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/leanandmean/scramjet/command-failure-analyst/github.svg)](https://agentmods.dev/agents/leanandmean/scramjet/command-failure-analyst)
Your own site
<a href="https://agentmods.dev/agents/leanandmean/scramjet/command-failure-analyst"><img src="https://agentmods.dev/badge/agents/leanandmean/scramjet/command-failure-analyst/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 command-failure-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/leanandmean/scramjet/command-failure-analyst"><img src="https://agentmods.dev/badge/agents/leanandmean/scramjet/command-failure-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 283 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.00026 $0.00283
Opus 5.5 $0.00010 $0.00113
Sonnet 5.5 $0.00005 $0.00057
Haiku 4.5 $0.00003 $0.00028

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

Security

Grade A, and why

command-failure-analyst 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 18d 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.

sets/scramjet/agents/command-failure-analyst.md · 35 lines

What it actually says

You diagnose an observed Scramjet command failure.

Reference

Load the writing-scramjet-commands skill before diagnosing command behavior.

Responsibility

Reconstruct the actual execution from user intent through command expansion, available context, delegation or subagent isolation, model decisions, tool calls, lifecycle/status handling, artifacts, and next-step dispatch. Locate the first evidence-supported divergence between intended and observed behavior.

Use current commands, relevant runtime contracts, tool results, journals, and external artifacts as evidence. Distinguish instruction failure, missing context, model judgment, tool/runtime behavior, and external-system behavior rather than attributing every outcome to prompt wording.

Boundary

Analyze only a concrete failure record. Do not invent a failure matrix, generalize one incident into procedure, design a replacement architecture, or mutate anything.

You are read-only. Do not execute project tools, publish, delegate, or interact with the user.

Output

Return:

  • intended and observed outcomes;
  • concise execution timeline;
  • first divergence and contributing conditions;
  • safeguards that held or failed;
  • supported root cause and its direct evidence;
  • uncertainty, missing evidence, and the smallest responsibility that owns further investigation.
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. 18d ago First seen · 35 lines · 26 tokens per session scan A ca608ed30a62

Subscribe to this mod's changes

command-failure-analyst is an agent published in the GitHub repository LeanAndMean/scramjet (1 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 283 once invoked, about $0.0001 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-11-12.

Related

command-failure-analyst compared with agents from other repositories

command-failure-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
command-failure-analystLeanAndMean/scramjetAgent1todayApache-2.0A26Claude Code
SWE - Correctness Reviewerchrisallenlane/claude-swe-workflowsAgent2113d agoMITA45Claude Code
SWE - Bug Assessorchrisallenlane/claude-swe-workflowsAgent2113d agoMITA48Claude Code
THK - Diagnosticianchrisallenlane/claude-swe-workflowsAgent2113d agoMITA53Claude Code
SWE - Bug Hunterchrisallenlane/claude-swe-workflowsAgent2113d agoMITA42Claude Code
SWE - Dead Code Auditorchrisallenlane/claude-swe-workflowsAgent2113d agoMITA42Claude Code
SWE - Refactor Deleterchrisallenlane/claude-swe-workflowsAgent2113d agoMITA58Claude Code