liteparse: Instructions file for Codex

AGENTS.md

liteparse AGENTS.md is an instructions file for Codex, OpenCode from run-llama/liteparse. It costs 2,131 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

Written for Codex and OpenCode: the file is AGENTS.md.

This is run-llama/liteparse's own configuration. It tells Codex and OpenCode how to work on liteparse 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 liteparse configures →

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,989 stars · on GitHub · developers.llamaindex.ai

Reuse

Borrowing it

Nothing to install: this file belongs to run-llama/liteparse. 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/run-llama/liteparse/main/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/github.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/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 liteparse AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,131 This file is loaded in full into every session.
When invoked 2,131 The same file — it is already loaded in full.
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.02131 $0.02131
Opus 5.5 $0.00852 $0.00852
Sonnet 5.5 $0.00426 $0.00426
Haiku 4.5 $0.00213 $0.00213

Measured 1mo ago against content hash 440c84c99ac9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 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 · 176 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. 1mo ago Changed · +1 lines · +31 tokens per session 440c84c99ac9
  2. 2mo 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,989 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,131 tokens to every session, about $0.0085 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-30.

Related

liteparse AGENTS.md compared with instructions from other repositories

liteparse AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
liteparse AGENTS.mdrun-llama/liteparseInstructions file13k2d agoApache-2.0A2,131Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode