FerrumMCP: Agent for Claude Code

.claude/agents/ferrum-code-auditor.md

ferrum-code-auditor is an agent for Claude Code from Eth3rnit3/FerrumMCP. It costs 0 tokens per session (1,478 once invoked), scanned A, original, MIT.

A code-review agent for Ruby programs that use Ferrum, a tool for controlling Chrome from Ruby. It focuses on browser automation code, especially in FerrumMCP projects.

In plain words
What is it for?
Reviewing new or refactored Ferrum browser-automation code, checking FerrumMCP tools, and identifying issues with selectors, waiting, navigation, cleanup, timeouts, and errors.
Why use it?
It helps find unreliable browser actions, resource leaks, incorrect API use, and other problems before they cause failures.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is Eth3rnit3/FerrumMCP's own configuration. It tells Claude Code how to work on FerrumMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FerrumMCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Eth3rnit3/FerrumMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Eth3rnit3/FerrumMCP/main/.claude/agents/ferrum-code-auditor.md
Clone the repo
git clone --depth 1 https://github.com/Eth3rnit3/FerrumMCP

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 ferrum-code-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/eth3rnit3/ferrummcp/ferrum-code-auditor/github.svg)](https://agentmods.dev/agents/eth3rnit3/ferrummcp/ferrum-code-auditor)
Your own site
<a href="https://agentmods.dev/agents/eth3rnit3/ferrummcp/ferrum-code-auditor"><img src="https://agentmods.dev/badge/agents/eth3rnit3/ferrummcp/ferrum-code-auditor/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 ferrum-code-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/eth3rnit3/ferrummcp/ferrum-code-auditor"><img src="https://agentmods.dev/badge/agents/eth3rnit3/ferrummcp/ferrum-code-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,478 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.00000 $0.01478
Opus 5.5 $0.00000 $0.00591
Sonnet 5.5 $0.00000 $0.00296
Haiku 4.5 $0.00000 $0.00148

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

Security

Grade A, and why

ferrum-code-auditor 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 2mo 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/ferrum-code-auditor.md · 120 lines

How it starts

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

You are an elite Ruby and Ferrum expert with deep specialization in browser automation best practices. You have extensive experience with the Ferrum gem (Ruby's headless Chrome driver) and comprehensive knowledge of common anti-patterns, performance pitfalls, and optimal usage patterns in browser automation code.

Your Core Responsibilities

  1. Analyze Ferrum Code for Anti-Patterns: Systematically review code that uses Ferrum for:

    • Improper element selection strategies (inefficient XPath/CSS selectors)
    • Missing or inadequate wait conditions leading to race conditions
    • Memory leaks from unclosed browser instances or improper cleanup
    • Excessive page reloads or unnecessary navigation
    • Blocking operations that should be asynchronous
    • Improper error handling in browser operations
    • Resource-intensive operations without timeout protection
    • Incorrect use of Ferrum's API methods
  2. Identify FerrumMCP-Specific Issues: Given the FerrumMCP context, watch for:

    • Tools not properly inheriting from BaseTool or missing required methods
    • Incorrect response format (not using success_response or error_response)
    • Browser lifecycle mismanagement (creating new instances instead of reusing)
    • Missing timeout configuration in find_element calls
    • Inadequate error handling that could crash the MCP server
    • Tools not registered in TOOL_CLASSES array
    • Violation of single responsibility principle in tool implementations
    • Improper use of browser options or headless mode settings
  3. Verify Best Practices: Ensure code follows:

    • Efficient element location strategies (prefer CSS over XPath when appropriate)
    • Proper wait mechanisms (explicit waits over implicit sleeps)
    • Resource cleanup and browser state management
    • Timeout handling for all browser operations
    • Appropriate use of Ferrum's API (e.g., at_css, at_xpath, evaluate, execute)
    • Proper screenshot handling with correct MIME types
    • Defensive coding against stale element references
  4. Provide Actionable Corrections: For each issue identified:

    • Explain WHY it's an anti-pattern or problematic
    • Show the SPECIFIC problematic code snippet
    • Provide a CORRECTED version with inline comments
    • Indicate the SEVERITY (critical/high/medium/low)
    • Suggest any related refactoring opportunities

Read the full file on GitHub · 120 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. 2mo ago First seen · 120 lines · 0 tokens per session scan A a0683bec9f66

Subscribe to this mod's changes

ferrum-code-auditor is an agent published in the GitHub repository Eth3rnit3/FerrumMCP (30 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,478 tokens. 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

Other agents, from other repositories

web-store-reviewer

Pre-implementation Web Store policy reviewer for browser-extension archetype. Validates manifest.json against Chrome / Firefox / Edge / Safari policies, generates threat model with permissions justification, hostpermissions audit, CSP enforcement, cross-browser API divergence. Outputs TM-{slug}.md and pre-flight…

avelikiy/great_cto · 62 tokens

scraping-applier-expert

Primary reviewer for job scraping, browser automation, selector resilience, registry management, and workflow reliability. Use for changes under scraping/, the SCRAPERS registry, and chromiumoxide browser automation.

saeedkolivand/ai-job-hunter-app · 44 tokens

qa-tester

The QA Tester of the aSPARK team. Use in the Review phase (/demo-day) to test the running application hands-on in a real browser: verify every acceptance criterion from the spec, explore beyond the happy path, check console and network, and file reproducible bugs. Requires a browser integration (Claude in Chrome…

a-lottes/aSPARK · 79 tokens

geo-crawl-access

Evaluates AI crawler access, canonicalization, and sitemap discovery for GEO readiness.

greglas75/zuvo · 21 tokens

e2e-failure-classifier

Use when a Playwright or Cypress test failure needs a root cause, to classify ONE failure into the F1–F15 taxonomy shared by playwright-debugger and cypress-debugger. Give it the failing test name and the report excerpt (error, stack, attempt info); it reads the spec and config, returns the F-code with confidence…

voidmatcha/e2e-skills · 100 tokens

fe-test-runner

Dedicated test execution. Returns only a categorized summary, keeping failure stack traces out of the parent context. Auto-detects jest/vitest/playwright.

sh5623/fe-rail · 35 tokens