editor AGENTS.md

A project guide for coding agents working on pascalorg/editor, an open-source 3D editor made of several related packages and apps. It explains the repository layout, boundaries between parts, and where to find more rules.

In plain words
What is it for?
Use it to understand the repository before changing code, find the right package or documentation, and follow the project’s rules for shared packages, apps, and skills.
Why use it?
It gives the agent the project context needed to make architecture-sensitive changes without putting code in the wrong package or breaking how the parts are connected.

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/pascalorg/editor/agents-md
Clone the repo
git clone --depth 1 https://github.com/pascalorg/editor

Made for: Codex, OpenCode.

Per session 878 This file is loaded in full into every session.
When invoked 878 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.00878 $0.00878
Opus 5 $0.00439 $0.00439
Sonnet 5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured 2d ago against content hash 156439803a35, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

editor 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 2d 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 · 53 lines

How it starts

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

Agent Instructions — pascalorg/editor

Public, open-source home of @pascal-app/{core,viewer,editor,mcp} and the standalone editor app. Consumed both as npm packages and (in pascalorg/private-editor) as a git submodule.

Repo Shape

Path Purpose
packages/core Scene graph, node schemas, stores, event bus, core systems — pure logic, no Three.js
packages/viewer Standalone 3D canvas: renderers, viewer systems, presentation state
packages/editor Editor UI components reused by the standalone app and embedders
packages/mcp MCP server and scene storage adapters
apps/editor Standalone editor app — composes viewer + editor + tools

Where to look

  • Architecture ruleswiki/architecture/ (read on demand; index in wiki/architecture/README.md).
  • Skills (ready workflows).agents/skills/<name>/SKILL.md. Same content is reachable as .claude/skills/, .cursor/skills/, .codex/skills/ (symlinks to .agents/skills/).
  • Repo orientation for humansREADME.md, SETUP.md, CONTRIBUTING.md.

CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md are symlinks to this file. Codex reads this file directly.

Layer Boundaries (read once, internalise)

  • packages/core owns domain data and pure logic. It must not import Three.js, packages/viewer, apps/editor, rendering/UI concepts, tools, modes, phases, or view-specific concepts such as floorplan or paint preview.
  • packages/viewer owns the standalone 3D canvas, renderers, viewer systems, and genuine presentation state. It must not know about useEditor, editor tools, phases, modes, paint mode, floorplan state, or editor-only presentation vocabulary.
  • apps/editor owns the editing experience: tools, useEditor, panels, floorplan helpers, paint mode, keyboard shortcuts, command palette, action menus, cursor badges, and editor-only overlays. Editor features are injected into <Viewer> via props and children.

Read the full file on GitHub · 53 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. 2d ago First seen · 53 lines · 878 tokens per session scan A 156439803a35

Subscribe to this mod's changes

editor AGENTS.md is an instructions file published in the GitHub repository pascalorg/editor (21,769 stars, last pushed 3d ago), licensed MIT. It adds 878 tokens to every session, about $0.0044 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-30.

Related

Other instructions, from other repositories