paper-cranes: Instructions file for Codex

AGENTS.md

paper-cranes AGENTS.md is an instructions file for Codex, OpenCode from loqwai/paper-cranes. It costs 15,942 tokens per session, scanned A, a copy of paper-cranes CLAUDE.md, BSD-3-Clause.

Project instructions for Paper Cranes, a browser-based music visualizer that analyzes microphone audio and uses it to drive WebGL graphics and LED lights. They describe the system's architecture and important source files.

In plain words
What is it for?
They are for working on audio analysis, browser visualizations, mobile support, LED control, and related project components.
Why use it?
They give a coding agent the project context it needs before changing this specialized audio-and-visual system. They can reduce mistakes caused by not knowing how audio processing, graphics, and hardware are connected.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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 paper-cranes AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/loqwai/paper-cranes/agents-md"><img src="https://agentmods.dev/badge/instructions/loqwai/paper-cranes/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15,942 This file is loaded in full into every session.
When invoked 15,942 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 95% copy Near-identical to another mod 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.15942 $0.15942
Opus 5.5 $0.06377 $0.06377
Sonnet 5.5 $0.03188 $0.03188
Haiku 4.5 $0.01594 $0.01594

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

Security

Grade A, and why

paper-cranes 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 8d 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.

coordinator role: every violation feels individually too small to delegate — one `curl` to check a
Origin

This is a copy

95% identical to paper-cranes CLAUDE.md — 1,047 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 1,046 lines

How it starts

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

Paper Cranes / Beadfamous - Music Visualization System

Project Overview

A real-time browser-based music visualization system that:

  • Performs advanced audio analysis from microphone input
  • Drives GPU-accelerated WebGL visualizations
  • Controls LED lights through screen scraping
  • Works on mobile devices
  • Supports physical bead bracelets that link to specific visualizations

Architecture

Audio Processing Pipeline

Microphone → MediaStream → AudioContext → WindowNode (Hanning) → FFT Analyzer → Workers → Features → Shader

Key Components

1. AudioProcessor (src/audio/AudioProcessor.js)
  • FFT Size: 4096 (optimized from 32768 for ~85ms latency)
  • Smoothing: the EMA weight on each new worker value (?smoothing=; default 0.15 for both the mic and audio_file). Higher is more responsive and more jittery; lower is smoother and later. *Normalized/*ZScore use 1.5x that weight, capped at 1
  • Analyzer Smoothing: 0.4 smoothingTimeConstant
  • Onsets: OnsetProcessor reads the raw spectrum every display frame, outside the workers and the EMA, and publishes onsetKick/Snare/Hat/Full plus Trigger, Strength and Age. Its detector is hypnosound's makeOnsetDetector/makeOnsetEnvelope (2.1.0 on). It counts frames, so triggers misfire more on 120/144 Hz displays. See docs/onset-detection.md
  • Uses Web Workers for parallel feature extraction
  • Extracts 16 audio features from hypnosound 2.1.0. The browser loads it from esm.sh, pinned in src/audio/analyzer.js (workers) and the vite.config.js hypnosound alias (main thread). Bump both pins and package.json together; a mismatch once left the main thread on 1.10.2 while the workers ran 1.14.0
2. WorkerRPC (src/audio/WorkerRPC.js)
  • One worker per feature, fire-and-forget: each frame posts the FFT, and getResult() returns the latest reply
  • No timeout: a slow or dead worker leaves its last value in place
  • Replaces any non-finite stat with 0 before it reaches the shader

Read the full file on GitHub · 1,046 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. 8d ago Changed · +154 lines · +5,149 tokens per session ba85be418100
  2. 1mo ago First seen · 892 lines · 10,793 tokens per session scan A 086e9450f1bc

Subscribe to this mod's changes

paper-cranes AGENTS.md is an instructions file published in the GitHub repository loqwai/paper-cranes (7 stars, last pushed 6d ago), licensed BSD-3-Clause. It adds 15,942 tokens to every session, about $0.0638 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 95% identical to paper-cranes CLAUDE.md, differing in 1,047 lines, and is treated as a copy.

Related

paper-cranes AGENTS.md compared with instructions from other repositories

paper-cranes AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
paper-cranes AGENTS.mdloqwai/paper-cranesInstructions file76d agoBSD-3-ClauseA15,942Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot