Riff
A native macOS coding harness: a SwiftUI REPL over the Anthropic Messages
API (raw SSE streaming, prompt caching, extended thinking, iterative tool
calling) with Mark's harness customizations baked in natively. It also
hosts the harnesses it isn't — a new session picks Riff, Claude Code,
Codex, Antigravity (Google's agy, launched on gemini-4-neon-xhigh), a
terminal, or any shell command, and one GUI drives them all.
Riff is also a Claude Code plugin marketplace. The plugins/ tree
publishes plugins that reshape Claude Code: some extend it with
capabilities it never had (orchestrated data analysis, an editor that writes
your highlighted feedback back into the source document), others modify
how it already behaves (enforcing a code style, planning and executing a task
in the foreground). App and
marketplace share a repo because they are one project seen from two sides: the
plugins reshape Claude Code from outside, and the app is what those same ideas
look like built in.
Docs
docs/ARCHITECTURE.md— components, streaming, compaction, persistence.docs/TOOLS.md— every tool's contract and implementation.docs/REVIEW.md— the review pane: threads, rounds, rebuilds.Riff/Design/DESIGN.md— design principles ("one design language") and the token table.
Layout
project.yml— XcodeGen source of truth;Riff.xcodeprojis generated from it and gitignored.Riff/— the app target (SwiftUI shell, design tokens, views, resources).RiffCore/— a local SwiftPM package with the app's logic (API client, tools, etc.), its unit tests, and theriff-smokeCLI for live-API smoke runs.RiffTests/— Xcode-level test target for the app.ios/,server/,LaunchAgents/,install.sh— the phone client and its relay.Makefile— the developer commands:make, which ismake install(build Release, install, relaunch),make debug(the same loop on a Debug build, left in DerivedData),make build(xcodegen generate,make principles, andxcodebuild build),make principles(installsprinciples/and dereferencesprinciples/prompt.mdto~/.riff/principles/prompt.md, keeping links tocode.mdandtighten/),make test(swift testin RiffCore +xcodebuild test),make test-plugins(the plugin suites), andmake server(install.sh: the relay the phone and the watch reach).
Install
Riff builds from source. There is no published release, and
Riff.xcodeproj is generated rather than committed, so the tool that
generates it is a requirement:
- macOS 14 or later.
- Xcode — the full install, not just the Command Line Tools, since
make builddrivesxcodebuild -scheme. - XcodeGen:
brew install xcodegen. - Read access to
markrogersjr/riff, which is private.
git clone git@github.com:markrogersjr/riff.git ~/riff
cd ~/riff
make build CONFIG=Release
make server is not part of this: it runs install.sh, which installs the
Mac-side relay for the phone client (ios/, server/) on the one machine
the phone reaches, and the app needs none of it.
Configure
The app reads ~/.riff/settings.json, and starts no session without
it:
{
"provider": "anthropic",
"key": "sk-ant-...",
"agent": {"model": "claude-opus-5", "effort": "high", "context": 256000},
"subagent": {"model": "claude-sonnet-5", "effort": "high", "context": 256000},
"ambient": {"model": "claude-haiku-4-5", "effort": "low", "context": 128000},
"fallback": {"model": "claude-opus-4-8", "effort": "high", "context": 256000}
}
Each block's effort (low, medium, high, xhigh, max) is how deep
its model thinks, sent as output_config.effort. Haiku 4.5 budgets its
thinking in tokens instead and never sends it, though its block names one
all the same.
Each block's context is the input size, in tokens, at which that role's
conversation compacts, what Claude Code's auto-compact window is there.
It has to leave the model's output and a margin under its window, so
128000 inside haiku 4.5's 200k. An edit reaches every open session at its
next compaction check, a turn already running included.
Nothing is defaulted — a field the file omits is an error shown in the
Settings pane, not a guess — and no model id is compiled into the app, so
the models these blocks name are every model it can reach. The one
optional block is fallback, shaped like a role's: a request any role's
model refuses goes once to that model, on its own thinking and effort, and
the next request goes back to the role's own.
key takes a Console API key or a Claude OAuth token (sk-ant-oat…)
as is; the prefix decides the auth header.
"provider": "bedrock" takes a region alongside, and each request goes
to the invoke URL of the model it names.
"provider": "lmstudio" runs every role on a model LM Studio serves, over
its Anthropic-compatible /v1/messages; endpoint (default
http://127.0.0.1:1234) and key are optional there. LM Studio hands
effort to the model as its own reasoning level and runs a level the model
lacks at the model's default: Qwen3.8 has low, medium and xhigh, its
default, so high there is xhigh. The window is the length LM Studio
loaded the model with, and a local model writes up to 32768, so Qwen,
loaded at its native 262144, takes a context of 221184, which leaves 8192
spare:
{"provider": "lmstudio",
"agent": {"model": "qwen/qwen3.8-27b", "effort": "xhigh", "context": 221184},
"subagent": {"model": "qwen/qwen3.8-27b", "effort": "xhigh", "context": 221184},
"ambient": {"model": "qwen/qwen3.8-27b", "effort": "xhigh", "context": 221184}}
See ARCHITECTURE.md → Providers and models.
~/.env is a separate thing, read only by the tests and the
riff-smoke CLI (ANTHROPIC_API_KEY). The app never looks at it.
Run
Open the built .app directly, or open Riff.xcodeproj to run it
from Xcode. Bare make is make install, the development loop: it builds
Release, installs it over /Applications/Riff.app, and proves the
process that came up is the build it just wrote. It starts the app from
~/riff-test, which it creates if missing.
Installing on another Mac
The build is a universal binary (x86_64 and arm64) signed ad hoc, so
copying /Applications/Riff.app to another Mac runs without Xcode,
XcodeGen, or the repo. Copy it with scp or rsync, which set no
quarantine flag; a download or AirDrop does set one, and Gatekeeper blocks
an ad-hoc signature until xattr -dr com.apple.quarantine
/Applications/Riff.app clears it. That Mac still needs its own
~/.riff/settings.json.
Test
make test
Every LLM call in tests uses claude-haiku-4-5 — the cheapest model,
kept as the fixed default for all live-API exercises.
Plugin marketplace
Add the marketplace, then install whichever plugins you want:
/plugin marketplace add markrogersjr/riff
/plugin install <name>@riff
The repository is private, so this needs access to markrogersjr/riff. Using the plugins requires no pip install — the bundled scripts run on the Python 3.12+ standard library. A handful of plugins shell out to command-line tools that must be on your PATH: pandoc for review's prose mode, gh for pull-request, tmux for poll, task, subagent, and launch (on the remote host), jq for task, and uv for poll and task, whose MCP servers run from a uv run --script shebang. Some plugins build on others: review needs poll (and subagent under --background), and riff uses review and subagent. npm and Playwright matter only for the test suite.
Codex installs the same marketplace, from GitHub or from a local checkout:
codex plugin marketplace add markrogersjr/riff # or the checkout's path, e.g. ~/riff
codex plugin add <name>@riff
Codex reads a plugin's .codex-plugin/plugin.json where one exists and its .claude-plugin/plugin.json otherwise, so both harnesses run the same sources. Three differences shape the Codex side. Codex treats plugin hooks as untrusted until you trust them, or until codex starts with --dangerously-bypass-hook-trust, and poll, riff, subagent, task, tighten, and reinforce do their work in hooks. Codex loads skills but not slash commands or plugin agents, so analyze, pull-request, and review each ship a skill (analyze:analyze, pull-request:pull-request, review:review) that runs the command. Codex has no background shell whose exit starts a turn, so poll's scripts/wake stands in: it runs a command in a tmux -L poll-wake session and, when the command exits, queues its output into the thread with codex queue, retrying while the app-server daemon restarts and logging each failure to ~/.riff/poll/wake.log. It refuses to run inside codex's sandbox, where tmux cannot create its socket yet still exits 0. Codex holds every queued turn on a thread whose last turn was interrupted, a resume included, until a turn you send completes: after Esc, a wake-up such as a review's Submit waits for your next prompt. unleash is Claude Code only.
Antigravity (agy) installs a plugin from a directory, so each one comes from the checkout:
agy plugin install ~/riff/plugins/<name>
The install is a copy under ~/.gemini/config/plugins/<name>, so an update is the same command again. agy reads a plugin's .antigravity-plugin/plugin.json and takes each kind of component from one fixed place at the plugin root: skills/ (or the folder the manifest's skills names), hooks.json, mcp_config.json, rules/, and agents/. It has no slash commands, so analyze and pull-request each ship a skill under antigravity/skills/ that runs the command, as under Codex, and analyze dispatches each subagent with invoke_subagent. Its hook events are its own (SessionStart, PreInvocation, PreToolUse, PostToolUse, PostInvocation, Stop) and a hook answers with a JSON object every time, {} asking nothing: reinforce runs on PreInvocation and injects the file as a system message on user turns only (invocationNum 0 with a USER_INPUT step), and tighten installs its references on SessionStart. agy plugin validate fails analyze on the five files in agents/, whose model lines name Claude models; the loader skips them and the skill reads them itself. agy starts a turn when a background run_command exits, as Claude Code does for a background shell, so poll runs as it does there: a poller, or a foreground loop, arms scripts/watch-next in the background and is woken by its exit, and the Stop hook answers continue until one is armed. agy cannot fork a conversation, so poll_start starts a fresh poller whose only context is its instructions. review runs in the session that asked for it: its skill starts the page and the foreground loop, and its PreInvocation hook fences each open review again on the first model call of every turn, where Claude's UserPromptSubmit hook does; --background needs the subagent plugin and so stays Claude's and Codex's. task's runs go through agy --print, which ends with its one turn and prints the final message, as codex exec does. riff's one PreInvocation hook carries the plan as Claude's five UserPromptSubmit parts do: the reminder and every slice in one system message on a turn's first model call (agy cuts a system message at about 49,000 characters, past the five 8,000-byte slices), and the throttled reminder on the later ones. analyze, launch, poll, pull-request, reinforce, review, riff, task, and tighten run under agy (measured against agy 1.5.18). subagent does not: it is a fork of the calling session, and agy cannot fork a conversation; a fresh run there is task's.
analyze
Deeply analyzes data to meet an objective. The /analyze command orchestrates an iterative investigation: a scout subagent identifies every relevant data source (local files, codebase, git history, remote hosts, databases, APIs, collaboration tools, observability, object storage, notebooks, web) along with the specific tables, columns, endpoints, commits, and files that bear on the objective. An investigator then analyzes each source with evidence-backed claims. A web-researcher grounds findings in external sources. An adversary adversarially challenges every load-bearing claim. The orchestrator loops, dispatching any subagent any number of times, until the objective is answered and every claim has survived or been revised. A synthesizer produces a self-contained HTML report at ./analysis-<slug>.html with embedded plotly charts, evidence citations, and prioritized recommendations. All subagents are registered at plugin level so Claude can invoke them directly via Task outside the orchestrator. Under Codex the analyze:analyze skill runs the same command and dispatches each subagent with spawn_agent, its brief read from the subagent's file under agents/, on the session's model.
launch
⚠️ Warning: this wipes remote changes. The current branch is force-pushed, overwriting the remote branch, and over ssh the remote checkout is hard-reset and cleaned, discarding any uncommitted work on the remote host. Files ignored by git (datasets, venvs, checkpoints) are preserved.
Dispatches a long-running job (a training run, a data preparation pass, an evaluation) after pinning the exact code it runs, so every run is reproducible from a commit. It is the launch skill, which Claude Code and Codex both load, and it runs in three steps:
- Pin.
scripts/pin <message>commits every dirty file, tracked or not, authored by git config (skipped when the working tree is clean), force-pushes the current branch, creating its upstream on a first launch, and prints the repo, branch, commit, and origin URL. - Start the job on the backend the request names, else the one the project's instructions name, else the one the user answers with. On an ssh host,
scripts/ssh-launch <alias> <command>checks the branch out under~/<repo name>there, discarding everything else, and runs the command in a detachedtmuxsession. A job API (a scheduler, a cloud training service, a hosted runner) gets the pinned commit throughcurl, its CLI, or its SDK, with credentials from~/.env. - Report the job id or tmux session, the commit, and the command that follows its logs or status.
No configuration: the repo, branch, and author come from git. The Riff app's native launch tool returns this same skill from a copy vendored into RiffCore, so its in-process agent launches the same way.
poll
Runs long-lived Claude Code sessions as event-driven pollers. poll start <directory> <instructions> spawns a fresh Claude session in an isolated tmux -L poll socket that watches <directory> for event files and processes each per <instructions> — a markdown file inlined into the session via SessionStart hook (so it survives compaction). The spawned session's cwd is an ephemeral empty directory, so no project CLAUDE.md auto-discovery occurs; the instructions are the only context. Passing --session <id> --cwd <dir> instead forks that conversation (--resume --fork-session) so the poller natively has the history that produced its work — what review wants for its apply loop, and what a queue poller must not have: an inherited task arrives as pending work and outranks the watch protocol, leaving the watcher unarmed and the queue undrained. The watch-loop protocol lives in scripts/protocol.md (with {{WATCHER}}/{{POLL_DIR}} placeholders); scripts/render-protocol prints the filled-in header so a foreground session can run the same loop in-place — this is what review reuses to run its apply loop in the launching session by default. Lifecycle (list, logs <name>, stop <name>) is exposed via both the scripts/poll CLI and an MCP server. Stays on interactive Max quota rather than the Agent SDK credit pool used by claude -p. --harness codex runs the poller in codex instead (a fork is codex fork <thread>, resumed in the thread's own directory), and the MCP server under Codex passes it for you. A Codex poller has no background watcher to wake it, so its Stop hook arms a scripts/wake watcher after every turn unless a wake-up is already pending, and poll stop cancels the pending ones; scripts/protocol-codex.md is the matching protocol.
task
One-shot Claude Code runs. riff-task run <prompt> [claude flags...] is claude -p without claude -p: it starts a fresh claude in a tmux -L task PTY with one prompt (a file, a string, or stdin), waits for the turn to end, prints the final message, and tears the session down, so it stays on the interactive subscription instead of the metered path a TTY-less claude takes. The plugin's Stop hook marks the end: inside a run the first turn boundary is the end, since no user is there to send a second prompt. The run's cwd is an empty directory unless --cwd says otherwise, so the prompt is the only context; --timeout (default 900 s) bounds it, exiting 124. riff-task serve is the daemon over it, the replacement for resident pollers: riff-task add <directory> <instructions> [flags] registers a directory, and whenever it holds event files with no run in flight the daemon runs the instructions over the oldest --batch of them (listed by path in a protocol header: read, process, delete, answer DONE: or move to .errors/ and answer ERROR:), at most TASK_PARALLEL (3) sessions at once, with a cooldown after a run that timed out or died. Memory is bounded by the concurrency cap rather than by how many directories are registered, which is what took a 16 GB mini down under twenty-one idle pollers. riff-task install runs the daemon as a gui-domain LaunchAgent (claude's login lives in the login keychain, which ssh and cron sessions lack). list, logs <name>, wait <name>, stop <name> round out the lifecycle, exposed via both the scripts/riff-task CLI and an MCP server (task_run, task_add, ...). --harness codex on run or add runs the prompt through codex exec --ephemeral instead, whose exit ends the run and whose -o file is the result; the MCP server under Codex passes it for you, and each registry entry keeps its harness. Needs tmux and jq.
pull-request
⚠️ Warning — this rewrites history and force-pushes, overwriting the remote branch. The
<branch>-backupbranch is the only safety net; the default branch is never touched.
Turns the current branch into a clean, single-commit pull request against the default branch. The /pull-request command:
- Commits all changes so no pending work is lost before history is rewritten.
- Pushes the branch — doing this before the rewrite is what makes the later
--force-with-leasesafe. - Refreshes a
<branch>-backupsafety branch that holds the original history. - Finds the fork point where the branch diverged from the default branch.
- Squashes all of the branch's commits into one (its message is provisional, set in step 8).
- Rebases onto the latest default branch.
- Resolves conflicts carefully, pausing to ask the user when a resolution is genuinely ambiguous.
- Writes the release notes as the commit message, then force-pushes with
--force-with-lease. - Creates the PR — or updates the branch's existing open PR in place (syncing its title and release-notes description; the force-push already refreshed its commits) — directly via the
ghCLI, with the title and description taken verbatim from the commit message.
Uses plain git for the history rewrite (steps 1–8); the gh CLI is required to create or update the PR (step 1 stops early if it is missing or unauthenticated). No GitHub MCP server or plugin.
reinforce
Keeps one instruction file present throughout agent work, rather than only at the top of the session where it decays. Hooks reinject the configured file on user messages only (UserPromptSubmit in Claude Code and Codex; PreInvocation with invocationNum 0 and a USER_INPUT step in Antigravity). Claude Code asks for the absolute path when the plugin is enabled and stores it in the plugin options; Codex asks in the first conversation and stores it in the private plugin data directory. The file must be readable text, fit in two 8,000-byte chunks, and contain no line larger than 8,000 bytes — the hook payload limit — so each event fires two hooks that emit chunk 1 and chunk 2, labeled and ordered when the file needs both.
review
Reviews anything in the browser: a diff the way you would a GitHub pull request, or documents the way you would a manuscript. The /review command renders one annotatable page, serves it locally, and opens it. It picks the mode from what you name — all documents (.md, .tex, .html, .txt, anything pandoc reads) renders as prose, anything else (mixed, source, or nothing named at all) diffs — the same rule Riff's own review tool applies when its code field is omitted; --code and --prose override it. A diff runs from a base ref to the working tree, untracked files included, with tree-sitter syntax highlighting driven by nvim-treesitter's own queries, including rainbow brackets cycled by parse-tree depth, and a dark mode toggle that recolors instantly; comment on a line, drag across line numbers to comment on a block, or write a suggested replacement, and the loop edits the working tree. With no argument it diffs the uncommitted changes against HEAD; pass a ref to review a whole branch; outside a git repository there is no ref to diff against, so every file in scope is an addition instead and a folder of untracked notes reviews like a working tree. Prose renders the source files themselves: highlight any text, say what you want changed, and the loop edits the sources — given no file argument, it authors a new document from your description first.
Either way, click Submit and the page refreshes into the next round, with no copy-paste back into the chat. A thread's card is its messages and a reply box, the same card as Riff's review pane: reply in it, and the thread leaves the page when an edit resolves it. --readonly makes the whole review reply-only: discussion and suggestion-fenced replacements, never an edit. By default the apply loop runs in the launching /review session (press Esc to stop), which answers each round in its own turn while you watch; --detach hands the loop to a background poll session, which answers rounds the same way, and --background hands each round to a coordinator that fans out one subagent per waiting thread in parallel. Under Codex the review:review skill runs the same command, and the in-session loop waits on a scripts/wake watcher that queues the next turn instead of a background shell. The loop runs in the launching session or a fork of it, so it starts with the intent and approaches the conversation already settled. A session holds as many in-session reviews as you start: each is listed in ~/.riff/review/sessions/<session id> with its own watcher and server, a hook fences every armed one into each user turn as <review id="…"> beside a riff plan's <plan>, and finishing one (start.py --finish <id>) leaves the rest armed. Requires the poll plugin, the subagent plugin under --background, and pandoc for prose.
subagent
Forks the current Claude Code session or Codex thread into a detached subagent that works a one-shot task to completion. subagent start resumes the calling session with claude --resume <id> --fork-session, or a Codex thread with codex fork <id> in the thread's own directory, so the subagent inherits the parent's full conversation history and then diverges, running unattended in an isolated tmux -L subagent socket. The parent and its harness are identified automatically through the id each harness exports to every child process, CODEX_THREAD_ID under Codex and CLAUDE_CODE_SESSION_ID under Claude Code, so discovery is race-free even across many concurrent sessions of the same project. The task is inlined via a SessionStart hook (so it survives compaction); a Stop hook records completion the moment the subagent's turn ends, capturing its final message as the result. subagent wait blocks until the subagent finishes (returning that message, which a Codex fork's rollout carries on its last task_complete event), crashes (its session vanished), or a timeout elapses; list, logs <name>, and stop <name> round out the lifecycle in the scripts/subagent CLI. Two more verbs let a parent intervene mid-run rather than only wait. steer [--interrupt] <name> <message> types a message into the subagent's pane and submits it — the tmux keystroke a human would use to answer a blocked agent — with --interrupt pressing Escape first to halt a wedged turn. watch [--interval S] [--threshold S] <name>... polls a set of subagents and exits the moment any one's pane has sat unchanged past the threshold (default 300s, so a genuinely frozen agent trips it but a thinking one, whose elapsed-time spinner keeps the pane moving, does not), printing the stuck names as JSON; run it in the background and its exit is a wakeup that hands a stall back to the parent to logs, diagnose, and steer. Because it runs in a tmux PTY rather than a pipe, it stays on the interactive subscription instead of the API metering a TTY-less claude (including claude -p) incurs.
tighten
A skill that teaches declarative style and locality of reference, drawn from Code Complete's span and live time metrics. It covers function signatures, variable creation, inline composition, indentation, chaining, parenthesis nesting, DRY, and pandas idioms. No hooks — invoked on demand before writing code.
unleash
⚠️ Warning — this disables the approval prompt that protects
.claude. Claude Code guards every.claude/path so hooks, permissions, andsettings.jsoncannot be rewritten without your review; after relocating, edits through.unleash/claude/apply with no prompt. Reserve it for a.claudeyou control. Claude Code only: Codex has no protected.claudepath to escape.
Relocates a .claude directory out of Claude Code's protected path so its files can be edited without the approval prompt. Claude Code treats any path with a .claude/ segment as protected — edits there prompt even under --dangerously-skip-permissions. The /unleash skill moves the real files to a sibling .unleash/claude/, a path with no .claude/ segment, and symlinks .claude to them; editing through the new path skips the prompt while Claude Code still resolves config at .claude. In a git-tracked repo it relocates with git mv, re-protects ignored files (e.g. settings.local.json) at the new path, and commits the move atomically.
riff
Decomposes a task into a dependency graph of subtasks, then executes it node by node in dependency order. The /riff skill investigates the surface area and drafts a one-screen digest plan to ~/.claude/plans/ — abstract, requirements with inline acceptance checks, a ```dag graph whose every node's context is the absolute path of its brief — with the low-level detail in those per-node brief files beside it. The plan is reviewed with the review plugin together with every brief (one annotatable page revised in place, where a node's path jumps to its brief), and the review stays open until the task is complete: it is how you steer before and during execution, and the dag fence on it is the live status board. Execution starts as soon as the plan is whole, or on your go-signal when the run was asked to wait; either way it freezes the requirements. Each node is marked running, worked from its brief, tested, committed, and judged against its done-when. Verification is layered: per-node tests in the brief, plus a mandatory terminal verify node generated from the requirements' checks that gates completion; manual-gate nodes wait for your confirmation. When scoping proves wrong, it replans append-only — wrong nodes are invalidated and corrected by new nodes, only the unstarted subgraph is rewritten, requirements never weaken. A UserPromptSubmit hook keeps the plan in context every turn, and a throttled PostToolUse hook re-injects it during long tool-only stretches, via a per-session marker under ~/.riff/riff/, named by the Codex thread id under Codex. Pass an existing ~/.claude/plans/ path to resume a plan; status reports the current phase; done/stop disarms, finishing the plan's review and leaving every other armed review as it is. Requires the review and poll plugins (and pandoc).
Testing
Three suites guard the review, poll, and reinforce surfaces. Playwright covers the in-browser review UIs: it renders a fixture page through render_prose.py and render_code.py, loads it over file://, and checks both interaction paths — a mobile project (devices['iPhone 13'], touch) exercises the touch comment flow (settled selection surfaces the "💬 Comment" pill in prose, a tap on a line-number cell opens the inline composer in code), while a desktop project proves the mouse path is untouched, that a thread's card holds its messages and one reply box with no control on it, and that a vertical wheel over a wide code diff still scrolls the page (not just the diff). A highlight-richness spec proves the code diff's tree-sitter highlighter colors call names / parameters / type annotations as distinct spans, classifies the same name by role (str annotated and str called take different colors), and cycles nested brackets through the rainbow palette (#ffd700/#da70d6/#179fff). pytest covers the pure-Python script surfaces with no browser, Claude, or network: serve.apply_op (a comment and a reply, every other op refused), start.py's mode inference / parent-transcript resolution / session-brief assembly, render_code.py's repository-less directory walk, the render template slots, the capture-transcript hook contract, poll's render-protocol, and the Codex harness: poll's scripts/wake and its Stop hook through a real tmux on a private socket and a stub codex, task's codex exec runs, and subagent's harness detection and rollout parsing. The pytest suite needs Python ≥3.12 (the renderers use PEP 701 f-strings) and runs under uv. A bash suite drives reinforce's hook scripts directly, asserting the chunking at the 8,000-byte hook payload limit, the JSON escaping of control characters, and every rejection configure.sh owes a bad path (oversized, over-wide, binary, relative); it prints nothing when it passes.
Run all three with one command:
make test-plugins
Or each alone:
# pytest (script surfaces)
uv run --with pytest --python 3.12 python -m pytest tests/test_scripts.py
# bash (reinforce hook contract)
./tests/test-reinforce.sh
# Playwright (browser UIs)
cd tests
PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/ms-playwright npm install
PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/ms-playwright npm test
See tests/README.md for details. The chromium binary is cached under ~/.cache/ms-playwright; pointing PLAYWRIGHT_BROWSERS_PATH there keeps the install offline.