Borrowing it
Nothing to install: this file belongs to abhichat85/papyrus. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/abhichat85/papyrus/main/AGENTS.mdgit clone --depth 1 https://github.com/abhichat85/papyrusWrote 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.
[](https://agentmods.dev/instructions/abhichat85/papyrus/agents-md)<a href="https://agentmods.dev/instructions/abhichat85/papyrus/agents-md"><img src="https://agentmods.dev/badge/instructions/abhichat85/papyrus/agents-md/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.
<a href="https://agentmods.dev/instructions/abhichat85/papyrus/agents-md"><img src="https://agentmods.dev/badge/instructions/abhichat85/papyrus/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01444 | $0.01444 |
| Opus 5.5 | $0.00578 | $0.00578 |
| Sonnet 5.5 | $0.00289 | $0.00289 |
| Haiku 4.5 | $0.00144 | $0.00144 |
Grade A, and why
papyrus AGENTS.md 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.
How it starts
The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Instructions for AI coding agents working on Papyrus. Read this before
changing anything. CLAUDE.md points here; this file is the source of truth.
What Papyrus is
A universal document ingestion engine. Any file in, agent-ready Markdown out. It is a deterministic library first, with a CLI, an HTTP API and a demo web app layered on top.
The one rule
bytes → detect → parser → Document IR → renderer → markdown
↓
chunks.jsonl
Parsers never emit Markdown. Renderers never parse files. Everything
meets at the Document IR (src/papyrus/ir.py). If you find yourself
writing a # or a | inside src/papyrus/parsers/, stop — that string
belongs in src/papyrus/renderers/markdown.py.
This is what makes a new format a single self-contained file. Breaking it costs the project its main property, so it is not a stylistic preference.
Core principles
- Degrade, don't crash. Messy input produces a
Documentwith a warning appended. Only genuinely unreadable input raisesParseError. A parser that raises something unexpected is wrapped byConverterand surfaces asParseError— never a bare traceback. - Never trust a filename.
detect()reads magic bytes first. A PDF namedinvoice.docxis a PDF. - No LLM in the conversion path. Conversion is deterministic and free. Same bytes in, same Markdown out. An AI cleanup pass may exist later, but it is opt-in and it sits after the IR, never inside a parser.
- Use the format's own signal before a heuristic. Word marks header
rows with
w:tblHeader; HTML has<th>; PyMuPDF reports the header it detected;csv.Snifferexists. Guessing from cell contents is the fallback, not the first move — seesplit_header(rows, hint). - Preserve document order. python-docx hands you
paragraphsandtablesas separate collections; python-pptx hands you shapes in z-order; PDF text and tables come from two different passes. All three are reconstructed. A table rendered under the wrong heading is a correctness bug, not a formatting nit. - Every uploaded file is hostile. Never execute input, never shell
out, never write it outside a temp directory, always sanitise the
filename with
safe_name(). Every ceiling lives inLimits. - Preserve provenance. sha256, source format, page anchors. A converted document must be traceable to the bytes it came from.
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.
- 2mo ago First seen · 128 lines · 1,444 tokens per session scan A 3efb643aa1ac
papyrus AGENTS.md is an instructions file published in the GitHub repository abhichat85/papyrus (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,444 tokens to every session, about $0.0058 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.
papyrus AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| papyrus AGENTS.mdabhichat85/papyrus | Instructions file | 0 | 2mo ago | Apache-2.0 | A | 1,444 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |