Working with AI agents
Coding agents like Claude Code, Codex or Cursor can write oxframe scenes for you. Every new project comes with instructions that teach them how — and a way for them to see what they made.
What oxframe init adds
AGENTS.md | The project's rules for any agent: how scenes work, which commands to run, what never to do
(non-deterministic code, editing meta.json by hand) and fixes for the most common
compile errors. |
CLAUDE.md | One line, @AGENTS.md, so Claude Code reads the same file. |
.claude/skills/oxframe/ | A skill with a step-by-step workflow (SKILL.md) and an API cheat sheet (reference.md). Agents that support skills load it whenever you ask for a change to a scene. |
.claude/settings.json | A hook that runs oxframe notes with every prompt, so Claude Code sees the open notes from the editor without being asked. Added to the
file you already have. |
The files are plain Markdown. Read them, edit them, add your own project conventions.
Letting the agent see its work
Animation is visual, so compiling is not enough to know a change is right. The instructions tell the agent to look at the picture after every change:
oxframe check # storyboard.png + report.json; exit 1 on errors
# open out/check/storyboard.png and out/check/report.json, fix, run again
oxframe inspect --at 2.5 # scene tree at that time, when a frame looks wrong The storyboard is a grid of frames with the time under each cell. The report names the rule, the
node and the source line. oxframe snapshot is still there for one still (960×540
unless --size says otherwise). Nothing keeps running — oxframe dev is for you, not
for the agent.
out/check/storyboard.png of a scene with a mistake: the list sits on top of the title.A good way to work together
- Keep
oxframe devopen in your browser. - Ask the agent for a change in plain words: "after the title, slide three cards in from the left, one after another".
- The agent edits the code and checks it with
oxframe check; your preview reloads by itself. - Fine-tune timing yourself with markers and sliders. The agent is told to keep your
meta.jsonvalues, so your adjustments survive its next edit.
Keeping the files up to date
After upgrading oxframe, refresh the instructions:
oxframe agents # refreshes the generated files
oxframe agents --force # also replaces files you made your own Generated files carry an oxframe-agents marker comment. To keep your own version of a file,
delete that comment — files without it are left alone. Projects created with an older CLI can get the
files the same way.
Connecting an MCP client
Setup for each client, the hosted docs server and every tool: MCP server.
oxframe mcp speaks MCP over stdin and stdout. Point Claude Code, or any other client,
at that command with the project directory as its working directory. The tools are check, storyboard, render_frame, inspect, render_graph, list_components, docs_search and render. docs_search looks through the docs of the CLI's own version. render_graph lists the render passes at one time, so an agent can see that a lens_drops, a ripple or its own WGSL shader runs, and in which order.
{
"mcpServers": {
"oxframe": { "command": "oxframe", "args": ["mcp"] }
}
} Every command also takes --json and then prints a single JSON object on stdout. A
compile error includes the compiler text and a hints array for the mistakes agents
make most often (a forgotten .await, a builder never passed to add, a
theme token used as a number, and the rest).
For tools that read the web
Each docs version has a plain-text index and a full dump, generated from the pages when the site
is built. The current version is /llms.txt and /llms-full.txt. A pinned version is /docs/<series>/llms.txt (for example /docs/0.1/llms.txt). The current series redirects to
the unversioned files, so a link written for today's version keeps working after that series is
archived.