shaneandshinyobjectz 563f49a978 One check: raea check is the only way any agent's work is checked (#335)
* One check: raea check is the only way any agent's work is checked

docs/check.feature (CK0-CK6). Every rule lives in one of three places: a check, a component or the SDK,
or a skill or retrievable context; a rule that fits none is dropped.

- raea check runs a project's goal at a moment (--at edit|render|publish|done); raea goal check still runs
  as its alias for older tools. raea ask, raea judge, goal seen, goal judge, goal gates and check
  --taste/--quick are refused, naming raea check. raea floor is raea's measures for files outside a goal.
- a render's check runs once as it ends and is kept as OUT.check.json; publish and done reuse it while it
  is no older than the file and its manifest, and every rule says at most one line per file
- the goal SDK has no seen, says, critic, record, notes, stills or surprise packs and no taste or look
  checks; a says rule is reported as unchecked; brief.ts holds only what the brief asks
- the edit-moment hook check is gone; the Stop hook reads the kept check
- <Captions /> (raea/video, exported from raea): words in, the brand's caption style, inside the safe area
- the craft guides and AGENTS.md lose judge tiers, ask, Tone.js and framing="face" text

* raea cut keeps a take's jump cuts: the second cut on a take doesn't decode it again

raea media cuts decodes every frame of a take (43 s for a 4-minute take on a box), and every raea cut ran it again,
so three cut lists on one take in a step ran past a box step's 3 minutes and the run stopped with nothing made.
The cuts are kept in raea's cache by the take's path, size and time: a second cut on the take took 0.5 s.

* The reading check reads the render's own texts from its manifest (Unrender J2)

What raea drew is checked from the render manifest, never by reading frames (docs/check.feature): the reading pack
takes each text's ink box from the manifest at the captions pack's step, a multi-line card sized by one line, and
reads the export's frames only when no manifest is beside it.

* raea/goal typechecks: a dead helper gone, shapeOf takes FileFacts' sizes, the montage test's beats are CutBeats

* raea goal check takes check's flags again: the old name runs, as CK0 says

The help lists check's flags under check alone, so a verb's flags read from it refused `raea goal check OUT --at
render` (raea cloud's render tool) for --at. goal check's arguments are now checked as check's.

* Farm: a volume reload goes next, shared and limited, so a busy farm never loses a finished render

With a dozen cuts in flight, blob uploads and other requests kept the farm API's volume in use without a break. A reload waited for none of them to be in it, and GET out sat behind it past Modal's 150 s web limit (408), losing a finished cut. Now a waiting reload holds new users back, a reload that starts after a request asked serves it too, and the wait is held to 100 s and answered with a 503 the box asks again on. test/farm_gate.py runs the class from farm.py: the old gate never reloads behind a stream of users; this one does in 0.16 s.

* Floor: blocky darks are an error only when the encode is measured to have added them

12-04, one-check proof: Body Shop's cut (17 Mbps) got an ERROR for blocky dark patches that its frame doesn't show at full size; the check couldn't tell the encode from the footage's own compression. Untraced, it's now a warning; the picture's own, no line.

* CTA and must-say read a frame's texts together

12-04, Elfster run 4: the end card drew the CTA as two texts ("Make your Wishlist and organize your Gift Exchange on Elfster." over "It's free."), each alone under the CTA's 85% share, and a cut ending on its CTA was failed for having none. A frame's texts are now read together, in the order drawn.

* Sound: a word timed longer than 2.5 s is a transcriber's slip, not a word cut in two

12-04, Elfster run 5: "secret" was timed 143.28-166.96 s, and a clip starting 15 s into it got an ERROR for cutting the word.

* One line a rule a file across levels, and no lines.txt note

12-05, run 5: a cut's ERROR and WARN from the same check each took a line, and Dutch's cuts listed 11-12 lines. The worst finding of a rule now leads its one line and the rest are counted under it. The "no lines.txt beside it" note is gone: a hint, not a fault in the cut.

* Farm: a composition's bundle cached on each container's own disk

12-05, run 6: a job's 32 CPU parts missed the shared bundle cache on the volume at once, each wrote the same file and committed it, and parts that read it mid-commit got zeros ("bundle.js: String contained internal null bytes"). Up to 23 of a cut's 32 parts went back to the 10 GPUs, and other jobs' frame-0 probes waited behind them.

* Words: Hear on up to 4 GPUs and Align on 3

12-05, run 8: three projects' transcriptions, 8 at a time each, queued on 2 of each class. Elfster's 51 takes took 6.5 minutes and its wait for them ran past the fetch step's 4. Seven of the account's 10 GPUs at a run's start leave 3 for the cuts' first frames; the cuts themselves draw on CPUs.

* Check: quotes cut by whole characters, and numbers said in words match digits

12-05, Dutch run 9: a caption quoted to 40 UTF-16 units split an emoji, and printing the report broke the check ("Conversion from string failed: invalid utf-8 sequence"). Quotes now cut by code point, and every finding is made well-formed before it's printed or saved. The same cut's caption "24-7" was called a word not said, against "twenty four seven" in the words file: the captions pack now reads numbers in words as digits on both sides.

* AGENTS.md: a take cropped to another shape goes through components/Framed.tsx, never a guessed objectPosition

12-05: agents guessed each 9:16 crop and cut the speaker off at the frame's edge.

* AGENTS.md: the brand paragraph in five lines

A box agent starts with at most 2,500 words (docs/check.feature); this paragraph was 150 of them.

* Check: a CTA said in part and shown in part lands; numbers said in words match the brief's digits

Dutch run 10: the host said "use code PETS60 for sixty dollars off your first" as the end card showed "Code PETS60: $60 off your first year". Heard alone was 79% of the line and shown alone 58%, so 5 of 6 cuts got a false CTA ERROR. The heard words now take numbers in digits (as the captions check does) and the CTA counts what is heard and shown together at the end.

* Check: "$60" reads as "60 dollars" in what's heard and what's captioned

Dutch run 10: the transcript wrote "sixty dollars" as "$60", the caption wrote it out, and the captions check called "dollars" a word the host never said.

* Captions check: the takes' own words where the edit placed them count as said

The check heard the export a second time, while captions are built from the takes' own transcripts. Run 11: a second hearing wrote the take's "he heard his label paw" as "he sleep with Paul", and "That's" and "take" otherwise, so right captions read as retyped or as dropping words (4 false ERRORs over Dutch's 6 cuts). A caption's letters now count as said when either hearing has them, and words heard but uncaptioned are a fault only when the take's own words there aren't captioned either. A retyped caption is still caught.

* One UI zone table for Region and the check; ERRORs only for the faults a cut's rules name

- sdk/video zones.ts: the app's UI zones, the same table as the floor's zones(). Region's edges and sides keep them,
  so a title or caption it places is never in the zone the check holds it to (Region kept 8% at the top against the
  check's 220 px, and every hook title it placed was an error).
- The right zone is the app's buttons, from 45% down the frame (RAIL), in the Rust floor and in the goal's floor pack
  for a raea from before it: a centred end card above the buttons is clear.
- place: an error over a face or a sign (words in the shot); over another thing the detector names, a warning with
  the clear place said.
- sound: a cut on sound more than 0.6 s from any word is a warning (a laugh, a noise, a missed word), not a word cut.

* Sound check: a clip with no well-timed word in it isn't a line held to the others' level

A take whose transcript has broken timing (a word 90 s long) made a 0.6 s pause read as a line 51 dB under the rest.

* Captions take a cut's own words; AGENTS.md: captions and titles through Captions and Region, never a typed top

An edit holding several cuts has one words.json, so Captions had no words for each cut and agents wrote their own
captions at a typed top, in the app's UI zones.

* AGENTS.md: shorter placement and Framed lines, back under the start-text limit

* Composition ids take underscores: a deliverable's name is its id

The naming rule names cuts client_concept_variant_v1, and registerRoot refused that id, so an agent that used the
deliverable's name lost a render pass (7 minutes in one run).

* Farm: the box image's SDK overlay on the release, so a render's Region keeps out of the app's zones

The farm bundles each composition with its own SDK; rc4's has no zones.ts, and titles placed by Region landed at
y=154, inside the top 220 px. Deployed (raea-farm, RAEA_VERSION=0.1.17-rc4).

* Farm: frame 0's run commits the work folder, so a render's parts don't each rewrite styles.gen.ts at once

Uncommitted, every part's container found styles.gen.ts older than the code and rewrote it on the shared volume,
truncating it under the others: 14 of one cut's parts refused with "couldn't bundle edit.tsx: Unterminated string"
and the cut was lost. Deployed (raea-farm, RAEA_VERSION=0.1.17-rc4).

* Farm: a piece whose runs draw only stills (a game's capture) is drawn as stills and encoded on the run's GPU

Every run of a playable's capture refused: the file extension .mp4 was not recognized as an image format.

* check.feature: name the retired frames command without its old name (the legacy-names gate)

* goal: the batch critic's test goes with the critic (one check removes raea ask)

* taxonomy: Captions is raea's own name (the one-line captions component)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-12-05 08:49:49 -08:00
2026-10-21 16:17:59 -07:00

raea's cat

raea

Render Anything Engine (for Anyone)

Tell your AI what to make. Videos, motion graphics, 3D and games, written as React and TypeScript
(the code your AI already writes) and rendered on your own GPU, faster than they play.

raea.io · Made in raea · Why raea · Docs · Releases

licence FSL-1.1-ALv2 latest release macOS, Apple Silicon Linux x86_64 Windows x86_64


raea releases experimentally and often, so the newest release is always on Releases. The app is unstable for now, especially on Linux and Windows: expect rough edges, and tell us what you hit in an issue, or from your agent with raea bug.

The app

The raea app is where you make video, 3D and games with your AI. You ask in a chat; your own AI (Claude, ChatGPT, Kimi or a local model) writes the raea code and renders it; what it makes lands in the project's feed, where you watch it, scrub it, mark it up and send it back with notes. Download it from raea.io for the Mac, Windows or Linux. It tells you when a new version is out; on the Mac it updates itself.

The raea app tutorial

New to the app? Watch the tutorial (5:50).

What the app does now:

  • The chat comes first (0.1.5): your projects in a rail, the conversation in the middle, and /goal to keep an agent going until a condition you set holds.
  • A timeline you edit by hand (0.1.4): trim, split and move clips, speed curves, freeze frames and keys, the way CapCut works, under every film, sound and scene.
  • Scenes you walk around in (0.1.3): your agent posts a 3D scene and you walk through it, pin comments in it and move its parts by hand; every change is written into the scene's own code.
  • Index (0.1.5): your folders, drives and Apple Photos made searchable by what's in them, on your Mac. On an M5 Pro, 10,000 pictures were searchable in under a minute.
  • Review (0.1.6): each project has a Review tab, every comment you leave reaches the agent, and export is one window.
  • Lighter (0.1.6): the window gives back memory it's finished with and rests when nothing changes, 34% less CPU at rest.

The app and the engine are free. Pro adds cloud storage, search across your computers and publishing; Team puts up to five people on one plan (pricing). Each release's notes are on the releases page.

Install

curl -fsSL https://raea.io/install | sh

The installer puts the raea command under ~/.raea, links it into ~/.local/bin, and adds raea's agent skills to ~/.claude/skills, so Claude Code (or any agent that reads that folder) knows how to write, render and check raea work. Run it again to update. The engine is free and needs no account. Tarballs and checksums are on the releases page.

Linux release builds also package an x86_64 AppImage of the engine command and attach it and its SHA256 checksum beside the release archives. Make it executable with chmod +x raea-*.AppImage, then run ./raea-VERSION-linux-x86_64.AppImage --help or pass the usual raea arguments. See the AppImage release recipe for build instructions, runtime requirements and running without FUSE.

On Windows 10 or 11, in PowerShell:

irm https://raea.io/install.ps1 | iex

It does the same under ~\.raea and adds raea to your PATH. raea needs a DirectX 12 or Vulkan GPU driver; what else it needs (the Visual C++ runtime, FFmpeg and uv) is in its bin\ folder.

Hello

A composition is a React component that draws a frame for a given moment:

import { AbsoluteFill, Composition, interpolate, registerRoot, useCurrentFrame } from "raea";

function Hello() {
  const f = useCurrentFrame();
  return <AbsoluteFill style={{ background: "#000", color: "#fff", fontSize: 120, opacity: interpolate(f, [0, 20], [0, 1]) }}>Hello</AbsoluteFill>;
}

registerRoot(() => <Composition id="hello" component={Hello} width={1920} height={1080} fps={30} durationInFrames={90} />);
raea render hello.tsx -o hello.mp4

On an Apple Silicon Mac those 90 frames render in about a second. The same file can play live as a game (raea play), render one frame for an agent to look at (-o frame.png --frame 45), or be checked against a quality floor (raea check hello.mp4). raea init starts a project, and raea --help lists every verb.

What it does

  • Video and motion graphics. Layout, text, Tailwind, SVG and animation, composited on the GPU and encoded in hardware where the machine has it. Footage is cut by what's said in it (raea cut), and raea check catches clipped text, low contrast, unsafe areas, freezes and loudness problems before anyone watches.
  • Games. Input, physics, sound and 3D, played live with raea play, and exported as a program of their own (raea export-game).
  • 3D. Scenes in TypeScript drawn by Bevy 0.20: cameras, lights, materials, glTF models, Gaussian splats, and Bevy plugins compiled into the engine. three.js work runs as it's written: a React Three Fiber scene inside <R3F>, or a three.js page's script inside <Three program>.
  • Sound. One mixer for live play and offline render, instruments and effects, and local models for foley and instrument notes (raea make sao, raea make tokensynth).
  • Built for agents. Everything it draws stays queryable as data, so an agent can render a frame, look at it, and fix what's wrong without a person in the loop.

Made in raea

Films, music videos, a tutorial and a game made with raea are on media.raea.io. Six of them come with their source in raea-films: each project's code under Apache-2.0, to read, render and take apart, and its models, textures and sound for anyone with a free raea account.

Use it from your agent

  • Agent skills. They live in raea-skills, pinned here as skills/: raea teaches an agent to write, render and check raea compositions, 3D and games included. The installer adds it to ~/.claude/skills, and raea skills install --agent NAME to other agents.
  • Claude plugin. The raea skill and two hooks (raea's quick check after a composition is saved, and media shown in the raea app). In Claude Code: /plugin install raea --marketplace shinyobjectz/raea-skills. It's the skills/ folder of raea-skills, and /plugin marketplace add shinyobjectz/raea installs the same one.
  • Craft guides. raea guide prints the floor every edit is held to and the guides for pitches, explainers, stories, games, motion, music and layout. raea context PROJECT says what to read before working on a project.
  • Bug reports. When an agent finds a bug in raea itself, raea bug TITLE --text TEXT sends it to raea's server with raea's version and the OS, no account needed. It sends words only: paths, emails and keys are taken out before it goes, and --dry-run prints what would go.

Build from source

Requirements: Rust (rustup reads the pinned version from rust-toolchain.toml), bun and CMake. On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig, udev, xkbcommon (with its X11 part, which the app targets' windows also load at run time) and Vulkan libraries and NASM (Ubuntu: cmake ninja-build nasm libasound2-dev libfontconfig1-dev libudev-dev libvulkan-dev libxkbcommon-dev libxkbcommon-x11-dev), as public CI installs them.

git clone https://github.com/shinyobjectz/raea && cd raea
cargo build --release -p raea-cli --no-default-features
for d in sdk/raea sdk/react/js sdk/react/tw; do (cd $d && bun install); done
target/release/raea render sdk/react/bench/games/pong/edit.tsx -o pong.mp4

--no-default-features builds the public engine, as the releases are. The default features add one hosted service, Content Credentials signed by raea's signing server, which isn't part of this repository. raea sends nothing on its own: no telemetry, crash reports or update checks. What reaches the network is what you ask for (a remote URL in a composition, a model downloaded on first use, a raea gen step on a provider you hold a key for), and RAEA_OFFLINE=1 refuses all of it. docs/settings.md lists the settings raea reads.

What's in here

The workspace is layered, from pure building blocks up to the command.

Folder What
core/ Pure building blocks: the kernel language (K, interpreted on the CPU and compiled to WGSL), easing and animation, shapes, fonts, the scene and wire formats
gpu/ The one shared GPU device and its telemetry
io/ Decode and encode (VideoToolbox, software codecs, AV1, a muxer), files, network, npm packages, traces
systems/ Engine systems: layout, canvas, compositing, filters, mixing, speech, ML on ONNX Runtime, footage reading, lighting, contact checks for 3D parts, splats
runtime/ Running a composition: the JavaScript engine seam (JavaScriptCore on macOS, QuickJS elsewhere), React and HTML on Bevy, baking, encode, live play
engine/ The renderer (engine/render), the in-process TypeScript bundler, the Bevy plugin catalog, and the raea command itself (engine/cli)
apps/ The crates behind the CLI's verbs: check, play, games, media
sdk/ raea, the TypeScript SDK (sdk/raea), its 3D, physics, audio, video and UI packages, the craft guides, and the agent skills
vendor/ Patched upstream crates, under their own licences (vendor/vendor.toml says why each is patched)
tools/ Build and release helpers

Behaviour specs written in Gherkin (.feature) sit beside the code they describe.

Licence

raea is under the Functional Source License 1.1, ALv2 Future License (FSL-1.1-ALv2), copyright Shane Murphy. Use it, change it, build on it and pass it on for anything except a product that competes with raea. Each version becomes Apache-2.0 two years after its release. Third-party parts keep their own licences; see NOTICE.

S
Description
Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
Readme Apache-2.0
112 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 66.8%
Rust 27.6%
Python 2.3%
Shell 2.2%
Gherkin 0.3%
Other 0.6%