Paperlab: Instructions file for Codex

AGENTS.md

Paperlab AGENTS.md is an instructions file for Codex, OpenCode from NourMtir0722/Paperlab. It costs 14,989 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Paperlab, a React component that renders realistic, bendable paper with text and images on its surface. React is a JavaScript library for building user interfaces.

In plain words
What is it for?
Useful when adding Paperlab to a React project, configuring paper dimensions and content, choosing a preset, or contributing to the component.
Why use it?
They explain how to install and integrate the component, including its required packages, supported paper types, and important setup details.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nourmtir0722/paperlab/agents-md"><img src="https://agentmods.dev/badge/instructions/nourmtir0722/paperlab/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14,989 This file is loaded in full into every session.
When invoked 14,989 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.14989 $0.14989
Opus 5.5 $0.05996 $0.05996
Sonnet 5.5 $0.02998 $0.02998
Haiku 4.5 $0.01499 $0.01499

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

Security

Grade A, and why

Paperlab 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 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.

Makes network callslowCapability

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

Paperlab renders physical, realistic paper as a React component. Content is a texture on a mesh that genuinely bends — text and imagery curl with perfect continuity. This file is the dense reference for agents integratin
AGENTS.md · 863 lines

How it starts

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

Paperlab — for coding agents

Paperlab renders physical, realistic paper as a React component. Content is a texture on a mesh that genuinely bends — text and imagery curl with perfect continuity. This file is the dense reference for agents integrating Paperlab into a project or contributing to this repo.

Reading as a human rather than as an agent? The reference is the same catalogue with everything rendering live.

Integrating Paperlab into a project

npm i paperlab three @react-three/fiber gsap

Peer requirements: React ≥ 19, three ≥ 0.160. TypeScript types ship with the package.

import { Paper } from 'paperlab'

// Simplest: a built-in preset. <Paper> owns its own <Canvas> and fills its
// parent — THE PARENT MUST HAVE A HEIGHT or the canvas renders 0px tall.
<Paper preset="receipt-unroll" />

// Or configure inline (all fields optional, validated by zod):
<Paper
  sheet={{ width: 1, height: 2.6, thickness: 0.3 }}
  stock="thermal"          // printer | thermal | kraft | newsprint | vellum | photo-gloss | sticker
  content={{ type: 'receipt', store: 'acme.dev', items: [{ name: 'Widget', price: 9.99 }] }}
  behavior={{ type: 'unroll', progress: 0.6, tightness: 0.5, sway: 0.3 }}
  surface={{ grain: 0.3, deckle: { edges: ['bottom'], roughness: 0.5 } }}
  physics="none"           // 'none' | float | tumble | dangle | taped | breeze | 'cloth' | 'strip' | {type:…}
  interactive              // drag handles / grab cloth
  autoplay                 // play the behavior loop on mount
/>

Inside an existing React Three Fiber scene use <PaperMesh /> (same props, no Canvas). For galleries use <PaperField />:

import { PaperField } from 'paperlab'

<PaperField
  images={['/a.jpg', '/b.jpg', '/c.jpg']}
  preset="photo-print"
  layout="ring"            // ring | fan | spread | pile | wall | spill | sweep | book | accordion | rack | colonnade | sheet
  layoutOptions={{ radius: 3, tiltDeg: 8 }}
  motion={{ driver: 'autoplay', speed: 0.5 }}   // autoplay | drag | none
  entrance={{ type: 'rise', stagger: 0.06 }}    // rise | scatter | none
/>

Read the full file on GitHub · 863 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 · +27 lines · +1,143 tokens per session ff3875e23650
  2. 1mo ago Changed · -8 lines · +106 tokens per session 7c735dadb04c
  3. 1mo ago Changed · +28 lines · +498 tokens per session 3dcbc40773d4
  4. 2mo ago Changed · +346 lines · +6,026 tokens per session 8e66d999510f
  5. 2mo ago First seen · 470 lines · 7,216 tokens per session scan A 11aadc208d1f

Subscribe to this mod's changes

Paperlab AGENTS.md is an instructions file published in the GitHub repository NourMtir0722/Paperlab (67 stars, last pushed 3d ago), licensed Apache-2.0. It adds 14,989 tokens to every session, about $0.0600 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-30.

Related

Paperlab AGENTS.md compared with instructions from other repositories

Paperlab AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Paperlab AGENTS.mdNourMtir0722/PaperlabInstructions file673d agoApache-2.0A14,989Codex, 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