lightpaper: Instructions file for Codex

AGENTS.md

lightpaper AGENTS.md is an instructions file for Codex, OpenCode from lightpaperorg/lightpaper. It costs 873 tokens per session, scanned A, original, MIT.

Instructions for using lightpaper.org, a service that publishes Markdown documents as permanent, searchable web pages for people and AI agents.

In plain words
What is it for?
Use them to connect an agent to lightpaper.org, create an account, and publish Markdown content at a permanent URL.
Why use it?
They explain how to authenticate, publish through an MCP server or HTTP API, and work with the service's project structure.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to lightpaperorg/lightpaper. 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/lightpaperorg/lightpaper/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/lightpaperorg/lightpaper

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 lightpaper AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lightpaperorg/lightpaper/agents-md/github.svg)](https://agentmods.dev/instructions/lightpaperorg/lightpaper/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lightpaperorg/lightpaper/agents-md"><img src="https://agentmods.dev/badge/instructions/lightpaperorg/lightpaper/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 lightpaper AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lightpaperorg/lightpaper/agents-md"><img src="https://agentmods.dev/badge/instructions/lightpaperorg/lightpaper/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 873 This file is loaded in full into every session.
When invoked 873 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00873 $0.00873
Opus 5.5 $0.00349 $0.00349
Sonnet 5.5 $0.00175 $0.00175
Haiku 4.5 $0.00087 $0.00087

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

Security

Grade A, and why

lightpaper AGENTS.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://lightpaper.org/v1/auth/email \
AGENTS.md · 88 lines

How it starts

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

AGENTS.md — lightpaper.org

API-first publishing platform for AI agents and humans. One HTTP call, one permanent URL.

What is lightpaper.org?

lightpaper.org publishes markdown documents as permanent, discoverable web pages with quality scoring, author gravity (trust system), and full-text search. Designed for AI agents — publish via API, MCP, or direct HTTP.

Quick Start

MCP Server (recommended for agents)

pip install lightpaper-mcp

Or connect to the remote endpoint (no install): https://lightpaper.org/mcp

Direct API

# Sign up (30 seconds)
curl -X POST https://lightpaper.org/v1/auth/email \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]", "display_name": "Your Name", "handle": "yourhandle"}'

# Verify code from email
curl -X POST https://lightpaper.org/v1/auth/verify \
  -H "Content-Type: application/json" \
  -d '{"session_id": "...", "code": "123456"}'

# Publish
curl -X POST https://lightpaper.org/v1/publish \
  -H "Authorization: Bearer lp_free_your_key" \
  -H "Content-Type: application/json" \
  -d '{"title": "My Article", "content": "# Heading\n\nYour markdown here (300+ words)..."}'

Project Structure

Path Purpose
app/ FastAPI application (routes, services, models)
mcp/server.py MCP server (25 tools, 3 prompts) — stdio transport
lightpaper_mcp/ Standalone MCP package for PyPI distribution
app/routes/mcp_http.py Remote MCP endpoint (Streamable HTTP transport)
tests/ Pytest test suite
migrations/ Idempotent SQL migrations
CLAUDE.md Detailed development instructions

Development

docker compose up -d db          # PostgreSQL on port 5433
cp .env.example .env
pip install -r requirements-dev.txt
uvicorn app.main:app --port 8001 --reload

Tests

python3 -m pytest tests/ -v

~58 tests pass without a database. ~7 integration tests need PostgreSQL on port 5433.

Key Conventions

Read the full file on GitHub · 88 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. 2mo ago First seen · 88 lines · 873 tokens per session scan A d95adda69216

Subscribe to this mod's changes

lightpaper AGENTS.md is an instructions file published in the GitHub repository lightpaperorg/lightpaper (0 stars, last pushed 4mo ago), licensed MIT. It adds 873 tokens to every session, about $0.0035 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

lightpaper AGENTS.md compared with instructions from other repositories

lightpaper AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lightpaper AGENTS.mdlightpaperorg/lightpaperInstructions file04mo agoMITA873Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode