react-x11: Instructions file for Codex

AGENTS.md

react-x11 AGENTS.md is an instructions file for Codex, OpenCode from sidorares/react-x11. It costs 32,484 tokens per session, scanned A, original, MIT.

Repository guidance for coding agents and contributors working on react-x11, a React renderer that draws interfaces in X11 desktop windows using JavaScript.

In plain words
What is it for?
Use it when modifying the renderer, its X11 window handling, layout, events, or development files.
Why use it?
It explains the project’s structure and rendering rules so changes fit its architecture and avoid incorrect assumptions about how windows and layout work.

Instructions file for CodexOpenCode

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

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/sidorares/react-x11/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sidorares/react-x11

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 react-x11 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sidorares/react-x11/agents-md/github.svg)](https://agentmods.dev/instructions/sidorares/react-x11/agents-md)
Your own site
<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.

agentmods 80×15 button for react-x11 AGENTS.md

Your own site · 80×15
<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>
Per session 32,484 This file is loaded in full into every session.
When invoked 32,484 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.32484 $0.32484
Opus 5.5 $0.12994 $0.12994
Sonnet 5.5 $0.06497 $0.06497
Haiku 4.5 $0.03248 $0.03248

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

Security

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`.
AGENTS.md · 2,024 lines

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) and react-x11/test.
  • Cocoa — src/cocoa/, over the @windowkit/appkit bridge (an optionalDependency, prebuilt). Real NSWindows, Core Animation compositing, the system menu bar, native control bezels. The default on darwin, so npm test, the benches and the examples all behave differently there than they did before it existed — check which backend you are measuring. design/macos.md is the design record; docs/macos.md is 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/win32 bridge (an optionalDependency, 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 with DISPLAY keeps working. design/windows.md is 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.md is 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.

Read the full file on GitHub · 2,024 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. 11d ago Changed · +5 lines · +85 tokens per session 59ede0858b4e
  2. 15d ago Changed · +28 lines · +496 tokens per session 139ad3b7448b
  3. 17d ago Changed · +62 lines · +1,136 tokens per session a4192147e364
  4. 18d ago Changed · +18 lines · +325 tokens per session 27ae9c6260ff
  5. 25d ago Changed · +3 tokens per session e99733b0b895
  6. 26d ago Changed · +8 lines · +160 tokens per session 041836ad3fb7
  7. 29d ago Changed · +6 lines · +111 tokens per session c483055d02f8
  8. 1mo ago Changed · +3 lines · +62 tokens per session 52bf29dcbbc0
  9. 1mo ago Changed · +5 tokens per session 2561a74d53b5
  10. 1mo ago First seen · 1,894 lines · 30,101 tokens per session scan A ef262f03c70b

Subscribe to this mod's changes

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.

Related

react-x11 AGENTS.md compared with instructions from other repositories

react-x11 AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-x11 AGENTS.mdsidorares/react-x11Instructions file265yesterdayMITA32,484Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode