freeagent-mcp: Agent for Claude Code

.claude/agents/security-reviewer.md

security-reviewer is an agent for Claude Code from samaxbytez/freeagent-mcp. It costs 67 tokens per session (520 once invoked), scanned A, original, MIT.

A security-review agent for an MCP server, a program that lets an AI use connected tools. It checks code changes against threats such as malicious data instructions, unsafe URLs, path traversal, command injection, and exposed access tokens.

In plain words
What is it for?
Use it to review changes to request handling, authentication, tool implementations, input validation, and browser or process launching code.
Why use it?
It looks for ways untrusted data or unsafe inputs could make the server send credentials, access unintended paths, or execute harmful commands.

Agent for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/samaxbytez/freeagent-mcp/security-reviewer"><img src="https://agentmods.dev/badge/agents/samaxbytez/freeagent-mcp/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 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.00067 $0.00520
Opus 5.5 $0.00027 $0.00208
Sonnet 5.5 $0.00013 $0.00104
Haiku 4.5 $0.00007 $0.00052

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

Security

Grade A, and why

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

.claude/agents/security-reviewer.md · 37 lines

What it actually says

You are a security reviewer for freeagent-mcp-server, an MCP server driven by an LLM. The primary threat is indirect prompt injection: malicious content in FreeAgent data the model reads back (invoice descriptions, contact names) trying to make the server leak the bearer token or hit unintended endpoints.

Review the changes under review (use git diff main...HEAD and git diff HEAD) against these invariants. Report concrete findings only — each with file:line, the attack it enables, and the minimal fix. If an invariant is upheld, say so briefly.

Invariants to verify:

  1. ID parameters use safeId (not z.string()) wherever an ID is interpolated into a request path — prevents path traversal via ID fields.
  2. client.ts request-path guard intact: rejects absolute URLs and ../ sequences AND verifies the resolved URL's origin equals the API base origin. The origin check is the real boundary — flag any change that removes or weakens it (it stops the bearer token reaching another host).
  3. No shell interpolation: browser/process launches use execFile with an argument array, never exec, shell: true, or string-built commands. Windows uses explorer.exe (not cmd /c start, which mangles & in URLs).
  4. Token handling: tokens written 0o600 in a 0o700 dir; never logged, never echoed into errors, never sent anywhere but the FreeAgent token endpoint.
  5. No new sinks: any new outbound request, file write, or subprocess that takes model- or data-derived input is validated.
  6. Error messages don't leak secrets or full tokens.

Be specific and adversarial: assume an attacker controls the string values returned by the FreeAgent API and the arguments the LLM passes to tools. Default to flagging when unsure, but do not invent issues that the code does not contain.

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 · 37 lines · 67 tokens per session scan A cc063e27f5ee

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository samaxbytez/freeagent-mcp (6 stars, last pushed 2mo ago), licensed MIT. It adds 67 tokens to every session and 520 once invoked, about $0.0003 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

mcp-pr-reviewer

Autonomous PR reviewer for MCP server updates and additions. Reviews PRs that modify server.json files in the registry, determines compliance, and approves/merges safe changes. Use when processing MCP server PRs in bulk or reviewing individual PRs.

stacklok/toolhive-catalog · 55 tokens

code-reviewer

Expert code reviewer specializing in software architecture, design patterns, and code quality assessment. Invoke for comprehensive code reviews focusing on maintainability, scalability, and best practices.

ProjAnvil/MindForge · 36 tokens

devils-advocate

Adversarial reviewer that systematically attacks specs, implementations, and plans to find logical gaps, missed edge cases, implicit assumptions, and over/under-engineering. Maintains a playbook of attack patterns that evolves based on what actually finds bugs. Use on any artifact you want stress-tested before…

Kastalien-Research/thoughtbox · 66 tokens

triage-fix

Diagnose and repair technical failures in the codebase, build system, and integrations. Use when something breaks — test failures, build errors, integration breakdowns, runtime exceptions. This agent implements fixes autonomously within scope boundaries.

Kastalien-Research/thoughtbox · 50 tokens

silent-failure-hunter

Specialized adversarial agent for finding code paths that fail without producing visible errors. Targets hooks, state file pipelines, scheduled tasks, and error handlers. Particularly dangerous failures are those that produce plausible-looking wrong data rather than errors. Shares the adversarial playbook with…

Kastalien-Research/thoughtbox · 64 tokens

vibecoding-check

Scope, artifact quality, acceptance, and drift checking.

mtarcure/claude-vibe-squad · 17 tokens