liteparse AGENTS.md

liteparse AGENTS.md is an instructions file for Codex, OpenCode from run-llama/liteparse. It costs 2,100 tokens per session, scanned A, original, Apache-2.0.

Project instructions for LiteParse, a local Rust library that extracts text and layout information from PDFs and other documents. LiteParse also provides interfaces for Node.js, Python, and WebAssembly.

In plain words
What is it for?
Use it when developing or maintaining LiteParse, including its document parsing, OCR, command-line tool, and language bindings.
Why use it?
It gives a coding agent the project structure, data flow, and main capabilities it needs to make informed changes in the codebase.

Instructions file for CodexOpenCode

About the project

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.

run-llama/liteparse · 12,242 stars · on GitHub

Install

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.

agentmods
npx agentmods add instructions/run-llama/liteparse/agents-md
Clone the repo
git clone --depth 1 https://github.com/run-llama/liteparse

Made for: Codex, 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 liteparse AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/run-llama/liteparse/agents-md.svg)](https://agentmods.dev/instructions/run-llama/liteparse/agents-md)
Your own site
<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>
Per session 2,100 This file is loaded in full into every session.
When invoked 2,100 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02100 $0.02100
Opus 5 $0.01050 $0.01050
Sonnet 5 $0.00420 $0.00420
Haiku 4.5 $0.00210 $0.00210

Measured 5d ago against content hash 70a43abb6894, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 175 lines

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

Read the full file on GitHub · 175 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. 5d ago First seen · 175 lines · 2,100 tokens per session scan A 70a43abb6894

Subscribe to this mod's changes

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.