AirFerry: Instructions file for Codex

AGENTS.md

AirFerry AGENTS.md is an instructions file for Codex, OpenCode from UR-SillyB/AirFerry. It costs 38,035 tokens per session, scanned A, original, MIT.

A repository guide for AI coding agents working on the AirFerry project. AirFerry sends files offline as a stream of QR-code images from a browser extension to an Android app, using shared Rust code.

In plain words
What is it for?
It helps agents find code, build the Rust core and connected apps, follow project conventions, troubleshoot problems, and update documentation when code changes.
Why use it?
It gives agents a map of the repository, build commands, technical rules, and known documentation pitfalls. This reduces the chance of changing the wrong part or relying on outdated instructions.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **复用 sender 源码,零代码重复**:web 端是薄入口(`src/main.tsx` 只 mount sender 的 `App`),通过 Vite alias `@/ → ../sender/src/` 直接跨工程 import `apps/sender/src/` 的全部页面/组件/worker/wasm.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ur-sillyb/airferry/agents-md"><img src="https://agentmods.dev/badge/instructions/ur-sillyb/airferry/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38,035 This file is loaded in full into every session.
When invoked 38,035 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.38035 $0.38035
Opus 5.5 $0.15214 $0.15214
Sonnet 5.5 $0.07607 $0.07607
Haiku 4.5 $0.03803 $0.03803

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

Security

Grade A, and why

AirFerry 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 4d 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 · 632 lines

How it starts

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

AGENTS.md — AI 代理操作手册

本文是给 AI 代理(以及人类开发者)的导航 + 操作索引:怎么构建、怎么定位代码、怎么排错、哪些坑别踩。 本文不重复 docs/*.md 的细节,每条都指向权威来源。跨端不变量的位级规格见 docs/SPEC.md。 遇到文档与代码冲突时,一律以代码为准(见下方「文档与代码偏差清单」)。 当本文与 docs/SPEC.md 互相矛盾时(如默认值、常量、行号),先去读对应权威源代码裁决——两份文档都可能滞后,切勿仅凭其中一份下结论。 每次改动代码后,必须同步更新相关文档:改动若涉及常量、默认值、行号、签名、帧格式、文件路径、构建步骤等任一被文档引用的事实,同一提交内回写 AGENTS.md / docs/*.md 的对应位置,勿留滞后(本次审计即是文档滞后于代码的教训)。

项目一句话

AirFerry:完全离线的光学文件传输。发送端把文件编成二维码视频流在屏幕上连续播放,也可由 Python 包输出 MP4;接收端用摄像头或屏幕捕获扫描恢复文件。各端共享同一套 Rust 核心库(WASM、Android Native .so、Windows DLL、Python/PyO3 扩展),编解码逻辑数学上一致。零运行期网络依赖、单向信道、无握手。


1. 仓库布局

AirFerry/
├── core/                       # Rust 协议核心(三个核心 crate;workspace 另含 apps/python)
│   ├── raptorq-core/           #   RFC 6330 RaptorQ 编解码封装(纯逻辑)
│   ├── qr-protocol/            #   帧格式 / 分块 / 压缩 / CRC / QR 矩阵 / 会话 ID
│   ├── transfer-engine/        #   编排 / 状态机 / 进度 / 断点 / 大文件分段组装 + WASM&JNI&C-ABI 绑定
│   └── zxing-decoder/          #   Windows ZXing-C++ 解码核心(非 Cargo crate)
├── apps/
│   ├── sender/                 # 浏览器扩展(Plasmo + React + TS + WASM)
│   │   ├── src/                #   TS 源码(页面 / WASM 桥 / 压缩 worker / background 图标点击直跳)
│   │   ├── wasm-pkg/           #   当前扩展目标的临时 WASM 快照(generated, git-ignored)
│   │   ├── assets/             #   扩展图标
│   │   └── scripts/            #   构建 / manifest 修正 / lzma-wasm 提取
│   ├── web/                    # 网页端(Vite + React + TS)— 直接复用 sender/src 源码,无代码重复
│   │   ├── src/main.tsx        #   薄入口:mount sender 的 App(options.tsx)
│   │   ├── scripts/            #   prepare-wasm(锁定并复制 sender simd 包 + 拷 zstd)/ lzma 提取
│   │   └── public/             #   wasm-zstd.wasm(worker 运行时 fetch,构建时拷入)
│   ├── scanner/                # Android App(Kotlin + CameraX + ZXing-C++)
│   │   └── app/src/main/
│   │       ├── java/com/airferry/app/   # Kotlin
│   │       ├── cpp/                     # ZXing-C++ JNI 桥(CMake)
│   │       └── jniLibs/arm64-v8a/       # Rust .so(cargo-ndk 产物, git-ignored)
│   ├── python/                 # Python 文件转 MP4(PyO3 + Pillow + 本地 FFmpeg;独立包版本)
│   └── windows/                # Windows App(C# WPF + OpenCvSharp + ZXing-C++)
│       ├── native/                     #   Windows ZXing C ABI 包装器 + CMake
│       ├── AirFerry.Windows/            #   主项目(Views/ViewModels/Models/Scan/Bundle/Native/Services/Themes;WPF-UI Fluent 主题)
│       │   └── runtime/                 #   transfer_engine.dll + airferry_zxing.dll(git-ignored)
│       └── AirFerry.Windows.Tests/      #   协议层单元测试(net8.0,跨平台可跑)
├── docs/                       # 协议 / 架构 / API / 构建说明(中文)
├── scripts/build-all.sh        # 一键构建脚本(含 windows 子命令)
├── scripts/build-windows.ps1   # Windows 端原生 PowerShell 构建脚本(首选)
├── Cargo.toml                  # Rust workspace 根配置
└── dist/                       # 发布产物 + 签名密钥(git-ignored)

Read the full file on GitHub · 632 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. 4d ago Changed · +1 lines · +252 tokens per session 9f78d8429e39
  2. 6d ago Changed · +35 lines · +2,694 tokens per session 5000ce063b72
  3. 2mo ago First seen · 596 lines · 35,089 tokens per session scan A c0050226f4f1

Subscribe to this mod's changes

AirFerry AGENTS.md is an instructions file published in the GitHub repository UR-SillyB/AirFerry (160 stars, last pushed 4d ago), licensed MIT. It adds 38,035 tokens to every session, about $0.1521 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

AirFerry AGENTS.md compared with instructions from other repositories

AirFerry AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
AirFerry AGENTS.mdUR-SillyB/AirFerryInstructions file1604d agoMITA38,035Codex, 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 file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot