ThreeBrowserStudio: Instructions file for Codex

AGENTS.md

ThreeBrowserStudio AGENTS.md is an instructions file for Codex, OpenCode from SamG-Coder/ThreeBrowserStudio. It costs 397 tokens per session, scanned A, original, MIT.

Contribution rules for ThreeBrowser Studio, an editor where an AI agent authors 3D scenes through MCP and a native WebGPU window shows the live result.

In plain words
What is it for?
Use them when changing the 3D authoring kernel, MCP tools, runtime loading, scene data, release packaging, or generated runtime output.
Why use it?
They protect the product's lightweight design and keep the editable scene document, revisions, validation, and recovery behavior consistent.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/samg-coder/threebrowserstudio/agents-md"><img src="https://agentmods.dev/badge/instructions/samg-coder/threebrowserstudio/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 397 This file is loaded in full into every session.
When invoked 397 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.00397 $0.00397
Opus 5.5 $0.00159 $0.00159
Sonnet 5.5 $0.00079 $0.00079
Haiku 4.5 $0.00040 $0.00040

Measured 2mo ago against content hash 20a57462f54c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ThreeBrowserStudio 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 2mo 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 · 32 lines

What it actually says

ThreeBrowser Studio contributor rules

ThreeBrowser Studio is an LLM-first authoring runtime. MCP is the editor and the native WebGPU window is the shared live viewport. Preserve that product shape: do not grow a conventional inspector-heavy browser UI.

  • Keep this repository standalone and lean. Never copy ThreeBrowser Runtime, Three.js, GTA, Secret River, or sample-game source/assets into it. The Windows release pack may copy already-built host binaries only; it must not vendor Runtime, ThreeC++, or sample source.
  • Resolve and launch the external ThreeBrowser Runtime through scripts/runtime-path.mjs; machine-local paths do not belong in projects.
  • The project-owned typed document is canonical. Three.js objects, UUIDs, generated JavaScript, node-material JSON, and RTX registrations are compiled runtime products only.
  • Every authored mutation goes through the core kernel with exact stable IDs, one revision, idempotency, validation, inverse history, and recovery.
  • Keep the nine MCP tools coarse and stable. Add typed operations or catalog entries before adding more top-level tools.
  • No raw eval, WGSL, GLSL, TSL, or unrestricted code through ordinary MCP mutations. User-authorized trusted project code remains a separate path.
  • Compile candidates before committing and swap visible results only after validation. Keep explicit GPU capture off the ordinary render loop.
  • Add dependencies only when the platform or a small local module cannot do the job. Do not add an app framework or bundle Three.js.
  • Run npm test after changes. For native rendering changes, also run npm run launch, exercise the live bridge, capture the exact window or GPU frame, and inspect the image before claiming completion.

AGENT_RULES.md contains the operating rules sent to models using Studio. DESIGN.md is the architectural contract and phased roadmap.

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. 2mo ago First seen · 32 lines · 397 tokens per session scan A 20a57462f54c

Subscribe to this mod's changes

ThreeBrowserStudio AGENTS.md is an instructions file published in the GitHub repository SamG-Coder/ThreeBrowserStudio (25 stars, last pushed 4d ago), licensed MIT. It adds 397 tokens to every session, about $0.0016 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

ThreeBrowserStudio AGENTS.md compared with instructions from other repositories

ThreeBrowserStudio AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ThreeBrowserStudio AGENTS.mdSamG-Coder/ThreeBrowserStudioInstructions file254d agoMITA397Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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