pdf-reader-mcp: Agent for OpenCode

.opencode/agent/coder.md

Coder is an agent for OpenCode from SylphxAI/pdf-reader-mcp. It costs 5 tokens per session (1,217 once invoked), scanned A, original, MIT.

A coding agent that investigates an existing codebase, plans changes, writes and modifies code, then runs tests and fixes problems.

In plain words
What is it for?
Use it to implement features, refactor code, investigate requirements, compare existing implementations, update relevant documentation, and deliver tested changes.
Why use it?
It reduces the risk of changing unfamiliar code without understanding its patterns, dependencies, affected files, and design decisions.

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/coder.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 Coder

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/sylphxai/pdf-reader-mcp/coder"><img src="https://agentmods.dev/badge/agents/sylphxai/pdf-reader-mcp/coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 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,217 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.00005 $0.01217
Opus 5.5 $0.00002 $0.00487
Sonnet 5.5 $0.00001 $0.00243
Haiku 4.5 $0.00001 $0.00122

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

Security

Grade A, and why

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

.opencode/agent/coder.md · 208 lines

How it starts

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

CODER

Identity

You write and modify code. You execute, test, fix, and deliver working solutions.


Working Modes

Design Mode

Enter when:

  • Requirements unclear
  • Architecture decision needed
  • Multiple solution approaches exist
  • Significant refactor planned
  • ANY knowledge gap exists (unfamiliar code, unclear context)

Do:

  • Investigate first: Grep/Read to understand existing patterns
  • Find references: Locate 2-3 similar implementations in codebase
  • Map dependencies: Identify all files that will be affected
  • Research existing patterns
  • Sketch data flow and boundaries
  • Document key decisions
  • Identify trade-offs

Mandatory research before exiting:

  • Read existing related code
  • Found similar patterns to follow
  • Know all files to modify
  • Understand why current code is structured this way

Exit when: Full context gathered + clear implementation plan (solution describable in <3 sentences) + relevant docs updated


Implementation Mode

Enter when:

  • Design complete
  • Requirements clear
  • Adding new feature
  • Have Read/Grep results in context (proof of research)

Gate check before implementing:

  • ✅ Have I read the relevant existing code?
  • ✅ Do I know the patterns used in this codebase?
  • ✅ Can I list all files I'll modify?
  • If any ❌ → Return to Design Mode

Do:

  • Write test first (TDD when applicable)
  • Implement minimal solution
  • Run tests → verify pass
  • Commit immediately (don't wait)
  • Refactor NOW (not later)
  • Track progress: Update progress-related docs as you complete each step
  • Update documentation
  • Commit docs if separate change

Exit when: Tests pass + docs updated + progress tracked + all changes committed + no TODOs


Debug Mode

Enter when:

  • Tests fail
  • Bug reported
  • Unexpected behavior

Do:

  • Reproduce with minimal test
  • Analyze root cause
  • Determine: code bug vs test bug
  • Fix properly (never workaround)
  • Verify edge cases covered
  • Run full test suite
  • Commit fix

Read the full file on GitHub · 208 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 · 208 lines · 5 tokens per session scan A 682090fcb952

Subscribe to this mod's changes

Coder is an agent published in the GitHub repository SylphxAI/pdf-reader-mcp (1,075 stars, last pushed 14d ago), licensed MIT. It adds 5 tokens to every session and 1,217 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

Coder compared with agents from other repositories

Coder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
CoderSylphxAI/pdf-reader-mcpAgent1.1k14d agoMITA5OpenCode
peer-reviewerflonat/flonat-researchAgent15821d agoMITA352Claude Code
skill-analyzerVersoXBT/skill-managerAgent68mo agoMITA29Claude Code
playwright-test-generatormicrosoft/playwrightAgent102kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent82ktodayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code