blocker-detector

blocker-detector is an agent for Claude Code from gpt-cmdr/ras-commander. It costs 46 tokens per session (878 once invoked), scanned A, original, MIT.

An analysis agent that reviews conversation history to find repeated blockers, their resolutions, and patterns behind common problems. A blocker is an issue that prevents work from continuing.

In plain words
What is it for?
Use it to identify failed attempts, errors, bugs, recurring issues, successful fixes, workarounds, and ways to avoid similar blockers in future work.
Why use it?
It turns scattered troubleshooting conversations into recurring problem patterns and prevention ideas. This can help teams recognize issues they have already encountered.

Agent for Claude Code

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/gpt-cmdr/ras-commander/blocker-detector
Clone the repo
git clone --depth 1 https://github.com/gpt-cmdr/ras-commander

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 blocker-detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/blocker-detector.svg)](https://agentmods.dev/agents/gpt-cmdr/ras-commander/blocker-detector)
Your own site
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/blocker-detector"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/blocker-detector.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 878 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.00046 $0.00878
Opus 5 $0.00023 $0.00439
Sonnet 5 $0.00009 $0.00176
Haiku 4.5 $0.00005 $0.00088

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

Security

Grade A, and why

blocker-detector 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 5d 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/blocker-detector.md · 139 lines

How it starts

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

Blocker Detector

Detect recurring blockers and their resolutions from conversation history.

Purpose

Analyze conversations to extract:

  • Blocking issues encountered
  • Solutions that worked
  • Recurring problem patterns
  • Prevention strategies

Detection Keywords

Problem Indicators

PROBLEM_KEYWORDS = [
    "doesn't work", "not working", "failed", "error", "bug",
    "issue", "problem", "broken", "crash", "exception",
    "wrong", "incorrect", "unexpected", "confused", "stuck",
    "can't", "cannot", "unable", "impossible", "blocked"
]

Solution Indicators

SOLUTION_KEYWORDS = [
    "fixed", "solved", "solution", "works now", "working now",
    "the fix", "resolved", "figured out", "found the issue",
    "the answer", "turns out", "the trick", "workaround",
    "finally", "success", "got it working"
]

Analysis Method

1. Problem Detection

for msg in user_messages:
    if any(kw in msg.lower() for kw in PROBLEM_KEYWORDS):
        problems.append({
            'content': msg,
            'session_id': session_id,
            'timestamp': timestamp
        })

2. Solution Pairing

# Look for solutions in subsequent messages
for i, problem in enumerate(problems):
    for j in range(i+1, min(i+10, len(messages))):
        if any(kw in messages[j].lower() for kw in SOLUTION_KEYWORDS):
            problem['solution'] = messages[j]
            break

3. Categorization

CATEGORIES = {
    "remote_execution": ["remote", "psexec", "ssh", "session_id"],
    "hdf_files": ["hdf", "h5py", "results"],
    "geometry": ["geometry", "cross section", "mesh"],
    "documentation": ["documentation", "mkdocs", "notebook"],
    "git": ["git", "commit", "merge", "branch"],
    "imports": ["import", "module", "package"]
}

def categorize(text):
    for category, keywords in CATEGORIES.items():
        if any(kw in text.lower() for kw in keywords):
            return category
    return "general"

Read the full file on GitHub · 139 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. 5d ago First seen · 139 lines · 46 tokens per session scan A 971e54dae9e3

Subscribe to this mod's changes

blocker-detector is an agent published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 878 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.