fallow: Agent for Claude Code

.agents/agents/mcp-reviewer.md

mcp-reviewer is an agent for Claude Code, Codex from fallow-rs/fallow. It costs 22 tokens per session (584 once invoked), scanned A, original, MIT.

A reviewer for MCP server interfaces—the definitions that let AI agents call a server’s tools. It examines tool names, parameters, responses, errors, timeouts, and descriptions.

In plain words
What is it for?
Use it when reviewing or changing an MCP server’s tool design, response format, error messages, timeout behavior, or documentation.
Why use it?
It helps ensure that AI agents can discover the tools, provide the right inputs, understand results, and recover from errors.

Agent for Claude CodeCodex

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions Claude Code; installed under .agents/ (shared by several agents).

This is fallow-rs/fallow's own configuration. It tells Claude Code and Codex how to work on fallow 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 fallow configures →

About the project

Fallow is a command-line static-analysis tool that builds a dependency graph of TypeScript and JavaScript code to identify unused code, duplication, circular dependencies, complexity hotspots, boundary violations, and styling drift. It is for developers reviewing codebases and verifying changes, with catalogue entries that add agent, editor, and workflow integrations.

fallow-rs/fallow · 5,273 stars · on GitHub · docs.fallow.tools

Reuse

Borrowing it

Nothing to install: this file belongs to fallow-rs/fallow. 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/fallow-rs/fallow/main/.agents/agents/mcp-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/fallow-rs/fallow

Made for: Claude Code, Codex.

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 mcp-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/fallow-rs/fallow/mcp-reviewer/github.svg)](https://agentmods.dev/agents/fallow-rs/fallow/mcp-reviewer)
Your own site
<a href="https://agentmods.dev/agents/fallow-rs/fallow/mcp-reviewer"><img src="https://agentmods.dev/badge/agents/fallow-rs/fallow/mcp-reviewer/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 mcp-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/fallow-rs/fallow/mcp-reviewer"><img src="https://agentmods.dev/badge/agents/fallow-rs/fallow/mcp-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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.00022 $0.00584
Opus 5.5 $0.00009 $0.00234
Sonnet 5.5 $0.00004 $0.00117
Haiku 4.5 $0.00002 $0.00058

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

Security

Grade A, and why

mcp-reviewer 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.

.agents/agents/mcp-reviewer.md · 50 lines

How it starts

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

Review changes to fallow's MCP (Model Context Protocol) server. This is how AI agents (Claude Code, Cursor, Copilot) interact with fallow programmatically.

What to check

  1. Tool naming: Short, verb-first names that agents can discover and understand. analyze not run_dead_code_analysis. Consistent with CLI command naming
  2. Parameter design: Parameters must have clear descriptions, correct types, and sensible defaults. Boolean params should default to the safe/common behavior. Avoid parameter explosion, prefer composable flags
  3. Response structure: JSON responses must include actions arrays for every issue. Agents need to know what they can do next without re-querying
  4. Error handling: Errors must return structured JSON (not plain text). Include actionable guidance ("config file not found at X, run fallow init to create one")
  5. Timeout handling: Long-running analyses must respect FALLOW_TIMEOUT_SECS. Document expected durations for different project sizes
  6. Tool descriptions: Each tool's description is the primary way agents discover capabilities. Must be concise, accurate, and include the most common use case
  7. --explain by default: MCP tools should always include _meta (agents need to understand what complexity_density: 0.12 means)
  8. Binary resolution: FALLOW_BIN env var, node_modules/.bin/fallow fallback, PATH lookup. Error messages must guide the user to install fallow
  9. Idempotency: All read-only tools must be safe to call repeatedly. Only fix_apply is destructive (requires explicit approval)

Key files

  • crates/mcp/src/main.rs (server entry point)
  • crates/mcp/src/server/mod.rs (tool dispatch)
  • crates/mcp/src/tools/ (individual tool implementations)
  • crates/mcp/src/params.rs (parameter definitions)

Veto rights

Can BLOCK on:

  • Destructive tools missing explicit approval gates
  • Tool descriptions that would mislead agents into wrong usage
  • Missing error handling that would return raw stderr to agents
  • Breaking changes to existing tool parameter names or semantics

Read the full file on GitHub · 50 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 · 50 lines · 22 tokens per session scan A 5aab94d0ee88

Subscribe to this mod's changes

mcp-reviewer is an agent published in the GitHub repository fallow-rs/fallow (5,273 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 584 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-08-30.