LiteParse is a local tool that extracts structured text and layout information from PDF files, including coordinates for each piece of text and optional OCR for scanned pages. It is for applications that need to turn PDFs into Markdown, JSON, or plain text without relying on cloud services.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/run-llama/liteparse/agents-mdgit clone --depth 1 https://github.com/run-llama/liteparseWrote 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/run-llama/liteparse/agents-md)<a href="https://agentmods.dev/instructions/run-llama/liteparse/agents-md"><img src="https://agentmods.dev/badge/instructions/run-llama/liteparse/agents-md.svg" alt="Measured on agentmods" 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 | $0.02100 | $0.02100 |
| Opus 5 | $0.01050 | $0.01050 |
| Sonnet 5 | $0.00420 | $0.00420 |
| Haiku 4.5 | $0.00210 | $0.00210 |
Grade A, and why
liteparse 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 5d 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 — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LiteParse - Agent Documentation
This file provides comprehensive context for AI coding agents working on this codebase.
Project Overview
LiteParse is an open-source PDF parsing library written in Rust, focused on fast, lightweight document processing with spatial text extraction. It runs entirely locally with zero cloud dependencies by default.
Language bindings are provided for Node.js/TypeScript (via napi-rs), Python (via PyO3), and WebAssembly (via wasm-bindgen).
Key Capabilities
- Spatial text extraction with precise bounding boxes
- Flexible OCR (built-in Tesseract or pluggable HTTP servers)
- Multi-format support (PDFs, DOCX, XLSX, PPTX, images via conversion)
- Multi-language bindings: Rust, Node.js/TypeScript, Python, Browser (WASM)
- CLI available from all installation methods (
cargo,npm,pip)
Directory Structure
liteparse/
├── crates/
│ ├── liteparse/ # Core Rust library + CLI binary
│ │ └── src/
│ │ ├── main.rs # CLI entry point (clap)
│ │ ├── lib.rs # Library root
│ │ ├── parser.rs # LiteParse orchestrator
│ │ ├── config.rs # Configuration types and defaults
│ │ ├── types.rs # Core data types (ParseResult, TextItem, etc.)
│ │ ├── projection.rs # Spatial grid projection (layout reconstruction)
│ │ ├── extract.rs # Raw text extraction from PDFium
│ │ ├── render.rs # Page rendering / screenshots
│ │ ├── conversion.rs # Non-PDF format conversion (LibreOffice, image/resvg/usvg rust crates)
│ │ ├── ocr_merge.rs # Merging OCR results with native text
│ │ ├── error.rs # Error types
│ │ ├── ocr/ # OCR engine implementations
│ │ │ ├── mod.rs # OcrEngine trait
│ │ │ ├── tesseract.rs # Built-in Tesseract OCR
│ │ │ └── http_simple.rs # HTTP OCR server client
│ │ └── output/ # Output formatters
│ │ ├── mod.rs
│ │ ├── json.rs
│ │ └── text.rs
│ ├── liteparse-napi/ # Node.js bindings (napi-rs)
│ ├── liteparse-python/ # Python bindings (PyO3 / maturin)
│ ├── liteparse-wasm/ # WASM bindings (wasm-bindgen)
│ ├── pdfium/ # Rust wrapper around PDFium C API
│ └── pdfium-sys/ # PDFium FFI (C → Rust) bindings
├── packages/
│ ├── node/ # npm package: TS wrapper + CLI around native binary
│ │ └── src/
│ │ ├── lib.ts # Public LiteParse class for Node.js
│ │ ├── cli.ts # CLI entry point (commander)
│ │ └── native.ts # Native binary loader
│ ├── python/ # PyPI package: Python wrapper around native binary
│ │ └── liteparse/
│ │ ├── __init__.py
│ │ ├── parser.py # Public LiteParse class for Python
│ │ ├── types.py # Python dataclass types
│ │ └── cli.py # CLI entry point
│ └── wasm/ # WASM npm package
├── ocr/ # Example OCR server implementations
│ ├── easyocr/ # EasyOCR wrapper server
│ └── paddleocr/ # PaddleOCR wrapper server
└── Cargo.toml # Workspace root
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.
- 5d ago First seen · 175 lines · 2,100 tokens per session scan A 70a43abb6894
liteparse AGENTS.md is an instructions file published in the GitHub repository run-llama/liteparse (12,242 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,100 tokens to every session, about $0.0105 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-08-30.
Other instructions, from other repositories
MistralDocAI-mcp AGENTS.md
AGENTS.md instructions for trsdn/MistralDocAI-mcp, covering agent instructions, what this repository is, what this repository is not, layout and setup.
MistralDocAI-mcp copilot-instructions.md
Copilot instructions for trsdn/MistralDocAI-mcp: The instructions for this repository live in AGENTS.md. Read that file. It is tool-neutral and it is the only copy, so this file deliberately restates nothing.
ade-cli CLAUDE.md
Instructions for landing-ai/ade-cli, covering ade-cli, agent skills, issue tracker, triage labels and domain docs.
textbook-to-note CLAUDE.md
Instructions for drpwchen/textbook-to-note, covering claude.md — which audience are you?, working on this repo, spec before code, how much ceremony — decide before you start and the commit guard.
frameproof AGENTS.md
AGENTS.md instructions for edvardgrishin27/frameproof, covering frameproof, установка and одно правило, которое нельзя обходить.
websearch-mcpserver AGENTS.md
Instructions for daidaiJ/websearch-mcpserver, covering agents.md — 智能体协作指南, 项目一句话定位, 技术栈速览, 目录结构与模块职责 and 核心数据流.