Borrowing it
Nothing to install: this file belongs to Singtaa/OneJS. 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/Singtaa/OneJS/main/AGENTS.mdgit clone --depth 1 https://github.com/Singtaa/OneJSWrote 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/singtaa/onejs/agents-md)<a href="https://agentmods.dev/instructions/singtaa/onejs/agents-md"><img src="https://agentmods.dev/badge/instructions/singtaa/onejs/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/singtaa/onejs/agents-md"><img src="https://agentmods.dev/badge/instructions/singtaa/onejs/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.04277 | $0.04277 |
| Opus 5.5 | $0.01711 | $0.01711 |
| Sonnet 5.5 | $0.00855 | $0.00855 |
| Haiku 4.5 | $0.00428 | $0.00428 |
Grade A, and why
OneJS 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OneJS v3: Agent Guide
Before adding anything that crosses between C# and JavaScript, read DESIGN.md. It states what belongs on each side, the four rules a wrapper has to satisfy, and why an interpreter on native makes it a portability question rather than a performance one.
Condensed facts for AI agents working with OneJS. Full documentation: https://onejs.com/docs
OneJS runs React 19 + TypeScript UIs inside Unity. TSX compiles with esbuild into a single bundle that the JSRunner component executes through QuickJS (or the browser's own JS engine on WebGL), rendering through UI Toolkit. No webview, no DOM.
Requirements
- Unity 6000.3+ (Unity 6.3)
- Node.js 18+ on the dev machine
Install
Package Manager: + > Add package from git URL:
https://github.com/Singtaa/OneJS.git
Or clone into Assets: git clone https://github.com/Singtaa/OneJS.git. Package id: com.singtaa.onejs. No other Unity packages or scoped registries required.
Project setup
- Add the
JSRunnercomponent to a GameObject in a saved scene. - Click Initialize Project in its inspector. This creates, next to the scene:
{SceneDir}/{SceneName}/{GameObjectName}/
├── ~/ # TS/TSX source (the ~ suffix keeps Unity from importing it)
│ ├── index.tsx # entry point
│ ├── package.json, tsconfig.json, esbuild.config.mjs
│ └── styles/main.uss, types/global.d.ts, AGENTS.md, CLAUDE.md, .gitignore
├── PanelSettings.asset # project marker: the one mandatory JSRunner field
├── UIDocument.uxml
├── app.js.txt # built bundle (esbuild writes ../app.js.txt)
└── app.js.map.txt
then runs npm install and npm run build automatically.
Key model:
- Panel Settings is the project marker. The folder containing the assigned PanelSettings asset defines the project; the bundle is always loaded from
{that folder}/app.js.txt. A folder is considered valid when it contains~/orapp.js.txt. - Or a root cart. A runner with Cart set runs a play.onejs.com cart from a folder at the project root (
<root>/*/oj.json), linked by itsoj.jsonname; its PanelSettings is then only panel settings, its editor bundle isLibrary/OneJS/Carts/{folder}/app.js.txt, and Unity writes nothing inside the cart. See the setup skill's root cart workflow. - Do not add a UIDocument. JSRunner adds and wires one at runtime (and an EventSystem if missing). On Unity 6.5+, do not substitute the new
PanelRenderereither: it never attaches a panel outside Play mode, so edit-mode preview would render nothing. - Edit-mode preview: JSRunner renders the UI in the Game view without Play mode whenever Panel Settings is valid and
app.js.txtexists, ticking at 30 Hz. The Scene view's OneJS overlay decides which previews tick: in the default Auto mode only the selected runner (with nothing selected, the one nearest the Scene view camera), so an unselected runner's timers freeze while its hot reload keeps working. Play Mode is never gated: every runner ticks every frame, as in a player build. - Scaffolding never overwrites existing files, and writes each default file once:
~/.onejs/scaffoldrecords what the app was given, so a deleted file stays deleted until Restore in the Build tab brings it back. ~/.onejs/holds small per-app OneJS state the project commits, never caches or machine-local files.
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.
- 3d ago Changed · -2 lines · -227 tokens per session 66e015c319b0
- 5d ago Changed · +93 tokens per session 26ca1ed87d31
- 6d ago Changed · +90 tokens per session 9315c9863ee6
- 20d ago Changed · +16 tokens per session 138cbdbf2ee0
- 23d ago Changed · +1 lines · +93 tokens per session 5658c3032dc0
- 27d ago Changed · +1 lines · +52 tokens per session 7bf4ac215902
- 28d ago Changed · +52 tokens per session 4b1c6b8f0690
- 1mo ago Changed · +133 tokens per session 36879517d8b7
- 1mo ago Changed · +146 tokens per session 0d72c77cc874
- 1mo ago First seen · 184 lines · 3,829 tokens per session scan A d2c38c5ece08
OneJS AGENTS.md is an instructions file published in the GitHub repository Singtaa/OneJS (362 stars, last pushed yesterday), licensed MIT. It adds 4,277 tokens to every session, about $0.0171 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.
OneJS AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| OneJS AGENTS.mdSingtaa/OneJS | Instructions file | 362 | yesterday | MIT | A | 4,277 | 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 | yesterday | 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 |