Skip to content
Agentmart
Submit a tool

AGENTS.md · sceneview/sceneview

AGENTS.md from sceneview/sceneview: 142 lines covering Using SceneView in your own project, Your role, Git — you do not own it, Secrets and more.

Template by sceneview

IndexedApache-2.0★ 1,348
Write a review

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/sceneview/sceneview/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that sceneview/sceneview (1,348 stars) keeps for coding agents. It has 142 lines in 8 sections: Using SceneView in your own project; Your role; Git — you do not own it; Secrets; Hard technical rules; Modules; Verification; Reporting back. Use it as a model for your own project's instructions.

Use cases: mobile-development, frontend-development

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
142 lines
File
AGENTS.md

Sections

  1. Using SceneView in your own project
  2. Your role
  3. Git — you do not own it
  4. Secrets
  5. Hard technical rules
  6. Modules
  7. Verification
  8. Reporting back

First lines (shown under the repo's Apache-2.0 license)

# AGENTS.md — conventions for delegated coding agents

This file is read automatically by every assistant that honours the `AGENTS.md`
convention — Codex, Junie, Cline, Kilo Code and others — when they work **in a
checkout of this repository**. It carries the rules a delegated developer must
respect.

It is **not** a project overview. The overview is [`llms.txt`](llms.txt), which
is tool-neutral and the file to read first. `CLAUDE.md`, `.cursorrules`,
`.windsurfrules` and `.github/copilot-instructions.md` are per-tool mirrors of
the same rules, kept for assistants that only load their own filename — none of
them is the canonical copy, and none says anything the tool-neutral files do not.

**If you are here to build an app *with* SceneView rather than to change
SceneView itself, you want the next section, not the rest of this file.**

## Using SceneView in your own project

Everything below is canonical and kept in lock-step with the release; nothing is
duplicated here, so nothing here can go stale against it.

| You need | Read |
|---|---|
| Dependencies, min SDK, Kotlin version | [`llms.txt`](llms.txt) § *Setup* — the current Android artifact version, minSdk, Kotlin version and Apple SPM requirement, all kept in sync with the release |
| A minimal Android, iOS and Web example, side by side | [`README.md`](README.md) § *Quick look* |
| Every node composable, with signatures and gotchas | [`docs/docs/nodes.md`](docs/docs/nodes.md) — also at <https://sceneview.github.io/docs/nodes/> |
| **Common mistakes**, with symptom and fix | [`docs/docs/nodes.md` § *Common mistakes*](docs/docs/nodes.md#common-mistakes) |
| Migrating from Sceneform | [`docs/docs/migration.md`](docs/docs/migration.md) — the full guide. Root `MIGRATION.md` is only a pointer to it |
| The full API reference, one file | <https://sceneview.github.io/llms.txt> |

Version numbers above are the only ones this file states, and they are the three
a generated `build.gradle.kts` gets wrong most often. Everything else: follow the
link.

### When SceneView is not the right choice

Say so rather than reaching for it. It is the wrong tool when:

- **You are building a game.** SceneView has no scene editor, no physics
  authoring, no asset pipeline and no animation state machine. Unity or Unreal.
- **The user only needs to look at one model, with no custom UI.** Android's
  Scene Viewer intent and iOS Quick Look are already installed on the device and
  cost you nothing.
- **You need control of the render pipeline** — custom passes, compute, your own
  material system. Use Filament or RealityKit directly; SceneView is the
  high-level layer above them and deliberately hides that.
- **The target is a browser and you need broad support today.** The Web target is
  Alpha and needs WebGL2/WASM; `<model-viewer>` is the safer answer for a plain
  embedded viewer.
- **You need a platform SceneView does not reach** — Windows, Linux, or Android
  below API 24.

Platform maturity is in [`README.md`](README.md) § *Platforms*: Android is
Stable; iOS, Web, Desktop, TV, Flutter, React Native and Compose Multiplatform
are Alpha. Do not present an Alpha target as production-ready.

---

The rest of this file applies to changing SceneView itself.

**SceneView is an AI-first SDK.** Its purpose is to let an AI generate correct
3D/AR Compose code on the first try. Every API, doc and sample is judged by:
*can an AI read this and emit working code?*

## Your role

You are a **delegated developer**. Whichever session delegated to you is the lead
developer and owns architecture, integration and Git. You implement, investigate,
test and critique inside the scope you were given.

## Git — you do not own it

- **Never `git commit`, `git push`, `git merge`, `git rebase` or `git checkout`
  another branch.** Leave your work in the working tree; the lead session
  inspects the diff and integrates it.
- Never touch `.git/config`, remotes, tags or worktrees.
- Never revert or discard changes you did not make yourself in this session —
  uncommitted work you did not author may belong to another session.
- Stay inside the directory you were given. It is usually a dedicated worktree
  precisely so that a parallel session is not disturbed.

## Secrets

Never read, print, copy or commit credentials. Specifically off limits:
`~/.codex/auth.json`, `~/.claude/`, `~/.ssh/`, `.env*`, keystores, `*.jks`,
`*.p12`, `*.mobileprovision`, anything under a password manager path. If a task
seems to require a secret, stop and say so instead of improvising.

## Hard technical rules

- **Filament JNI calls run on the main thread.** Never call
  `modelLoader.createModel*` or `materialLoader.*` from a background coroutine.
  In composables, `rememberModelInstance` already handles it.
- **Never hand-edit a generated file** — `gpt/knowledge-*.md`, every
  `CREDITS.md`, and `CHANGELOG.md` are generated and gated. Edit the source or
  the generator instead.
- **Never hand-edit `CHANGELOG.md`.** One fragment per change:
  `changelog.d/<issue-or-pr>-<slug>.md`, starting with a
  `<!-- category: Fixed -->` tag. See `changelog.d/README.md`.
- If `gradle/libs.versions.toml` bumps `filament`, `filamentWebsite` or
  `filamentWeb`, the matching `.filamat` blobs must be recompiled in the same
  change with the matching `matc` — a split version pair crashed 10 demos at
  runtime in v4.1.0. See `CONTRIBUTING.md`.
- **Public surfaces are English only** — code, comments, KDoc, commit messages
  and PR bodies included.
- A public API change is expected to reach every platform and the docs, or to
  state why not.

## Modules

| Module | Purpose |
|---|---|
| `sceneview-core/` | KMP — collision, math, geometry, animation, physics |
| `sceneview/` | Android 3D — `Scene`, `SceneScope`, node types (Filament) |
| `arsceneview/` | Android AR — `ARScene`, ARCore |
| `sceneview-compose/` | Compose Multiplatform façade — viewer subset, no AR |
| `sceneview-web/` | Kotlin/JS + Filament.js (WebGL2/WASM) |
| `SceneViewSwift/` | Apple 3D+AR — RealityKit (iOS/macOS/visionOS) |
| `flutter/` · `react-native/` | Native bridges (Android + iOS) |
| `samples/` | One demo app per platform |
| `mcp/` | `sceneview-mcp` server + packages |

Design tokens live in `DESIGN.md` — read it before generating any UI, never
hardcode colors or spacing, and support light and dark.

## Verification

Run the checks relevant to what you touched and **quote the real output**. Do
not report a test as passing without having run it. If a check cannot run in
your environment (no device, no network, no Gradle daemon), say so explicitly
rather than assuming it would pass.

Gradle builds are heavy and this machine is often near-full on disk; prefer
targeted module tasks over full builds, and mention it if you skip one.

## Reporting back

End with a short, factual summary: what you changed (file by file), what you
ran and its result, what you could not verify, and any decision you had to make
that the lead session should re-examine. Flag uncertainty rather than smoothing
it over — an unflagged wrong assumption costs far more than a question.

Signals

Stars
1,348
Forks
251
Open issues
137
Contributors
48
Last commit (this folder)
Sep 29, 2026 (1 month ago)
Last release
Oct 22, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sceneview

Cite this page

AGENTS.md · sceneview/sceneview. Agent Mart. https://agentmart.dev/templates/sceneview-sceneview-agents-md (last updated 2026-10-24)