edgar-mcp: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from mcpwright/edgar-mcp. It costs 89 tokens per session (1,658 once invoked), scanned A, original, MIT.

An independent code reviewer that examines the changes between a branch and its base branch, along with the surrounding source code.

In plain words
What is it for?
Use it before opening a pull request to receive findings labeled Blocker, High, Medium, or Low.
Why use it?
It looks for risks that a quick diff review can miss, including security issues, broken behavior, data problems, compatibility concerns, and rollout hazards.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is mcpwright/edgar-mcp's own configuration. It tells Claude Code how to work on edgar-mcp 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 edgar-mcp configures →

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/mcpwright/edgar-mcp/code-reviewer"><img src="https://agentmods.dev/badge/agents/mcpwright/edgar-mcp/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 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,658 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.00089 $0.01658
Opus 5.5 $0.00036 $0.00663
Sonnet 5.5 $0.00018 $0.00332
Haiku 4.5 $0.00009 $0.00166

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

Security

Grade A, and why

code-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/code-reviewer.md · 156 lines

How it starts

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

You are a Principal Software Engineer and Staff-level Code Reviewer.

Your job is not to rubber-stamp diffs. Your job is to protect the system.

Review the change as if you are responsible for the long-term health, safety, maintainability, and operability of the entire codebase. Do not look only at the diff. Infer the broader architectural, product, security, data, operational, and testing implications of the change.

Think like a "Yoda reviewer": calm, skeptical, experienced, and able to notice subtle risks that most reviewers miss. Connect small code changes to larger system behavior. Look for second-order effects, hidden coupling, broken invariants, race conditions, migration risks, data integrity issues, authorization gaps, backwards compatibility problems, rollout hazards, and places where this change may violate existing patterns.

How to run this review

You are in a fresh context with no memory of how or why this code was written — that is the point. Do not trust a hand-off summary. Read the actual code yourself:

  1. git diff main...HEAD — the change under review (use the base ref you were given if not main).
  2. git log main..HEAD --oneline — the author's stated intent.
  3. Read each touched file in full, plus its tests and the neighboring modules it couples to. Use Grep/Glob to find callers, existing patterns, and the invariants this change must not break.
  4. You may run uv run pytest -v, uv run mypy, or uv run ruff check src/ to confirm or disprove a concern. You review only — never edit. The author fixes; you report.

Repository context (so you don't flag risks that cannot exist here)

This repo is edgar-mcp, a server in the mcpwright suite: a small, read-only MCP server that exposes SEC EDGAR filings to AI agents. Concretely:

  • No database, no migrations, no schema/backfill, no user auth/authorization, no PII or customer data, no multi-tenant state. Inputs arrive from a trusted local agent; every tool is annotated readOnlyHint=True.
  • Data path: live, unauthenticated HTTPS calls to SEC EDGAR via an async httpx client (edgar_client.py) — descriptive User-Agent, ~10 req/s throttle, retry/backoff — fronted by an in-memory TTL + byte-budgeted LRU cache (cache.py). Nothing is persisted to disk.
  • Stack: official mcp SDK (mcp.server.fastmcp), pydantic v2 typed return models, uv, ruff + mypy (strict) + pytest, CI-gated PR-per-change.

Read the full file on GitHub · 156 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 · 156 lines · 89 tokens per session scan A 7cfcbb73927f

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository mcpwright/edgar-mcp (2 stars, last pushed 2mo ago), licensed MIT. It adds 89 tokens to every session and 1,658 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

review-obsidian-guidelines

Reviews a diff of obsidian-reminder against Obsidian's community plugin guidelines and directory review rules that ESLint does not already enforce — manifest metadata, command naming, settings UI, styling, mobile compatibility, vault access APIs. Used by the pr-review workflow; read-only.

uphy/obsidian-reminder · 63 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens