renderoni AGENTS.md

A set of instructions for coding agents working in the Renderoni codebase, a toolkit for 3D web games. It defines the project’s architecture, import conventions, verification commands, and rules for simulation code.

In plain words
What is it for?
Use it when an agent must modify Renderoni code, follow its layered architecture, use its package exports correctly, or run the project’s checks and builds.
Why use it?
It keeps automated code changes consistent with Renderoni’s design and helps prevent simulation and build errors. For example, it requires controlled clocks and random-number generators for repeatable results.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/elemarin/renderoni/agents-md
Clone the repo
git clone --depth 1 https://github.com/elemarin/renderoni

Made for: Codex, OpenCode.

Per session 1,082 This file is loaded in full into every session.
When invoked 1,082 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01082 $0.01082
Opus 5 $0.00541 $0.00541
Sonnet 5 $0.00216 $0.00216
Haiku 4.5 $0.00108 $0.00108

Measured yesterday against content hash 18b2cfebc9d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

renderoni 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 yesterday.

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 · 81 lines

How it starts

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

🍝 Renderoni Agent Guidelines (AGENTS.md)

Universal instructions for AI coding agents (Antigravity, Claude Code, Cursor, Windsurf, Copilot) working in the Renderoni codebase.


🏛️ Architecture & Kernel Rules

Renderoni is structured in 4 strict hierarchical layers:

  • L0: Deterministic Kernel (src/core/): Integer tick clock (clock.ts), seeded PRNG streams (prng.ts), dual-buffer transform pipeline (transform-buffer.ts), XXH3 state hashing (hashing.ts), resource ownership matrix (ownership.ts), and diagnostics (diagnostics.ts).
    • Rule 1: NEVER call Math.random(), Date.now(), performance.now(), or requestAnimationFrame() inside simulation logic or entity updates. Always use engine.prng and engine.clock.tick.
    • Rule 2: NEVER bypass the dual-buffer transform pipeline. Write physics transforms into canonical buffer slots, never directly into render scene graphs.
  • L1: Batteries & Subsystems (src/presets/, src/animation/, src/audio/, src/vfx/, src/ui/, src/scene/): High-level declarative presets (body, sensor, light, kccPlayer, dynamicPlayer, proceduralModel) and compact scene inventories for prompt → img2threejs factories.
  • L2: Agent Tooling & MCP (src/mcp/, src/testing/): Stdio Model Context Protocol server, custom Vitest matchers, and headless CLI verification.
  • L3: Web Application & Demos (src/demo/, index.html): Interactive playground and multi-archetype web showcases.

📦 Subpath Exports & Import Conventions

Always use subpath imports rather than deep file path hacks:

import { createRenderoni, RenderoniEngine } from 'renderoni';
import { body, kccPlayer, sensor, light, definePreset, proceduralModel } from 'renderoni/presets';
import { mountSceneInventory, parseSceneInventory } from 'renderoni/scene';
import { audio } from 'renderoni/audio';
import { animation } from 'renderoni/animation';
import { vfx } from 'renderoni/vfx';
import { ui } from 'renderoni/ui';
import { createMCPServer } from 'renderoni/mcp';
import 'renderoni/testing/matchers';

Read the full file on GitHub · 81 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. yesterday First seen · 81 lines · 1,082 tokens per session scan A 18b2cfebc9d2

Subscribe to this mod's changes

renderoni AGENTS.md is an instructions file published in the GitHub repository elemarin/renderoni (0 stars, last pushed 4d ago), licensed MIT. It adds 1,082 tokens to every session, about $0.0054 per session on Opus 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-31.