Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every
render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and
place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code
are gone with no alias (MK41).

brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it
(the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written
back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one
goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines
and signed asks run inside the loop (MK47).

`raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake|
sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went.
docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out.

raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a
file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal
runner runs on the shipped binary.
2026-11-29 16:02:31 -08:00

2.1 KiB

title, summary, order, sources
title summary order sources
raea hook Every agent's tool hooks: media opened in the Mac's viewer goes to raea show, and the quick check after a composition is saved. 52
apps/check/src/hook.rs
apps/tools/src/agent_hooks.rs

raea hook is run by an agent's harness, not by hand: Claude Code, Codex, Gemini CLI and Kimi Code each call it from their own hook settings, which raea skills install --agent A adds (and leaves alone when an entry is already there). Inside the raea app the same hooks hold, since the app runs each agent with its own shell and config.

Before a shell command, it looks for a still, a video or a sound being opened in the Mac's viewer or a browser (open, open -a Preview, xdg-open, qlmanage -p). While the raea app is installed it stops that command once and tells the agent to use raea show instead, so the work comes up in the app as something the person can answer. The same command run again in that session within ten minutes goes through, for when the person asked for the viewer. open -a raea, Finder (open -R), links and PDFs are never stopped.

After a file is saved, it runs raea check --quick on a composition and hands the findings back to the agent, so clipped or cramped text is caught on the edit that caused it. A stop is exit 2 with the reason on stderr, which every harness hands its agent; findings go back in the shape each harness reads.

raea skills install --agent claude     # the skill and its hooks, for Claude Code
raea skills install --agent kimi       # the same for Kimi Code (codex and gemini too)

Usage

raea hook [claude|codex|gemini|kimi]   (every agent's tool hooks, which raea skills install adds: before a shell command, media opened in the Mac's viewer while the raea app is installed is stopped once for raea show (the same command again goes through); after a save, the quick check on a composition)

Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.