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 →

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.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.svg" alt="Measured on agentmods" 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 $0.00003 $0.00477
Sonnet 5 $0.00001 $0.00191
Haiku 4.5 $0.00001 $0.00095

Measured yesterday against content hash fa6d218a170d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 yesterday.

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. yesterday 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 (917 stars, last pushed today), licensed MIT. It adds 7 tokens to every session and 954 once invoked, about $0.0000 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-06.

Related

Other agents, from other repositories

php-reviewer

PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PSR-12, PHPStan, security analysis.

TheBeardedBearSAS/claude-craft · 32 tokens

peer-reviewer

Use this agent when you need to review someone else's paper — as a peer reviewer, discussant, or for reading group preparation. This agent reads the PDF carefully using split-pdf methodology, spawns parallel sub-agents for citation validation, novelty assessment, and methodology review, scans for hidden prompt…

flonat/flonat-research · 352 tokens

code-review

Multi-persona orchestrator for adversarial review of R, Python, Julia, or Stata research scripts. Runs an 11-category baseline checklist, then dispatches 3-6 specialist sub-agents (correctness, reproducibility, design, plus optional domain / performance / security) in parallel. Deduplicates findings across reviewers…

flonat/flonat-research · 398 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data.

iliaal/whetstone · 41 tokens

review-performance

Performance reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-performance with artifact paths. Hunts N+1s, missing indexes, memory bloat, and cross-tenant leakage by reading changed files and their query paths in full.

hoblin/claude-ruby-marketplace · 60 tokens