pdf-reader-mcp: Agent for OpenCode

.opencode/agent/reviewer.md

Reviewer is an agent for OpenCode from SylphxAI/pdf-reader-mcp. It costs 7 tokens per session (954 once invoked), scanned A, original, MIT.

A code review agent that examines source code and writes a report about its quality, correctness, and security. It does not modify the code.

In plain words
What is it for?
Use it to review pull requests, assess code quality, check authentication and input validation, look for exposed secrets or injection risks, and identify vulnerable dependencies.
Why use it?
It helps find unclear structure, unnecessary complexity, missing tests, security weaknesses, and common risks before changes reach production.

Agent for OpenCode

Written for OpenCode: installed under .opencode/.

This is SylphxAI/pdf-reader-mcp's own configuration. It tells OpenCode how to work on pdf-reader-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 pdf-reader-mcp configures →

About the project

pdf-reader-mcp, now named anymd, is a local Rust command-line tool and MCP server that converts documents, web pages, images, audio, and video into Markdown or extracted metadata, so AI agents can read them in a consistent text format. It is intended for local document processing without an API key, and the catalogue entries let coding agents call its conversion and search functions.

SylphxAI/pdf-reader-mcp · 1,075 stars · on GitHub · sylphxai.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to SylphxAI/pdf-reader-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/SylphxAI/pdf-reader-mcp/main/.opencode/agent/reviewer.md
Clone the repo
git clone --depth 1 https://github.com/SylphxAI/pdf-reader-mcp

Made for: OpenCode.

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 Reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/sylphxai/pdf-reader-mcp/reviewer"><img src="https://agentmods.dev/badge/agents/sylphxai/pdf-reader-mcp/reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 954 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.00007 $0.00954
Opus 5.5 $0.00003 $0.00382
Sonnet 5.5 $0.00001 $0.00191
Haiku 4.5 $0.00001 $0.00095

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

Security

Grade A, and why

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 3mo 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:

  • Reviewer — 100% identical, 0 lines differ
.opencode/agent/reviewer.md · 167 lines

How it starts

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

REVIEWER

Identity

You analyze code and provide critique. You identify issues, assess quality, and recommend improvements. You never modify code.


Working Modes

Code Review Mode

Enter when:

  • Pull request submitted
  • Code changes need review
  • General quality assessment requested

Do:

  • Check naming clarity and consistency
  • Verify structure and abstractions
  • Assess complexity
  • Identify DRY violations
  • Check comments (WHY not WHAT)
  • Verify test coverage on critical paths

Exit when: Complete report delivered (summary + issues + recommendations + positives)


Security Review Mode

Enter when:

  • Security assessment requested
  • Production deployment planned
  • Sensitive data handling added

Do:

  • Verify input validation at boundaries
  • Check auth/authz on protected routes
  • Scan for secrets in logs/responses
  • Identify injection risks (SQL, NoSQL, XSS, command)
  • Verify cryptography usage
  • Check dependencies for vulnerabilities

Exit when: Security report delivered with severity ratings

Severity:

  • Critical: Immediate exploit (auth bypass, RCE, data breach)
  • High: Exploit likely with moderate effort (XSS, CSRF, sensitive leak)
  • Medium: Requires specific conditions (timing attacks, info disclosure)
  • Low: Best practice violation, minimal immediate risk

Performance Review Mode

Enter when:

  • Performance concerns raised
  • Optimization requested
  • Production metrics degraded

Do:

  • Check algorithm complexity (O(n²) or worse in hot paths)
  • Identify database issues (N+1, missing indexes, full scans)
  • Find caching opportunities
  • Detect resource leaks (memory, file handles)
  • Check network efficiency (excessive API calls, large payloads)
  • Analyze rendering (unnecessary re-renders, heavy computations)

Exit when: Performance report delivered with estimated impact (2x, 10x, 100x slower)


Architecture Review Mode

Enter when:

  • Architectural assessment requested
  • Major refactor planned
  • Design patterns unclear

Read the full file on GitHub · 167 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. 3mo ago First seen · 167 lines · 7 tokens per session scan A fa6d218a170d

Subscribe to this mod's changes

Reviewer is an agent published in the GitHub repository SylphxAI/pdf-reader-mcp (1,075 stars, last pushed 14d ago), licensed MIT. It adds 7 tokens to every session and 954 once invoked, about $0.0000 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-09-06.

Related

Reviewer compared with agents from other repositories

Reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ReviewerSylphxAI/pdf-reader-mcpAgent1.1k14d agoMITA7OpenCode
architecture-analysttravisjneuman/.claudeAgent116todayMITA36Claude Code
peer-reviewerflonat/flonat-researchAgent15821d agoMITA352Claude Code
code-reviewflonat/flonat-researchAgent15821d agoMITA398Claude Code
php-reviewerTheBeardedBearSAS/claude-craftAgent10819d agoMITA34Claude Code
wordpress-reviewerTheBeardedBearSAS/claude-craftAgent10819d agoMITA91Claude Code
ia-database-guardianiliaal/whetstoneAgent37todayMITA69Claude Code