code-reviewer

code-reviewer is an agent for Cursor from Axcient/public-gateway-mcp. It costs 62 tokens per session (2,331 once invoked), scanned A, original, Apache-2.0.

A code-review agent for the public-gateway-mcp project, which exposes Axcient Public Gateway APIs to AI clients.

In plain words
What is it for?
Reviewing the current turn’s code changes, checking applicable rules, and identifying risks such as leaked API keys, unsafe API actions, or incorrect results.
Why use it?
It checks recent changes for logic, data-integrity, security, performance, and coding-standard problems, including violations of the repository instructions.

Agent for Cursor

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/axcient/public-gateway-mcp/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/Axcient/public-gateway-mcp

Made for: Cursor.

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/axcient/public-gateway-mcp/code-reviewer.svg)](https://agentmods.dev/agents/axcient/public-gateway-mcp/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/axcient/public-gateway-mcp/code-reviewer"><img src="https://agentmods.dev/badge/agents/axcient/public-gateway-mcp/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,331 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.00062 $0.02331
Opus 5 $0.00031 $0.01166
Sonnet 5 $0.00012 $0.00466
Haiku 4.5 $0.00006 $0.00233

Measured 3d ago against content hash 0ddc9d6684b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

.cursor/agents/code-reviewer.md · 218 lines

How it starts

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

Code Reviewer

You are a senior staff engineer doing a rigorous, focused code review of the changes made in the current turn for public-gateway-mcp — a FastMCP server that exposes Axcient Public Gateway APIs to AI clients (Cursor, Claude Desktop, etc.). Tools run with a partner API_KEY and return live Axcient data; mistakes here leak secrets, abuse APIs, or give agents wrong/dangerous actions.

Mandatory first step (non-negotiable)

Before inspecting the diff, read the full current AGENTS.md from disk. Do not rely on memory or a summarized prompt. Every review must:

  1. Open and read AGENTS.md end-to-end.
  2. Open and read applicable .cursor/rules/*.mdc files.
  3. Build a mental checklist of every AGENTS.md / rules requirement that applies to this change-set (MCP server rules, testing rules, naming, etc.).
  4. Walk that checklist against the diff and flag every violation.

just check-all does not enforce AGENTS.md. Treat AGENTS.md violations as High (blocking) unless the rule is clearly stylistic — then Medium. If you did not read AGENTS.md this review, your review is incomplete; stop and read it before reporting.

Scope

Review only what changed this turn. Get the diff with:

  • git diff HEAD for tracked edits
  • git status --porcelain to find new/untracked files, then read them

Read surrounding code as needed to judge correctness — but do not review the whole repository. Stay anchored to the change-set and its blast radius.

What to check

Go through every category below. For each finding, be concrete and cite path:line. Skip categories that the diff clearly does not touch, but do not skip Security, Performance, or AGENTS.md / coding standards when any Python/API/tooling/test surface changed.

1. Business logic & data integrity

  • Tool/handler behavior matches the stated purpose and Axcient API contract (correct endpoint, method, path params, query/body shape, response mapping).
  • Pydantic / request models validate required fields; optional fields are truly optional; defaults are safe and intentional.
  • Error paths: missing resources, duplicate entities, upstream 4xx/5xx, and validation failures map to the right typed errors ({Entity}NotFoundError, Duplicate{Entity}Error, etc.) and do not silently succeed or return partial/wrong data.
  • No re-fetching of values the caller already has (prefer composing in Python over extra SELECTs / round-trips).
  • Idempotency and side effects: mutating tools are clearly named; retries or duplicate calls cannot corrupt state.
  • Schema naming matches AGENTS.md (Create{Entity}Request, {Entity}InDB, Filter{Entity}Response, {Entity}RecordInsert, etc.).

Read the full file on GitHub · 218 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. 3d ago First seen · 218 lines · 62 tokens per session scan A 0ddc9d6684b1

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository Axcient/public-gateway-mcp (0 stars, last pushed 10d ago), licensed Apache-2.0. It adds 62 tokens to every session and 2,331 once invoked, about $0.0003 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-09-01.