Borrowing it
Nothing to install: this file belongs to sidorares/react-x11. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sidorares/react-x11/master/AGENTS.mdgit clone --depth 1 https://github.com/sidorares/react-x11Wrote 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.
[](https://agentmods.dev/instructions/sidorares/react-x11/agents-md)<a href="https://agentmods.dev/instructions/sidorares/react-x11/agents-md"><img src="https://agentmods.dev/badge/instructions/sidorares/react-x11/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.
<a href="https://agentmods.dev/instructions/sidorares/react-x11/agents-md"><img src="https://agentmods.dev/badge/instructions/sidorares/react-x11/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.32484 | $0.32484 |
| Opus 5.5 | $0.12994 | $0.12994 |
| Sonnet 5.5 | $0.06497 | $0.06497 |
| Haiku 4.5 | $0.03248 | $0.03248 |
Grade A, and why
react-x11 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 11d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
would drag in `ws` and `node:child_process`. How it starts
The opening of the file, as written. The whole thing — 2,024 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for AI agents (and new contributors) working on react-x11.
What this project is
A custom React renderer for desktop applications, with react-like ergonomics over four backends:
- X11 — ntk /
node-x11, pure JavaScript
implementations of the X11 protocol, no native bridge. The flagship
target, and the only one with
<foreign>embedding, substructure redirect (examples/wm.jsx) andreact-x11/test. - Cocoa —
src/cocoa/, over the@windowkit/appkitbridge (anoptionalDependency, prebuilt). RealNSWindows, Core Animation compositing, the system menu bar, native control bezels. The default on darwin, sonpm test, the benches and the examples all behave differently there than they did before it existed — check which backend you are measuring.design/macos.mdis the design record;docs/macos.mdis what an app sees. - Wayland —
src/wayland/, the wire protocol in pure JavaScript with a GLES rasterizer of its own (design/wayland.md's Tier D). Opt-in only, never through'auto': X11 stays the default on Linux because the remote case is the flagship reason this project exists and Wayland has no network transparency. - win32 —
src/win32/, over the@windowkit/win32bridge (anoptionalDependency, prebuilt). HWNDs on a UI thread of the bridge's own, a DirectComposition surface per window, Direct2D drawing and DirectWrite text. The default on win32, falling back to X11 when the bridge is absent so a WSLg or Cygwin setup withDISPLAYkeeps working.design/windows.mdis the design record. Young: the examples run, with an IMM32 input method, a UI Automation bridge and most desktop services (tray, notifications, file dialogs, taskbar) in place —docs/windows-integrations.mdis the measured status.
The 2d drawing dialect lives in src/backend/context2d.js and is shared
by the two native bridges: the class takes its native as a constructor
argument and calls nothing else, so one wrapper drives CoreGraphics verbs and
Direct2D verbs alike. Wayland is deliberately not in that family — its
context is a rasterizer that draws the dialect rather than forwarding it,
which is a different layer and not a duplicate.
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.
- 11d ago Changed · +5 lines · +85 tokens per session 59ede0858b4e
- 15d ago Changed · +28 lines · +496 tokens per session 139ad3b7448b
- 17d ago Changed · +62 lines · +1,136 tokens per session a4192147e364
- 18d ago Changed · +18 lines · +325 tokens per session 27ae9c6260ff
- 25d ago Changed · +3 tokens per session e99733b0b895
- 26d ago Changed · +8 lines · +160 tokens per session 041836ad3fb7
- 29d ago Changed · +6 lines · +111 tokens per session c483055d02f8
- 1mo ago Changed · +3 lines · +62 tokens per session 52bf29dcbbc0
- 1mo ago Changed · +5 tokens per session 2561a74d53b5
- 1mo ago First seen · 1,894 lines · 30,101 tokens per session scan A ef262f03c70b
react-x11 AGENTS.md is an instructions file published in the GitHub repository sidorares/react-x11 (265 stars, last pushed yesterday), licensed MIT. It adds 32,484 tokens to every session, about $0.1299 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
react-x11 AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-x11 AGENTS.mdsidorares/react-x11 | Instructions file | 265 | yesterday | MIT | A | 32,484 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |