Skip to content

Latest commit

 

History

History
668 lines (609 loc) · 87.3 KB

development.md

File metadata and controls

668 lines (609 loc) · 87.3 KB

Developing Codealong

How to build Codealong from source, how it's checked, and where things are in the code. CLAUDE.md has the working notes that every change follows, for people and agents alike: the commands, the conventions, how a change is checked and how it lands. What Codealong does, feature by feature, is in the guide.

Codealong is a Tauri 2 app: a Rust workspace (src-tauri/) whose crates separate low-level OS/HTTP/storage primitives (codealong-sys in src-tauri/crates/sys/), peer sync (codealong-peer in src-tauri/peer/, which the iPhone app builds on too), terminal emulation (codealong-vt in src-tauri/vt/), the headless engine/server/CLI/adapters (codealong-engine in src-tauri/crates/engine/), and the Tauri desktop shell (src-tauri/src/), paired with a React UI (src/) that draws the main window, the floating bar, the quick panel and the rest. The engine runs in Codealong's server, a process of its own that the app is a view of (The server and the app, below).

Requirements

  • macOS 13 or later, with Xcode's command line tools (xcode-select --install)
  • Rust 1.96 or later (rustup) and Node 22.13 or later
  • Zig 0.17 (brew install zig), which builds Ghostty's terminal library for Codealong's own terminals (Ghostty's terminal library, below)
  • gh signed in (gh auth login) for PRs
  • For voice (an experiment): macOS 26 and Xcode 26, whose Swift compiler builds codealong-ear (scripts/ear.sh). Without them everything else builds, and Codealong says it can't hear
  • A terminal: Ghostty 1.3+, iTerm2, Terminal or Rex (a new config.toml picks the first of those installed)

Build and run

npm install
npm run tauri dev         # the app with hot reload
scripts/relaunch.sh       # build Codealong Dev, then quit it and reopen it from Applications
scripts/land.sh           # land your branch on main, with write access: push, its pull request through main's merge queue
scripts/catch-up-main.sh  # fast-forward the main checkout to origin/main (land.sh and relaunch.sh do too)
scripts/version.sh 0.3.0  # start a release: the version everywhere, committed and tagged
scripts/release.sh        # the macOS installer: universal, Developer ID, notarized (design/plans/releases.md)
scripts/installers.sh     # Linux (.AppImage, .deb, .rpm) and Windows (NSIS .exe) installers, as release.yml runs it
scripts/check-release.sh 0.3.0  # a release on GitHub as a download gets it: notarized, signed, its update
npm run snapshot          # print the board as a table without opening a window

Builds from relaunch.sh are Codealong Dev: a light icon and an id of their own, so they never pass for the Codealong installed in Applications. Each one replaces Codealong Dev.app in /Applications (~/Applications when that isn't writable), so Spotlight opens the latest build. Both use your settings and todos; whichever you open last quits the other, and the codealong command follows it. Both say they open Codealong's links (codealong://session/<key>, the CFBundleURLTypes in src-tauri/Info.plist), and Codealong Dev tells macOS at each launch that it's the one, so where both are installed a link clicked in a terminal or another app opens the build of the repo and never the other, which would quit it (lib.rs setup, os::apps claim_links). relaunch.sh opens the new build as codealong typed alone does, through macOS with the Dock's environment (install::open_as_the_dock_does). A Dock pin from when builds ran from the build folder is pointed at Applications, so the Dock doesn't show the app as a question mark.

Builds go to codealong-target next to the main checkout, one directory shared by every checkout and worktree (.cargo/config.toml); scripts/target-dir.sh prints it and has worktrees inside the checkout build there too. The workspace's own crates (codealong, codealong-sys, codealong-engine, codealong-peer, codealong-vt) build to the same files from every checkout, which cargo would take for fresh by their times alone and link another checkout's copy; so .cargo/config.toml names the checkout (CODEALONG_CHECKOUT) and every workspace crate reads it, and cargo rebuilds them whenever another checkout built them last (lib.rs CHECKOUT). Installing sccache (brew install sccache) and setting rustc-wrapper = "sccache" in ~/.cargo/config.toml (not the repo's) caches compiled non-incremental dependency crates (registry/git rlibs, C/C++ and assembly; not incremental workspace crates, proc-macros, or build scripts such as libghostty-vt-sys's Zig build) on disk across cargo clean, prune-target.sh, and branch switches on the shared target folder. Release builds take minutes and queue on one lock, so only relaunch.sh and release.sh make them; the engine the checks run is a debug build of your checkout, with its dependencies optimized (scripts/engine.sh). A landing builds nothing here: its checks run on GitHub (Keeping main working).

Tests on a busy Mac

This Mac often runs twenty agents' builds at once (a load average in the hundreds on ten cores), and a test that passes on a quiet machine can fail there with nothing wrong. What's known, so nobody spends an hour proving a failure isn't theirs:

  • A landing's checks run on GitHub, on machines with nothing else to do, so a test that only fails here under load doesn't hold a landing up. It still fails for you: run a cargo test that failed again by itself (cargo test <its name> -- --exact) before taking it for yours, and fix one that keeps turning up (it waits on the clock, or on another process) rather than leaving it to be rerun.
  • The ones seen so far: a_watching_device_links_with_a_code_and_reads (peers), reads_a_process_line_and_terminal_from_the_kernel (a process reparented between ps and sysctl, or ps timing out), the_first_scan_publishes_while_a_worktree_read_is_held (a 30 s limit), a_view_hears_what_it_starts_from_then_what_is_emitted, the tests under codex::ipc and launch::codealong, and a_process_tree_lists…. Each passes alone.
  • Unit tests get 30 s each (vite.config.ts), where vitest's 5 s timed out the tests that read every source file. A unit test never holds one run to a limit in milliseconds: the best of a few runs against a limit far from both what's right and what's wrong (syntax.test.ts's long-line test) says the same thing on any machine.
  • Headless Chrome sometimes never shows a page on a busy Mac: preview.sh exits 3 for that, which says nothing of the check, and checks.sh gives such a run one more go.
  • The browser checks read whatever this Mac has, so some fail for want of data on any given day (no session that used Chrome, nothing in Your turn): a check that fails on origin/main's UI over the same snapshot isn't your change's.

Keeping main working

Agents land dozens of changes a day, and every other session builds on what lands. Until 2026-11-20 a landing ran its checks on the Mac that made the change, one landing at a time: five minutes on a quiet Mac, forty with twenty agents building. Now they run on GitHub:

  • Nothing reaches main unchecked. scripts/land.sh pushes the branch as it is, opens its pull request and puts it in main's merge queue, which runs CI on the change as it would land, on top of main and of whatever is queued before it, and merges it when gate passes. The queue rebases: main stays a straight line, and its commits are copies of the branch's with ids of their own. The script rewrites nothing itself, so what lands is the commit it was asked to land, and a branch that doesn't apply on main is its author's to rebase and test again. A change whose checks fail is put out of the queue and stays its pull request: land.sh names the run, gh run view <id> --log-failed says why, and landing the fix takes the same pull request. Nothing is built or tested on the Mac, so landings don't wait on each other there.

  • CI is .github/workflows/ci.yml: the UI's build, linter and unit tests, and cargo test with warnings as errors on macOS and on Linux, which catches what a Mac can't see (code only macOS uses, a test that needed a harness's command line installed, a default that's macOS's). Which of them a change calls for is one table, land.sh's calls_for by the files it changes (scripts/land.sh --plan <path…> says which; src/land.test.ts pins it), and gate is the one check main requires: it passes when everything called for passed. scripts/land.sh --check runs all of it on your branch without landing. The repository is public, so the runners' minutes cost nothing, macOS's too.

  • The browser checks run on main, after what lands (.github/workflows/checks.yml: scripts/checks.sh --fixture, the list dealt into four sets across Ubuntu runners over persistent headless Chrome workers in scripts/preview/runner.mjs, against a Linux debug engine whose --snapshot --fixture runs as if on macOS via os::AsIf). They run post-merge so one run covers everything landed since the last green run without delaying every merge-queue entry. One run goes at a time, and while it does only the latest one waiting stays, so each covers everything landed since the last that passed, and a failure names that stretch. A check that fails there is run again by itself (--prepared, reusing the build and snapshots): failing again it fails the run, as one a change broke does; passing, it's unsteady on that runner and is warned of on the run with what it said, somebody's to find the cause of, and not a red main. CI runners are slower than a local Mac, so a check that reads a state the moment it can, or assumes instant layout/animation timing, is what flakes there (.claude/rules/preview.md). So a landing can still turn main red there, which is the next point's to catch. Before landing, run the checks that cover what you changed (scripts/checks.sh --fixture <names>); gh workflow run checks.yml --ref <branch> runs the whole list on a pushed branch.

  • What that takes on GitHub, set once in the repository's settings: a merged branch is deleted, and a ruleset on main requires the merge queue (rebase as its method) and the gate check. The organization's admins may bypass the ruleset, which is how a release's version commit (scripts/version.sh --push) still goes straight to main; CI runs on that push too. A pull request land.sh opened (it says so in its description) has a gate that passes with nothing run, since the queue's run is the one that checks it: so the queue is what makes that safe, CI asks for it each time and checks everything on the pull request when there's none, and land.sh refuses to land where main has no merge queue. It asks for a place in the queue for the commit it pushed and no other, rather than leave GitHub asked to merge the pull request when it can, which would hold for whatever was pushed to it after; it won't push to a pull request someone has set to merge that way. One that's in the queue as a commit its branch adds to (a review's fixes on top) it takes out of the queue first, since GitHub takes no push to a queued pull request's branch, and queues again as the new commit; one queued as any other commit it leaves alone. Any other pull request is checked as it's opened and pushed to, for whoever reviews it.

  • A red main is somebody's. It can still happen: the browser checks failing on what landed, a commit pushed past the queue, or the daily run of everything failing for a toolchain or a runner's image that moved. A Codealong schedule watches both workflows' runs on main with scripts/watch-main.sh, which prints each failed one once, and starts (or tells) a session to fix it:

    codealong schedule add "main is red" --watch scripts/watch-main.sh --every 15m \
      --thread --fresh-after 1d --worktree <the main checkout> --prompt-file <the words below, in a file>

    Its worktree is the main checkout, which stays (a session's own is removed once its work has landed, and the script's path with it). A watch's first look only notes what's there: a run already red when the schedule is made isn't told.

    A run on main failed (CI, or the browser checks); it's named below. Every session builds on
    main, so until it passes again they're all building on something broken.
    
    1. Read why: gh run view <its id> --log-failed. If a later run of the same workflow on main
       has passed since with the job that failed among those it ran (gh run list --workflow
       <ci.yml or checks.yml> --branch main --limit 5; a run that skipped that job says nothing
       of it), say so in a line and stop.
    2. Find the commit that broke it, between the last run that passed and this one, and fix it
       in a worktree of your own as CLAUDE.md's Landing work says: the smallest fix, and a test
       that would have caught it on a Mac where one can be written (a test that needed a
       harness's command line or macOS's defaults is made to hold on any machine).
    3. Land it with scripts/land.sh, which checks it on the way in. For the browser checks, wait
       for their next run on main (gh run list --workflow checks.yml --branch main --limit 1):
       your last message says whether it passed.
    
    If it failed for something no commit did (GitHub's runner, a download), say so and stop. If
    you've landed a fix for this already and it failed the same way again, stop and say what you
    tried: your user decides what's next.
    

Tests and checks

npm run typecheck                        # tsc
npm run lint                             # oxlint
npm test                                 # vitest
(cd src-tauri && cargo test)             # the engine, codealong-peer and codealong-vt
scripts/engine.sh                        # build this checkout's engine when it changed; print its path
scripts/preview.sh [view] [project]      # render the UI in headless Chrome against your real data
scripts/checks.sh --fixture              # the browser checks that pass on a made-up board: the gate
scripts/checks.sh [--base] [names…]      # every browser check in scripts/preview/, or some, on your real data

cargo test covers the model's rules, the harnesses' parsers, git and GitHub parsing, usage, config writes, deep links and terminal scripts. It passes on Linux too, less the tests of what only macOS has (#[cfg(target_os = "macos")]); see Linux below. scripts/preview.sh renders the UI with Tauri's IPC stubbed, for screenshots and scripted checks; its header lists the views and options. codealong --snapshot checks the engine's behavior without a window (.claude/rules/snapshot.md lists its modes).

npm test runs in plain Node, on pure functions and made-up data (src/testing/fixtures.ts). A test of a hook or of keys asks for a page of its own: its file starts with // @vitest-environment jsdom and imports src/testing/dom.ts first, which mounts a hook (mountHook), presses a chord with what the platform set types for it (press, with setPlatform) and brings the engine's stand-in (src/testing/tauri.ts: what the page sent, what each command answers, which window the page is, and events emitted to every window or to one). Unlike a browser check it runs on no one's data, so what it holds, it holds the same on every machine, in any order: what a module keeps for as long as its page lives (side.ts's side conversations, api.ts's board) is the next test's too, so a test gives it keys of its own. useWaitingQueue.test.ts and mainKeys.dom.test.ts are the ones to copy from, and ui/Quick.test.ts for a window's whole page, mounted and opened as the engine opens it.

The browser checks (scripts/preview/*-check.js) click through the windows and say what the app would have done. scripts/checks.sh --fixture runs the ones listed in scripts/preview/fixture-passes.txt against a made-up Mac the engine prints (codealong --snapshot --fixture, src-tauri/src/fixture.rs: three projects under /Users/me, sessions in every state, PRs, todos), which is the same on every machine, so a failure there is the change's. GitHub runs the list on main after what lands (Keeping main working); before a UI change lands, run the checks that cover it (scripts/checks.sh --fixture <names>), not all of it. PREVIEW_FIXTURE=1 scripts/preview.sh … takes screenshots of the same board, with nothing of yours in them (they're written to .preview/fixture, where the made-up Mac's build and snapshots are kept apart from yours). The other checks still need a real board, and fail on one for want of data: scripts/checks.sh --base <names> runs each failure again on the base commit's UI over the same snapshot and clears only the ones that fail the same way there. src/checks.test.ts runs both scripts over stand-ins for the engine and the browser.

Linux

The engine and the app build and run on Linux (X11, WebKitGTK 4.1), where some of what macOS gives the app has no counterpart. scripts/linux-vm.sh makes and drives a VM to build and try it in from a Mac (Ubuntu 24.04 under Lima, brew install lima; the VM's packages are in scripts/linux/lima.yaml):

scripts/linux-vm.sh                # create the VM (the first time) and start it
scripts/linux-vm.sh test           # cargo test in it, on a copy of this checkout
scripts/linux-vm.sh build          # tauri build: the binary and a .deb
scripts/linux-vm.sh run [secs]     # the app on the VM's own headless display; .preview/linux.png
scripts/linux-vm.sh shell [cmd…]   # a shell in the VM's copy of the checkout

The VM mounts nothing of the Mac's: it works on a copy of the checkout the script runs from, one for each checkout (under ~/checkouts, brought up to date over ssh by every command but start and shell), so sessions in different worktrees can use it at once, and its builds and node_modules never mix with the Mac's. A run has a home of its own there (~/run-home, kept between runs): its own config.toml, sessions and socket, and nothing of the Mac's.

What Codealong asks of the OS is in src-tauri/src/os/. What only one OS can call (AppKit and WebKit, GTK, Win32, the kernel's own calls) is an area there with a macos.rs, a linux.rs and a windows.rs (Windows below) that give the same functions, picked as it's built; that's the only place cfg(target_os) decides what's compiled, which a test checks. What merely differs, a path or a program to run, goes by os::current(), so both OSes' ways compile and are tested on either, a test asking as if on the other with os::as_if:

macOS Linux
os/windows/ non-activating NSPanels at their levels borderless windows kept on top through Tauri, screens and the pointer from GDK
os/procs/ sysctl and proc_pidinfo /proc
os/apps/, os/outline/ other apps through NSWorkspace, their icons, the Dock icon, the outline round a window nothing to do: no app is asked to come forward, and editors are listed by name
os/system/, os/exits/ Mach's memory figures, QoS classes, App Nap, kqueue /proc/meminfo, nice, pidfds and eventfd
os/sound/ NSSound, by name the freedesktop sound theme, through paplay
os/login/ a login item, through ServiceManagement's SMAppService an XDG autostart entry in ~/.config/autostart
os/dirs.rs ~/Library/Application Support/Codealong, Logs, Caches ~/.config/codealong, ~/.local/state/codealong, ~/.cache/codealong
os/open.rs open xdg-open, and an app's own command started by itself
os/secrets.rs the login keychain (security) the desktop's Secret Service (secret-tool)
launch::terminals() Ghostty, iTerm2 and Terminal through AppleScript; Rex through its command launch/linux.rs: each new terminal a tmux session, shown in the desktop's terminal emulator

CI (.github/workflows/ci.yml, its engine (Linux) job) builds and tests the engine on Linux for every landing that changes it, with warnings as errors; scripts/land.sh --check runs it on your branch without landing, and gh run list --workflow ci.yml says how the last ones went. On a version tag, .github/workflows/release.yml runs scripts/installers.sh on Ubuntu 22.04 to build signed .AppImage, .deb and .rpm installers for x86_64 and aarch64 (.deb and .rpm update at Restart to update; scripts/licenses.sh bundles third-party licenses).

What Linux goes without: the notch, the focus outline round a terminal on another screen (flash.rs), app icons in the editor menus, pictures of the windows for Improve Codealong, the Dock icon's status, the Claude and Codex apps (macOS's), Antigravity's and Cursor's sign-ins for their usage, and the menu bar (Tauri makes none on Linux), so what only it has: New window (⇧⌘N), Analytics… (⇧⌘U; the Analytics button at the foot of the sidebar opens it too), Set up Codealong… and Close idle sessions…. The windows' keys are written for macOS, and src/platform.ts presses and says them as Linux has them (⌘ is Ctrl, ⌥ and ⌃ are Alt); PREVIEW_PLATFORM=linux previews them. .claude/rules/linux.md has what was found there.

Windows

The engine and the app build for Windows 10 (1803) and later, x64 and Arm64, with WebView2. It's a first cut: it compiles, the engine's tests pass in the VM below, less those for what Windows hasn't yet, and the app runs there, but it's had little use, and some of what Linux has isn't there either (below). Two scripts check it from a Mac:

scripts/windows-check.sh [--tests]   # cargo check for Windows, cross-compiled here (cargo-xwin)
scripts/windows-vm.sh                # a Windows 11 Arm64 VM under QEMU, made the first time
scripts/windows-vm.sh test           # cargo test in it, on a copy of this checkout
scripts/windows-vm.sh build          # tauri build --no-bundle: codealong.exe
scripts/windows-vm.sh run [secs]     # the app on the VM's desktop; .preview/windows.png
scripts/windows-vm.sh shell [cmd…]   # PowerShell in the VM's copy of the checkout

windows-check.sh needs cargo-xwin, the x86_64-pc-windows-msvc target and Homebrew's LLVM (its header says how); it takes a minute or two, where the VM's first build takes many. The VM installs itself from Microsoft's ISO with no clicks (scripts/windows/: the answer file, OpenSSH at first logon, then Visual Studio's build tools, Rust, Node, Git for Windows and Zig over SSH), which takes an hour or two the first time. Microsoft's download page sometimes refuses a script; then the ISO is made from Windows Update's own files through UUP dump instead (scripts/windows/uup-iso.sh, which needs brew install aria2 cabextract wimlib cdrtools hivex), or WINDOWS_ISO=<file> takes one you downloaded. The VM has no window: scripts/windows-vm.sh screenshot shows its screen, and scripts/windows-vm.sh click <x> <y> clicks it at a point of that picture, for a screen of Setup's that waits on a click, as OOBE's check for updates once did ("Something went wrong", Skip).

Each area of src-tauri/src/os/ has a windows.rs beside its macos.rs and linux.rs, through Win32 (windows-sys). What macOS and Linux share, POSIX's, is a posix.rs where an area has both (os/procs, os/pty), and the flat modules pick by cfg(unix) and cfg(windows) inside:

Windows
os/windows/ borderless windows kept on top through Tauri; screens, the pointer and opacity through Win32
os/procs/ a Toolhelp snapshot, GetProcessTimes, the TCP table, and each process's PEB for its folder, environment and command line; no ps, so procs::list reads that table
os/sock.rs the server's socket is AF_UNIX there too (uds_windows)
os/pty/ Codealong's own terminals aren't on Windows yet (no ConPTY), and say so
os/system/, os/exits/ GlobalMemoryStatusEx, thread priorities, process handles waited on
os/sound/ PlaySound, the sounds in C:\Windows\Media
os/login/ a value under the registry's Run key, which Task Manager's Startup apps lists
os/dirs.rs AppData\Roaming\Codealong; logs and caches in AppData\Local\Codealong
os/open.rs the shell's own handler (rundll32 url.dll,FileProtocolHandler)
os/secrets.rs Credential Manager
launch::terminals() launch/windows.rs: Windows Terminal, running a new terminal's command in Git Bash

What Windows goes without, besides what Linux does: Codealong's own terminals, typing into a session's terminal, finding its tab and bringing it forward (Windows Terminal takes no scripts), tmux, Claude Code's and the Codex app's own sockets, a server handing its terminals to a new build, and the menu bar. On a version tag, .github/workflows/release.yml runs scripts/installers.sh to build x64 and Arm64 NSIS setup .exe installers (unsigned for SmartScreen; signed with the update key, installing updates at Restart to update). The windows' keys are Linux's (⌘ is Ctrl, ⌥ and ⌃ are Alt); PREVIEW_PLATFORM=windows previews them. .claude/rules/microsoft-windows.md has what was found there.

Ghostty's terminal library

Codealong's own terminals (src-tauri/src/terminals.rs) run on libghostty-vt, Ghostty's terminal emulator as a library: the server parses what a terminal's shell prints with it, encodes keys, the mouse and pastes for the program's modes, and sends the windows the screen to draw (src/ui/terminal/, which draws with WebGL2, or Canvas 2D where there's none). It comes through the libghostty-vt crate, whose build script fetches Ghostty's source at the commit the crate pins and builds it with Zig, so a first build takes a few minutes and needs the network; it compiles once into the shared build directory after that. GHOSTTY_SOURCE_DIR builds it from a checkout of Ghostty instead, for building offline.

The library is at 1.0 (Ghostty's vt-1.0.2 tag), whose C API keeps its promises across 1.x, but the Rust crate has no release on it yet, so it's pinned to a git revision in src-tauri/vt/Cargo.toml. That revision fixes the Ghostty commit and so the Zig it needs (its build.zig.zon's minimum_zig_version): 0.17 today, which CI installs too (.github/workflows/, scripts/linux/lima.yaml). Taking a newer one is a change of its own: move the revision, match the Zig version everywhere it's named, and run cargo test -p codealong-vt (whose tests feed the emulator escape sequences and check the screens, keys, mouse and pastes that come of them) and cargo test terminals (for PTY and hand-over tests). .claude/rules/libghostty.md has what the library does and doesn't do that the code relies on.

The snapshot format isn't among 1.0's promises: it's versioned apart from the library, and its version 1 has no binary-compatibility guarantee yet. So a newer revision may write snapshots (Terminal::encode_snapshot) its older builds can't read: a server handing its terminals to a new build (serve.rs hand_over) writes them with the old library and the new build reads them with its own. One it can't read leaves its program to draw the screen again (terminals.rs run), its scrollback lost, so a revision that changes the format is worth a word in the release notes. cargo test -p codealong-vt and cargo test terminals check a snapshot round trip within one build; across two builds, a server in a home of its own handed over to the next is the check (.claude/rules/terminals.md, Codealong's own terminals).

Icons and the mark

The logo master and brand notes live in design/brand. Run npm run icons to regenerate the UI mark, browser icon and native bundle icons. The mark's inner node shows the app-wide status: red for session errors, amber when you are needed (including PR review requests), blue for unread results, green while agents work, and light gray when idle, in that priority order. The project switcher, floating bar, browser icon and running Dock icon stay in sync across projects.

The screenshots in the README (docs/images/) are the real app's UI drawn against a made-up board, by npm run shots in the codealong-website repo; its studio/readme.mjs says which shots they are and copies them here, light and dark, each framed as a window on a landscape the studio draws itself (studio/frame.mjs). The film the README opens on (notch-demo.webp, an animated WebP) is its studio/reel.mjs: the same UI on the same landscape at dusk, driven through what waits on you and recorded frame by frame.

How the agent skill and plugin are packaged

skills/codealong/ is one skill in the Agent Skills layout (SKILL.md plus references/reference.md, generated from codealong --help by scripts/skill-reference.sh), read as-is by Claude Code, Codex, OpenCode, Antigravity and Cursor. The app ships it in its bundle and Settings › Agents (or codealong install, or adding an account in Settings) copies it into the skills folder of each account that isn't Claude Code, with a .codealong-version marker; at launch the app refreshes copies it made when the skill changed, including ones in folders of accounts you've since removed, and never touches a folder it didn't make. A copy someone edited is left alone: Settings › Agents marks it Edited, and replaces it only when asked (so does codealong install --account <name>).

The orchestrator is part of the same skill, references/orchestrate.md, which SKILL.md points an agent at when it's asked to run as one, so every harness has it from the one copy. That file has a skill's frontmatter too, and plugin/skills/orchestrate/SKILL.md holds a copy of it so the plugin offers it in Claude Code as /codealong:orchestrate (tauri.conf.json bundles it as the plugin's; Claude's plugin directory rejects symlinks, so plugin/skills/ and plugin/.claude-plugin/icon.png keep real copies synced by scripts/sync-plugin-skills.sh and checked by a test in skills.rs). references/visualize.md, laying the work in progress out on a board's canvas, is packaged the same way, as /codealong:visualize, and so are references/meetings.md, working from a meeting Codealong heard, as /codealong:meetings, and references/coordinate.md, splitting a piece of work across helpers that report back, as /codealong:coordinate. A new one is a file there with a skill's frontmatter, its name in scripts/sync-plugin-skills.sh (then run the script to write plugin/skills/<name>/SKILL.md), its line in tauri.conf.json, and its name in skills.rs's tests. So any edit under skills/codealong/, or to src-tauri/icons/icon.png, is followed by scripts/sync-plugin-skills.sh (scripts/skill-reference.sh runs it), or cargo test fails on the drift.

plugin/ wraps the same skill as a Claude Code plugin (.claude-plugin/plugin.json, a bin/codealong shim that finds the app, a SessionStart hook that runs codealong whoami --context, and a PermissionRequest hook that runs the hidden codealong session hook permission-request), and .claude-plugin/marketplace.json makes the repo a marketplace. The app ships the marketplace too (Resources/plugin-marketplace, with the skill from Resources/skills) and installs the plugin in each Claude Code account with claude plugin, from a copy it keeps in ~/Library/Application Support/Codealong/plugin-marketplace: the plugin is the one the app answers, and it needs no network or access to the repo. The copy's version is plugin.json's with a hash of the plugin's files after a +, and Claude Code updates a plugin whenever that string changes, so at launch the app updates the plugin it installed whenever its files, the skill included, changed. An account whose plugin comes from another marketplace (the repo's, added by hand) keeps it until you pick Use Codealong's copy. A Claude Code account with the plugin gets no skill copy, and one Codealong made there before is taken away, so sessions don't see the skill twice. The permission hook hands the request to the server over its socket and waits; the server holds it (claude/asks.rs) until it's answered in one of Codealong's windows or on another device, or answered or gone where the session runs, and the hook prints the decision, or nothing. It prints nothing and exits 0 when no server answers, and one older than the hook fails its unknown subcommand the same quiet way, so Claude Code's own prompt is always there to answer. A question (AskUserQuestion) is answered with the allow's updatedInput, its questions with your answers beside them; a plan (ExitPlanMode) is left to the prompt, since Claude Code drops a plain allow for it. With [sessions] live_replies on, the staged copy's hooks.json also has an async MessageDisplay hook (install.rs LIVE_HOOK, which the version's hash takes in), running the hidden codealong session hook message-display: it hands the server each batch of a reply as the terminal shows it, which claude/live.rs keeps until the record has the message. Changing the setting brings the plugin up to date in every account that has Codealong's copy (install::follow_live_replies).

A Codex account gets the skill copy and, beside it, a PermissionRequest hook of Codealong's in its hooks.json (codex/hook.rs), which runs the hidden codealong session hook codex-permission-request through the staged plugin's bin/codealong shim. Codex runs it as a call needs approving, before its own prompt, and it writes the request down as a note in ~/Library/Application Support/Codealong/codex-asks and returns at once with nothing printed, so Codex asks as it always does; the reader takes a note as the prompt that's up while its turn is open and its call has no result (codex/asks.rs). Codex runs only hooks you've trusted, so the hook is trusted as it goes in, through Codex's own app-server as its terminal UI's review does it (appserver::trust_hook), and taken out again where that fails.

The command talks to the server over codealong.sock next to the config (JSON lines, one request and reply per line, mode 0600), and the server answers with the board the windows have and applies todo changes through its engine, so nothing writes over anything. A command that needs it starts it when none answers. Where it can't (an agent's sandbox may not let a command reach launchd) or CODEALONG_NO_SERVER is set, todo changes go to todos.json under an advisory lock the server takes too, and sessions come from a light scan (no git, PRs or visitors).

The server and the app

Codealong is two processes of one binary. The server, codealong serve (serve.rs), runs the engine and everything that goes on whether a window is open or not: your other devices, the sessions Codealong runs itself over ACP and their side conversations, the schedules, the automatic reviews and the rest of what acts on a published board, the token ledger, and the socket. The app is a view of it (view.rs): it keeps a copy of each board the server publishes (view::Mirror), hands it to its windows as they've always heard it (windowfeed.rs), and cuts the floating bar's feed, the desktop cards and the Dock icon from it. A window's command that reads or changes what the server holds is a call of the server's (calls.rs), which the app's invoke handler hands it over the socket (lib.rs forward), its arguments and answer as a Tauri command's; the windows' code is the same either way. What only a window can do (the panels, menus, opening a file or a link on your screen) is the app's own, in lib.rs. The server keeps a connection open to each app it has (Request::Subscribe, views.rs) and writes it every board, a reply as it streams, your devices and the rest, one JSON line an event, a ping every few seconds; it asks the latest app to show a session (codealong session open) or to work a board out, which the main window does.

The server is a launchd job (os/background.rs, Linux: a process in a session of its own), so it's nobody's child: not the app's, nor that of a command run in an agent's sandbox. Its label is named for the folder of Codealong's files, so a copy tried with a home of its own has a server of its own; its output goes to server.log in Codealong's logs folder, and launchd starts it again if it crashes, but not when its start fails (serve::run ends without an error then). The app starts it as it opens, and connects again whenever it goes; the command starts it when none answers, in your own home only (os/dirs.rs home_is_yours: in a test's throwaway home it reads the files, and server start refuses); codealong server stop stops it and the app with it. A server whose socket path is too long for the system is never given to launchd (serve.rs launch_for). Quitting the app leaves it, and the agents it runs, going.

A build's engine is a hash of the Rust it's built from (build.rs CODEALONG_ENGINE), not of the windows' pages it carries too. An app keeps the server it finds when it's its own build, the same binary and engine (serve.rs ours), so a relaunch that changed only the windows leaves the sessions Codealong runs going (relaunch.sh replaces the bundle where it was). One that changed the engine, at the same path, asks the server to become the new build in place (Request::HandOver, serve.rs hand_over): it hands over its terminals (terminals.rs) and its ACP adapters, with their sessions' turns, pending permissions, queued prompts and model switches (acp/handover.rs). An adapter that can't go across cleanly (its npm packages updated, or told other client capabilities) is cut off and carried on once the new server is up ([sessions] continue_after_restart), and so is everything on Windows, which hands nothing over, and on a server of another binary, which is replaced. Codealong beside Codealong Dev, or a debug build in a worktree, is another binary, so what the server installs and starts always comes from the app you opened; on a Mac only an installed app's command starts a server by itself. One server runs for a folder of files, holding a lock beside them for its life (server.run.lock), however it was started. Of two apps, the one opened last stays: one opening asks those opened before it to quit, the server tells an older one that connects after a newer to quit, and an older one finding a newer one's server of another build gives way rather than replacing it (views::Info::since, serve::GIVE_WAY). The server tells an app of another build that connects that it's another's, and that app starts its own. A window's command waits for the app to be connected to its own server before it's sent, and is never sent twice. The app counts each board's rev itself, so a new server, whose count starts again, is never taken for older than what the windows have. When launchd won't take the job, the app runs the server in itself, as the engine always was.

Code map

Rust files in the headless engine live under src-tauri/crates/engine/src/, shared OS/HTTP/storage/utility primitives under src-tauri/crates/sys/src/, peer protocol/model under src-tauri/peer/src/, terminal emulation under src-tauri/vt/src/, and the Tauri desktop shell under src-tauri/src/.

Path What
src-tauri/crates/sys/src/ codealong-sys: OS abstraction (os/, the only place cfg(target_os)/cfg(unix)/cfg(windows) and os::in_tests() live), HTTP/curl helpers (http.rs), atomic JSON storage (store.rs), throttle::background (throttle.rs), process/shell utilities (procs.rs, util.rs, url.rs)
src-tauri/crates/engine/src/automate.rs Shared automation primitives used across schedules, auto-review, and experiments: backoff/retry, wake-on-idle, copy hand-over, and bounded background runners
src-tauri/crates/engine/src/config.rs, config/ config.toml parsing and defaults (config.rs), review settings (config/reviews.rs), validation (config/check.rs), and in-place locked edits (config/edit.rs)
src-tauri/src/engine.rs, engine/, carryon.rs, throttle.rs The engine's one thread, which owns every cache: its messages, its fields, the first scan and the loop that takes what GitHub, git and the watcher bring (engine.rs), and its parts, a file a subject: the handle everything else reaches it through (handle.rs), the harnesses' readers and the process table they look at (readers.rs), the repo scan (reposcan.rs), git workers, spaced per worktree (gitruns.rs), file watching (FSEvents) and what a batch of changed paths calls for (watch.rs), what sessions' records show of worktrees, PRs, pages and Chrome tabs (records.rs), usage and the other reads on a clock of their own (polls.rs), state.json and todos.json (seen.rs, todofile.rs), what's asked of the decision models and the emblems (jevasks.rs, emblems.rs), the sessions with all the engine knows laid over them (sessions.rs), composing the board and publishing it, git's results in batches (publish.rs), what goes wrong in the background as notices (trouble.rs), opening things where they live (open.rs), one pass for --snapshot (pass.rs), and the guard that carries its thread on through a panic (guard.rs, over carryon.rs)
src-tauri/src/windowfeed.rs, src/boardPush.ts What the windows are sent of each board: the first whole, then the fields, lanes, sessions and PRs that changed, put back together in each window, which reads the board whole when it misses one (api.ts onBoard)
src-tauri/src/board.rs, board/ The model's rules, pure and tested, a file a kind: what a board is made from, composing it, where a session is listed and in what order (board.rs), a session's status from what each harness recorded (sessions.rs), what Codealong lays over it, from Jev's read to a snooze (overlays.rs), where its work stands (standing.rs), PRs with their worktrees and sessions (prs.rs), a worktree's reuse and cleanup (worktrees.rs), bays, headlines and open targets (headlines.rs), and what their tests share (fixtures.rs)
src-tauri/src/claude/ Claude Code and the Claude app's Code sessions, a file a subject: the adapter and reader (mod.rs), the registry and the background service's records, transcripts and the conversation one holds, permission modes, the requests the plugin's hook hands the app (asks.rs), terminal dialogs read off the screen (dialog.rs), the replies its MessageDisplay hook does (live.rs), the app's records, the ways a prompt gets in (the background service's socket, a session's own, the app), starting, forking and seeding a new account from another's (seed.rs), sign-in checks (signin.rs), names, side conversations, what its Bash tool is running, folder trust, plan usage, and a repo's WorktreeCreate/WorktreeRemove hooks and a job's record as a worktree goes (teardown.rs)
src-tauri/src/codex/ Codex, in its app and its terminal UI: the adapter and reader (mod.rs), rollouts and the thread index, the conversation a rollout holds, its app-server (archiving, renaming, new threads), the socket the app's windows talk on (starting, steering and stopping a turn), its terminal UIs, permission hook and asks (hook.rs, asks.rs), approvals read off the terminal's screen where the hook can't hand one over (screen.rs), questions its agent asks without waiting (aside.rs), sign-in checks (signin.rs), limit reset credits (resets.rs), side conversations and plan usage
src-tauri/src/opencode.rs, antigravity.rs, antigravity/, cursor.rs, cursor/ Harness adapters: OpenCode's database and background service; Antigravity's app and command line (agy): their conversation summaries and transcripts, agy acp's launch and permission rules (acp.rs), PR marks and pushes (records.rs), renames where Antigravity keeps titles (rename.rs), the agent mode kept through Codealong's runs (kept_mode.rs), processes and commands left running (processes.rs), read caches (cache.rs), the files it writes for you (artifacts.rs), emblems drawn (draw.rs) and throwaway /side runs (side.rs); Cursor's app (its chats in its state database) and command line (cursor-agent), their transcripts and processes, what a read of the command line's chats keeps for the next (cursor/located.rs), and its sign-ins for usage and Privacy Mode (cursor/auth.rs)
src-tauri/src/acp.rs, acp/ Sessions Codealong runs itself: an Agent Client Protocol adapter process per account, turns, permission requests, the streamed reply, and model or effort switches queued until a turn ends; forms its agent asks you to fill in (forms.rs), the mode a session starts in (start_mode.rs), a message put into a running turn (steer.rs), and handing adapters and their sessions across a server update (handover.rs)
src-tauri/src/handoff.rs, src/handoff.ts, src/ui/MoveAccount.tsx, src/ui/MovedNote.tsx, src/useMoveFollow.ts Moving a session to another account or agent: Claude Code's own copy between its accounts, else a brief of the work and the full transcript in files/handoffs/; which accounts a move offers and the quick confirmation; the line above a moved session's box; and the windows that follow the copy in place
src-tauri/src/exhausted.rs, src/accountLimit.ts Accounts at a usage limit: agents' starts and sends turned away from one, with when it resets and the accounts with room, and the warning in a session's header before its next turn would stop there
src-tauri/src/chatter.rs, src/ui/PeerTalkBits.tsx Messages between sessions (chatter.json, a day of them): the warning when two go back and forth, the pairs codealong changes names, and the messaging and owner chips
src-tauri/src/experiments/, src-tauri/src/cli/exp.rs, src/experiments.ts, src/ui/UsageExperiments.tsx Experiments ([experimental] experiments, codealong exp): runs in experiments.json with each run's files in experiments/<run>/ (mod.rs: arms, seats, presets, judge passes and the recommendation), the server's runner that takes each trial through worktree, worker, review, fix and gate and starts the judges (runner.rs), their prompts (prompts.rs), snapshots, blinded diffs and the judges' clean copy of the base (gitops.rs), the leaderboard, costs from the ledger and adopt, discard and cancel (report.rs), and the Analytics window's Experiments tab with its words (pure, tested)
src-tauri/ear/main.swift, src-tauri/src/ear.rs, scripts/ear.sh Hearing: codealong-ear, a helper in Swift (Apple's speech recognition has no other interface) that captures the microphone, what the Mac plays or what some apps play, and says what it heard as JSON lines; the engine's way to it; and the script that builds it, since cargo doesn't. relaunch.sh, release.sh and engine.sh put it beside the engine
src-tauri/src/listen.rs, src/listening.ts, src/ui/Listening.tsx Sessions that listen to a meeting: the transcript, when a session is told what's new and in what words, the roles (notes, coach, requests), taking one up again after a restart; in the windows, the meeting drawn in the session's conversation, the strip over its box, its chip and the dialog that sets one up
src-tauri/src/echo.rs Speakers or headphones, worked out from the sound: whether a listening's microphone hears what the Mac plays (how quiet it gets while the Mac is loud against while it's silent), from what the Mac plays through as a first guess, for a listening's strip to say on speakers; and what of the microphone's lines repeats the Mac's (Repeats), compared by how the words sound, left out of the transcript and of the words shown as they're said
src-tauri/src/meetings.rs, src/meetings.ts, src/ui/Meeting.tsx, src/ui/Meetings.tsx Meetings: the calendar read through the helper (EventKit), the rule for which meeting is on offer and when, taking one (a session started as a chat, which listens as its note-taker) or passing on it, and the folder a meeting's transcript, notes and meeting.json go in; the offer as the bar, the notch and the main window draw it, and your meetings (the day ahead and the ones heard) in the main window's Meetings dialog
src-tauri/src/dictation.rs, src/talk.ts, src/said.ts, src/ui/Said.tsx A key held to talk: hearing while it's down, then what was said typed where the caret is, into a session's box, or sent to the orchestrator; what the bar shows of it, and of a listening session's cue
src-tauri/src/side.rs, src/side.ts, src/ui/SideStrip.tsx Side conversations: a throwaway copy of a session's conversation, run by its harness (Adapter::side), asked from the reply box with /side and shown above it, or popped out into a window of its own (kept.rs); what was asked and answered, kept to read later (sides.json)
src-tauri/src/suggestions.rs, src/ui/SuggestedReplies.tsx Suggested replies: what another session suggested a session's user send it (codealong session suggest, suggestions.json), kept until the session moves on (board::suggestions_hold), and the list above the reply box that sends one with a click; for questions a session asks, choices of their own picked in its question box (suggestions::picked)
src-tauri/src/repos.rs, git.rs, github.rs, ghpoll.rs Repo discovery, callsigns, worktrees, git status, PRs, and when GitHub is asked for them
src-tauri/src/held.rs The repo scan's reads of folders it doesn't own, each on a thread of its own, so one macOS holds for a privacy prompt holds up only that folder
src-tauri/src/launch.rs, launch/ghostty.rs, launch/iterm.rs, launch/terminal_app.rs, launch/rex.rs, launch/tmux.rs, launch/codealong.rs, launch/linux.rs, launch/windows.rs, launch/stage.rs Terminal profiles: Ghostty, iTerm2 and Terminal through AppleScript, Rex through its command (a session's tab found exactly, typing, closing), tmux, Codealong's own terminals, on Linux tmux shown in the desktop's emulator, on Windows Windows Terminal running Git Bash, deep links, and staged launch tests (stage.rs)
src-tauri/src/terminals.rs, src-tauri/vt/, src/ui/terminal/ Codealong's own terminals: PTY threads and server hand-over (terminals.rs), the codealong-vt workspace crate wrapping libghostty-vt (vt/src/{lib,screen,keys,queries}.rs), and the windows' WebGL2/Canvas 2D terminal renderer (src/ui/terminal/, src/clipboard.ts)
src-tauri/src/editors.rs, src/editors.ts The editors a folder opens in: the ones Codealong knows, found where Mac apps are installed, and the Open in menus
src-tauri/src/flash.rs Outlines a focused terminal that came forward on another screen
src-tauri/src/caret.rs, src/caret.ts A text cursor WebKit stopped drawing in a window you type in: typing into a page that says it isn't focused hands it its focus again, and the perf log says what macOS said of the window
src/typingTrace.ts With the perf log on, what moved the text cursor in a session's reply box, in each window: typing, drafts from another window, focus, and the page's own calls that place the caret
src-tauri/src/previews.rs, src-tauri/src/chrome.rs, src/ui/PreviewBits.tsx Previews: each worktree's URL and Chrome profile (previews.json), the servers listening in worktrees' folders (procs::listeners, the kernel's socket lists), their front pages read once, a kqueue for their exits; Chrome's profiles and opening a page in one; the row's chip, the panel's section and the URL sheet
claude/transcript.rs (Background), codex/background.rs, src/background.ts, src/ui/BackgroundBits.tsx What an agent left running in the background (Session::tasks): Claude Code's shells and Monitors from its transcript, Codex's background terminals from its rollout, what each printed and Stop (Adapter::task_output, stop_task); the once-a-minute watch of a command left running, for Claude Code and agy (procs.rs, antigravity/processes.rs); the header's chip and list
src/ui/ContextMeter.tsx How full a session's context window is, in its reply box's foot (Session.context, from each harness's latest call), and on hover what the session has cost
src/ui/UsageDialog.tsx, src/spend.ts The Analytics window (View › Analytics…, the usage bar): what sessions used and cost from the token ledger, its tiles, charts and table, and the words and sums for them (pure, tested)
src/ui/UsageAnalytics.tsx, src/analytics.ts, src/ui/UsageChart.tsx The Analytics window's Your part and Sessions, with [experimental] analytics on: who began each turn and what your prompts did, how sessions began and how you left them (analytics.rs), their series, words and sums (pure, tested), and what every chart of the window shares
src/ui/JevUsage.tsx, src/jevUsage.ts Settings › Decisions' usage: what Codealong's requests to decision models used and cost today or over the last days, by the feature that asked and the model that answered, and the sums and words for it (pure, tested)
src-tauri/src/decisions.rs, decisions/, src-tauri/src/jev.rs, src/decisions.ts, src/ui/DecisionsPane.tsx Decision models: which one may read a project's or a session's words (for_project, for_session, Decider::carries), asking it with fallbacks, the providers' keys, and an adapter a provider (typesafe.rs, openai.rs, gemini.rs) that translates Jev's request (jev.rs: the body, reading answers, words, images) to its own and back; the same rules for Settings (pure, tested) and Settings › Decisions (DecisionsPane.tsx)
src-tauri/src/boundary.rs, src-tauri/src/signin.rs, src/boundary.ts Boundary routing groups and provider-verified commercial sign-in (codealong account check, veiling session text from outside sessions, Settings › Routing warnings)
src-tauri/src/idle.rs, src/ui/CloseIdleDialog.tsx Close idle sessions: which sessions can close or only be archived, and why (pure, tested), and closing and archiving them
src-tauri/src/stale.rs, src/ui/CloseStaleDialog.tsx Close stale terminals: every terminal tab from the process table, when its device was last used (a redraw of every tab not counted: Uses, which the engine updates every tick), what it shows and whether closing it loses anything (pure, tested), and closing the ones picked
src-tauri/src/worktree.rs, src-tauri/src/cleanup.rs, claude/teardown.rs, src/ui/CleanUpDialog.tsx Worktree lifecycle: creating git worktrees under <main>/.codealong/worktrees/ (or via trusted WorktreeCreate hooks) for harnesses without CLI --worktree and hosted sessions (worktree.rs, made-worktrees.json); Clean up worktree (board::cleanup, pure, tested, on each lane), checked again against git as it goes; the repo's own WorktreeRemove hook or git removing it, then claude rm for a background job that held it; Mark as done on such sessions; the dialog that asks first
src-tauri/src/starting.rs, src/ui/StartingPanel.tsx Pending agent starts (Board.starting): helpers that haven't made a session yet, reading stuck terminal screens, offering choices or stopping them; the panel a start's row opens, with its screen, its choices, its prompt and Mark as done
src-tauri/src/resets.rs, src/resets.ts Plan limit reset credits an account holds, read and redeemed from its card in the usage bar
src-tauri/src/glass.rs, src/glass.ts, src/styles/glass.css macOS Liquid Glass vibrancy behind board windows and the quick panel ([appearance] glass), and the floating bar's pill (bar.rs fit_glass)
src-tauri/src/load.rs, src/machineLoad.ts, src/ui/LoadTag.tsx Machine load readings (Board::load, DeviceInfo::load), the Machine strained chip and card, and the quick panel's calmer-machine offer
src-tauri/src/clones.rs Cloning the repos a project covers that a PR waiting on your review is in, with no checkout here, so it's listed and reviewed
src-tauri/src/orgavatars.rs Cached GitHub organization avatars (org-avatars/ in the cache folder) for the project switcher, the All projects badges and the chips and headings that name another project's places; kept a day, fetched again on ⌘R
src-tauri/src/start.rs, src/start.ts New sessions: where each account can start one, the launch it makes, the agent menu (every account on every model, and the effort levels) and Auto's pick; and going on with one that isn't running, by the same rules (resume)
src/newSession.ts, src/ui/NewSession.tsx A start from the quick panel with nothing typed, in the background or In Codealong: a new session in Sessions' panel that waits for its first prompt and starts only once it's sent
src-tauri/src/quick.rs, src/quick.ts, src/quickRows.ts, src/quickKeys.ts, src/useFolderLook.ts, src/useRemoteOptions.ts, src/ui/Quick.tsx, src/ui/QuickRows.tsx, src/ui/QuickBits.tsx The quick panel: its window (a panel that takes the keyboard over any app), its shortcut and the waiting window's, and its page (what needs you, finding sessions, starting one). Quick.tsx has the page's state and what it does; quick.ts and quickRows.ts what it lists; QuickRows.tsx and QuickBits.tsx draw the list and the pieces around it; quickKeys.ts has its keys, as functions of the key and what the panel has; useFolderLook.ts and useRemoteOptions.ts resolve typed repo paths and remote machine start options. ui/Quick.test.ts mounts the whole page and presses them
src-tauri/src/waiting.rs, src/ui/Waiting.tsx The waiting window: an ordinary window, made when first asked for and hidden on close, that keeps where it was, comes from ⌥⌘., Window › Waiting on you and ⇥ in the quick panel, and works through what waits on you one card at a time (quick.ts windowRows, queue.ts, TodoCard.tsx)
src-tauri/src/frames.rs Where an ordinary window was, for the next launch: the main window's window.json and the waiting window's waiting.json, noted as it moves and written once it stops, and where one opens (start_frame)
src/ui/StartControls.tsx, src/startAccounts.ts Where a session goes and on what, as the start row and a stopped session's box both draw it (the places, a model menu's lines, the effort row), and this Mac's accounts as they offer them, read once a minute
src-tauri/src/harness.rs The interface each harness implements: an Adapter for a session (its record and conversation, what it waits on you to allow, opening, sending, starting, searching, renaming with src/ui/RenameDialog.tsx) and for an account, and a Reader that reads its sessions for the board; .claude/rules/adding-a-harness.md lists it all
src-tauri/src/transcript.rs, src-tauri/src/glance.rs, src-tauri/src/sentfiles.rs, src/liveReply.ts, src/sentFiles.ts, src/ui/SessionPanel.tsx, src/ui/SessionHeader.tsx, src/sessionContext.ts, src/ui/SessionThread.tsx, src/ui/MessageCard.tsx, src/ui/SentFiles.tsx, src/ui/SessionReply.tsx, src/ui/SessionAgent.tsx, src/ui/ModelMenu.tsx A session's conversation, read a page at a time from its own record, the panel that shows it, streaming replies throttled to frames (liveReply.ts), collapsible Codealong and peer message cards (glance.rs, MessageCard.tsx), inline files an agent sent (sentfiles.rs, sentFiles.ts, SentFiles.tsx), and the box that sends it messages or answers what it waits on, with its account, model and effort as one chip, and for one that isn't running, where it goes on and on what
src/turnFolds.ts, src/toolDisplay.ts How a conversation shows tool calls ([appearance] tools): a finished turn folded into one Worked for … line, runs of calls summed up, and what Zen leaves out (pure, tested)
src/ui/Markdown.tsx, src/ui/MarkdownPreview.tsx, src/ui/LocalImage.tsx, src/ui/fileActions.tsx, src/filePaths.ts Replies' Markdown, carousels among it; links and paths to files on your Mac and what a click or right-click on one does, the preview a Markdown file opens in, and images a reply draws from your Mac (codealong-file://, sentfiles.rs)
src-tauri/src/peek.rs, src/ui/Peek.tsx The floating bar's peek: its window (a panel under the bar that takes the keyboard only on a click), where it opens for a pill and when it closes. What it shows is the session's card (ui/SessionCard.tsx), as the waiting window does
src/ui/Notch.tsx, src/ui/NotchSession.tsx, src/ui/NotchReview.tsx, src/ui/NotchTodo.tsx The bar docked in the notch: its states (closed, the pills, a session, a review, a due todo or the end of what waits under them) shown through one clip, and what it shows in place of a peek: which session, PR or todo, the queue of them it works through and its keys
src/ui/QueueEnd.tsx The end of what waits, where the notch and the waiting window work through it: nothing (else) waits, and how the last one went
src/ui/PrCard.tsx, src/ui/PrStrip.tsx, src/ui/PrBox.tsx, src/review.ts A PR waiting on your review as a card of its own, in the notch and the waiting window: the PR panel's details with the strip over them (PrStrip.tsx, over the panel too: what's commonly done to the PR as buttons that say their keys, and the keys), the box that approves, comments or asks for changes (PrBox.tsx, fixed at the foot of the panel too, with the line over it saying where the PR's review stands), the PR's menu; and Review with…, which starts a review session on an account or opens the Codex app's review page
src/ui/SessionCard.tsx, src/ui/cardHost.ts A session as a card of its own, for the peek, a session kept on the desktop, the session in the notch and the waiting window: the session's panel with its menus, what's around it and its shortcuts wired once; and, for the windows that aren't the board's, the session kept up with the board while its card is up
src-tauri/src/kept.rs, src/kept.ts, src/ui/useSizeGrips.tsx Sessions kept on the desktop from the peek or the notch, sessions popped out of the main window's panel, and side conversations popped out: a window each, made as the peek's is, kept.json, where a popped-out one opens, sizing (the edges a frameless window is dragged by) and closing. Peek.tsx draws them too; kept.ts has the windows that show sessions in panels show a kept one's place rather than a second copy
src-tauri/src/search.rs Searching what was said in sessions: an in-memory index of prompts and replies, read once per file and then from where it stopped
src-tauri/src/skills.rs, src/skills.ts, src/useSkills.ts, src/ui/SlashList.tsx Skills by name: the folders each harness reads them from (Adapter::worktree_skills, account_skills) listed once by name with how each harness is told to run one, the / lists of the quick panel and the reply box, the repo a skill picks and the accounts it leaves out
src-tauri/src/route.rs, src-tauri/src/starts.rs, src/route.ts Suggestions in the quick panel: the request to the project's decision model and reading its answer back, how your past starts weigh a new worktree, and which suggestions the panel shows
src-tauri/src/todojev.rs Decision models on todos: which todo a new session is for, whether a todo's work looks done, and a todo's suggested project, labels and dependencies
src-tauri/src/send.rs Sending a prompt to a session that's already going: its harness's ways in tried in order, typing into its terminal and resuming it (start::resume), a way of the harness's own by its module (send::Own)
src-tauri/src/outbox.rs An agent's message (or a side conversation's) for a session that waits on its user to answer a prompt, held in held-messages.json and sent once it doesn't, or dropped with word to its sender
src-tauri/src/terminal.rs Commands run in your terminal: an agent's (codealong terminal run), its request held on the command's connection while its session waits on you for it, and yours (! in the box, Run on a block in the conversation; actions.rs run_command), whose session is told what it printed once it ends (report_ended); the run's folder, the wrapper its tab runs under script(1), what it printed rendered as a screen ends up showing it, and stopping it as Ctrl-C does
src-tauri/src/runcode.rs, src/ui/RunButton.tsx Run on a code block and ! in a session's box: the lines of a shell block to run for the session in a new terminal (comments out, here-documents and quoted text whole), the commands on the PATH that make a block with no language one, and the button
src-tauri/src/peers.rs, peerfeed.rs Your other devices: links, connections, and the feed of worktrees and sessions sent a change at a time; design/plans/devices.md has the reasoning
src-tauri/src/shared.rs The automations your machines share, so one of them runs each: where each stands ([devices] automations) and whether it's around; autoreview.rs reviewer_of picks which reviews a PR, schedules/machines.rs line which runs a schedule
src-tauri/peer/ codealong-peer, what goes between devices: the protocol (each side proves its device key), link codes and iroh, feeds, the requests and their answers, the worktree and session model, conversation message glances (glance.rs), the schedules your machines share, and a device that only watches. The iPhone app (codealong-ios) builds on it; design/plans/ios.md has the plan
src-tauri/src/wiretypes.rs, src/testing/generated/{wire,commands}.ts, src/testing/modelFields.ts, src/testing/wireCompat.ts Generates TypeScript wire definitions and the calls!/APP_COMMANDS command manifest from Rust via ts-rs (CODEALONG_WRITE_FIXTURES=1 cargo test -p codealong --lib wiretypes), and holds src/types/ and src/api/ structurally to them during npm run typecheck
src/api.ts, src/api/ The only place the windows talk to Rust, split by domain (core.ts, board.ts, sessions.ts, side.ts, prs.ts, settings.ts, todos.ts, devices.ts, terminals.ts, voice.ts, windows.ts) and re-exported from src/api.ts; uses typed serverCall (against calls.rs) and appCall (against lib.rs)
src/testing/ What only the tests import: fixtures.ts builds whole sessions, worktrees, PRs and boards from what a test says of them; dom.ts mounts a hook on a jsdom page and presses keys on it, for the test files that ask for one, tauri.ts stands in for the engine under src/api.ts there, and menus.ts reads the native menus the page asked for and picks from one
src/App.tsx, src/main*.ts, src/sideLists.ts, src/sectionFolds.ts, src/viewQueue.ts, src/keysShown.ts, src/ui/MainBar.tsx, src/ui/DoneHelpers.tsx, src/use*.ts The main window. App.tsx holds its state and wires its views, panels and dialogs together; what isn't state is beside it, each with a test: mainViews.ts the views and ages, boardLists.ts what each view lists, sideLists.ts what the sidebar lists and which filters are on, sectionFolds.ts collapsible Sessions sections, viewQueue.ts each view's Next queue, keysShown.ts shortcut visibility ([appearance] show_keys), mainSelection.ts what's selected and which panel shows, mainKeys.ts its keys, mainCan.ts what it can do to a session or a worktree, mainGroups.ts and mainHelpers.ts what a group's heading and a helpers chip do, canvas/cardActs.ts a canvas card, accountActs.ts an account, ui/MainBar.tsx its title bar, and ui/DoneHelpers.tsx asking what becomes of unfinished helpers on Mark as done. State that keeps to itself is a hook a cluster, with its effects: useListFind.ts, useNewSession.ts, usePrMenus.ts, useSchedulesView.ts, boards/useBoardEdits.ts, useRevealAsks.ts, useShownTerminal.ts, useShownNotices.ts, useSettingsAt.ts, useZoomReload.ts, useBarPlace.ts, useRevealFind.ts, useSavedViews.ts, beside useTodoView.ts, useListPicks.ts and useViewQueues.ts
src/groups.ts, src/groupPrefs.ts, src/ui/Groups.tsx, src/rowSignal.ts The lists grouped by project, repo or worktree (Sessions, PRs, Todo, Schedules): the groups and what folds in them (pure, tested), their order and which are folded, kept for each kind of group and each list, the headings; and what a row leaves out so it says what's new (its worktree chip, the helper, run and side chips shown only while one is active, and the menu items that list them)
src/windowFind.ts, src/ui/WindowFind.tsx, src/ui/clips.ts ⌘F window-wide find across the list, panels and conversation, and highlight clipping around sticky and overlaid elements
src/types.ts, src/types/ The windows' types of what the engine sends them, a file a subject under src/types/ (a session, a worktree, pull requests, the board, config.toml, accounts, the conversation, todos, schedules, devices, voice…), each saying which Rust it mirrors; types.ts re-exports them all and is what everything imports, and its header says which file holds what and where a new type goes
src-tauri/src/tailnet.rs, devicekey.rs Reaching them on your tailnet through Tailscale's command (iroh is in codealong-peer), and this device's key in the keychain
src/menus.ts, src/contextMenu.ts Right-click menus of sessions, worktrees, PRs and todos, each defined once and the same in every window (each says what it can do); native menus through Tauri
src/snooze.ts, src/ui/SnoozeDialog.tsx, src/ui/SnoozeSuggestion.tsx Snoozing a session or a review: the Snooze menus and their chords, Pick a time…, and the snooze offered until a reply's later time, a usage limit's lift or its account having room again (suggestedSnooze, ⌃⌘8; board::room_back); the engine keeps snoozes in state.json
src/devices.ts, src/useDevices.ts, src/ui/DevicesSection.tsx Other devices' worktrees in the views, followed beside the board by every window that shows them, and Settings › Devices
src-tauri/src/shown.rs What the windows show: the board and your other Macs' worktrees beside it, which the bar's feed, desktop cards, the lines between them and a session for the peek are cut from; the board alone is what the engine acts on
src/notices.ts, src/ui/Notices.tsx Notices: what isn't working in the background, the engine's and a window's own, as a chip that can be dismissed
src/tips.ts, src/ui/Tip.tsx Tips on using Codealong: the one list, each tip with the places it shows and its keys from the chord tables, and the box that shows them where a window waits on what it reads
src/ui/Sidebar.tsx, src/savedViews.ts The sidebar: the view and what narrows it, open or folded to a rail, and saved views
src-tauri/src/cli.rs, server.rs, install.rs The codealong command (clap; JSON or tables; the server over its socket, started when none answers, else the files), the server's socket, and putting the skill and the command where agents find them. cli.rs has the commands as clap reads them, whose help is the skill's reference, and the dispatch (run)
src-tauri/src/cli/ The command's handlers, a file for each family of commands: client.rs (Client: the server, or the files), lookup.rs (the session or worktree a command's words name), whoami.rs (which session runs the command, find_me), session.rs, pr.rs, worktree.rs (with preview and reuse), todo.rs, board_cmd.rs (board, canvas), start_cmd.rs, schedule.rs (with orchestrator), terminal.rs and attach.rs, listen.rs, exp.rs (exp), account.rs (accounts, account check, mcp), analytics.rs (with tokens), devices.rs, changes.rs, hygiene.rs, setup.rs (status, server, config, install). cli.rs's header says how they share what they share
src-tauri/src/serve.rs, views.rs, os/background.rs, build.rs Codealong's server (codealong serve): what it runs, starting, replacing and stopping it as a launchd job, the apps connected to it and what it tells and asks them, and the engine's build id an app keeps a server by
src-tauri/src/calls.rs, view.rs What the windows ask the server, as their commands (calls!); and the app's side of it: taking over from an app that's open, starting and following the server, the board's copy (Mirror), and handing a call to it
src-tauri/src/changes.rs, hygiene.rs For an orchestrator's loop: what changed on the board since an earlier look, told by difference from what that look saw (codealong changes, changes.json); and what's left running of old sessions, with the Mac's load, memory and swap, and ending it (codealong hygiene)
src-tauri/src/actions.rs What Codealong does to a session or a worktree, or asks of a device, one table of requests: done here, or asked of the device it's on, for a window, another device and the codealong command alike, with what each may ask for and what each carries
src-tauri/src/snapshot.rs codealong --snapshot: the engine without a window, its modes in one table, for checking what it shows and does
src-tauri/src/fixture.rs A made-up Mac for the browser checks (--snapshot --fixture, debug builds only): its board composed from made-up sessions, worktrees, PRs and todos as the engine composes a real one, with the accounts, settings, start options, skills and a conversation to go with it, and nothing of the machine it's made on; its tests say what the board must have
src-tauri/src/todos.rs, src/todos.ts, src/ui/TodoCard.tsx, src/ui/TodoStrip.tsx, src/ui/LabelPicker.tsx Todos: the store and its changes, linking sessions started from a todo; the list's sections, filters and prompt; the waiting todo card and action strip shared by the notch, waiting window and panels (TodoCard.tsx, TodoStrip.tsx); the labels todos and sessions wear, and their picker
src-tauri/src/schedules/, src/schedules.ts, src/orchestrators.ts, src/ui/SchedulesView.tsx, src/ui/SchedulePanel.tsx, src/ui/ScheduleDialog.tsx, src/ui/StartOrchestrator.tsx Schedules and orchestrators: what each is and what happened to it (schedules.json, schedule-runs.json, mod.rs), built-in project and All-projects orchestrators (orchestrate.rs, orchestrators.ts, StartOrchestrator.tsx), the times a schedule's words name (rule.rs, tested on made-up clocks with summer time), and the scheduler, which works out what's due every few seconds and starts or sends for a run (runner.rs); the schedules your machines share, each keeping a copy from the others' feeds, and which of them runs one (machines.rs, with codealong-peer's schedules); the view, its panel and the dialog that makes one
src-tauri/src/boards.rs, src/boards/, src/ui/BoardBar.tsx, src/ui/BoardDialog.tsx, src/ui/RuleFields.tsx Boards: named sets of work in a project, each shown as Kanban or Canvas. boards.json and every change to it (BoardOp, which the engine makes for the window and for codealong board), what a rule takes in, who's on a board and which column a card goes in (rules.ts), the window's boards with its changes shown at once (useBoards.ts), and the main window's answers to codealong board show|move|arrange, which the engine hands it (useBoardAsks.ts); the strip's toggle, and the board, column and rule dialogs
src/canvas/, src/ui/CanvasView.tsx, src/ui/CanvasCard.tsx A board's canvas: its documents (what's on it, where; kept in sync with what the board shows, and between windows; Tidy's layouts, and codealong board arrange's), the WebGL layer (grid, links, zoomed-out blocks) and the HTML cards, notes and frames on top
src-tauri/src/attachments.rs, src/attachInput.ts Files in descriptions and prompts: pasted, dropped or picked, kept by content, images shown in place, all handed to agents as paths
src-tauri/src/turns.rs Analytics ([experimental] analytics): what came in to each session and who from, read from each harness's records as the ledger reads calls (Adapter::turn_files, turn_step; claude/turns.rs, codex/turns.rs, and any other harness through its prose), kept as a row a turn in ledger.sqlite; what each turn counts as (counted: one the session began itself with the turn it follows, a started session's opening as its starter's); the turn each call was made in; and the report of it
src-tauri/src/stance.rs What each prompt of yours did with the reply before it: by rule where the record is sure (by_rule), by a decision model ([decisions] prompts, request, pass) or by an agent's tag
src-tauri/src/began.rs Where each session came from (began_of: you, a fork, an agent's helper, an agent, a review, a schedule, a headless run), handed over by the engine as it publishes and kept in the ledger
src-tauri/src/dismissed.rs How the sessions you marked done, archived or closed idle stood as you left them (board::standing_of), noted in the ledger; the report of them, and the open sessions left hanging
src-tauri/src/analytics.rs The analytics report the Analytics window's Your part and Sessions and codealong analytics show, and an agent's tag of a prompt
src-tauri/src/ledger.rs The token ledger behind the Analytics window: every model call each harness recorded (Adapter::token_files, token_use, token_uses_since), read once per file and then from where it stopped into ledger.sqlite, one row per call however many records copy it; and reports of it by day, account, model, folder and session, priced as they're asked, with what was paid (plans a day's share at a time, Claude's extra usage readings, recorded and by-the-token costs); and each request to a decision model with its tokens, by the feature that asked and the provider and model that answered, for Settings › Decisions
src-tauri/src/prices.rs, prices.json What a model's tokens cost at API prices, by kind of token, with fast mode, priority and long-prompt prices; prices.json is written by scripts/prices.mjs from LiteLLM's list, and [prices] in config.toml goes over it
src-tauri/src/usage.rs, src/ui/StatusBar.tsx Plan usage: what every harness's numbers go into, and each account's state for the Accounts dialog; the numbers are the harnesses' own (Claude through its sign-in and usage endpoint, Codex from its rollouts and app-server, Antigravity through agy /usage, Cursor through its servers with cursor-agent's sign-in or the app's, none for OpenCode); and the usage bar along the main window's foot, a chip an account
src-tauri/src/config.rs, state.rs config.toml (accounts saved in place) and state.json (seen, pinned, archived, sessions' labels, account folders already read)
src-tauri/src/zoom.rs, src/zoom.ts Zooming: the steps, the View menu's items, the webview's page zoom on every board window, the CSS zoom a card takes in the windows that float, and the keys that ask for it
src-tauri/src/store.rs The small JSON files next to the config, read, locked and written one way: a temporary file of the write's own and a rename, a read-modify-write under the file's .lock, and a file that doesn't parse left as it is, with an error
src-tauri/src/reusable.rs, src/reusable.ts Reusable worktrees: the marks made by hand (worktrees.json); board::reusable, reuse_of, earlier and looks_reusable have the rules, git::reset_at reads the reflog, and src/route.ts sends Jev's new work to them
src-tauri/src/prlinks.rs Sessions tied to PRs other than by branch: what their records show they did to a PR, links made by hand, and the PRs whose primary session is nudged with what happens on them, and who that is when picked (pr-links.json)
src/ui/AgentReview.tsx, src/prDraft.ts, src/agentReview.ts The top of a PR's Reviews tab, your review: where the agent's review stands, your draft review on GitHub (read once for every part of a window, its text and comments changed and taken out there, submitted by any verdict, github.rs your_review, review), what the agent wrote, and the panel's box for a verdict; which tab a PR's details open on
src/ui/PrReviewers.tsx, src/prReviews.ts The rest of a PR's Reviews tab: everyone on the PR once, by who asked for changes first, each with their verdict and what they wrote (reviews' text, threads on the code with the lines around them, comments), what's still open first; what the tab counts
src-tauri/src/autoreview.rs, autoreview/ Automatic reviews ([reviews], [reviews.own]): which PRs are due a review and when, the session it runs in (for a PR of yours, on another harness than its primary session), what it's told (Codealong's instructions or yours), reading the review from its last message, and putting it in a draft review of yours or a comment, or handing it back to a PR of yours' primary session (reviews.json); the reviews of your own PRs your machines share, and which owns each (own.rs); and the second pass that drops findings that don't hold up (verify.rs, [reviews] verify)
src-tauri/src/nudges.rs, nudges/ Telling a PR's primary session what happens on it: what's new on GitHub and who's told, bursts gathered into one message and bots left out (filter.rs, [pull_requests] nudge_bots), a merge the session made itself or already knows of held back (merged.rs), and the read-only side conversation that looks at the news first (triage.rs, [pull_requests] triage_nudges)
src-tauri/src/teamfile.rs, src/repoSettings.ts Settings for one repo's pull requests: a repo's team settings (.codealong/config.toml, read from the branch its PRs merge into as fetched, parsed with what's each person's own refused), your [repos."github.com/…"] tables, and how they go together over [reviews] and [pull_requests] (config.rs reviews_for, pull_requests_for; mirrored for Settings and the PR windows, with where each value comes from and the team's offer)
src/prLinks.ts, src/ui/PrLink.tsx Links to PRs in conversations and prompts: the board's PRs by link, and the card a link shows on hover (pr_card for a PR the board doesn't list)
src/codealongLinks.ts, src/ui/SessionLink.tsx Links to a session or a todo in a conversation, as the skill has agents write them (codealong://session/<key>): which one a link names, and the link with a session's card on hover. The window says what it lists through the PR links' host
src-tauri/src/chrometabs.rs The Chrome tabs a Claude Code session drove through Claude in Chrome, read from its transcript; which profile they're in (the extension's storage, then History); bringing its tab forward by AppleScript, or its last page again in that profile
src-tauri/src/detect.rs The harness accounts on this device: folders, sign-ins, and the wrappers and aliases that run them
src-tauri/src/os/ Everything asked of macOS, Linux or Windows, each area with each OS's side (its mod.rs header; the Linux and Windows tables above)
src-tauri/src/panel.rs, os/windows/ The one AppKit (on Linux GTK, on Windows Tauri's and Win32's) layer for the windows that float (the bar, its peek, the quick panel, the cards and sessions kept on the desktop, the lines between cards): turning a Tauri window into a non-activating panel and back, what each kind answers about the keyboard, every window's level (Level), showing, hiding, taking and handing back the keyboard, frames, screens and the pointer
src-tauri/src/geometry.rs Rectangles on the screen (Rect, AppKit's y up) and in a window's page (PageRect, y down from its window's top) with the flip between them, the screen a thing is on, and keeping a window on it (pure, tested)
src-tauri/src/front.rs Bringing the main window forward, asking another app to come forward after a panel opened something in it, and whether an app is the active one
src-tauri/src/bar.rs, barfeed.rs The bar's window (a panel over every app, floating where you put it or docked in the notch, found from the screen's sides of the menu bar, where it takes clicks only on the shape it shows and has the keyboard only while it shows a session; Window › Floating bar and Bar in the notch) and the small feed of what it shows, sent only when that changes
src-tauri/src/menubar.rs The bar's third place: an item in the menu bar (Tauri's tray) in place of its window, whose menu lists what the bar shows and has the server's state, Restart server and quitting with the server or without it; its mark dims while the app isn't connected to the server
src-tauri/src/origins.rs, src/lineage.ts, src-tauri/src/lineage.rs, src/ui/DesktopLines.tsx Where sessions came from: Codealong's own record of starts and forks (origins.json), the line drawn between them on the canvas and between desktop cards, and the clear window under the cards that draws it there
src/ui/card/ The card the Canvas view, the Kanban view and the desktop share: what it shows, looked up from the board (data.ts), its face (CardFace.tsx), and the popover a canvas card opens (CardPopover.tsx). Each adds only where a card goes and what a click does
src/ui/KanbanView.tsx, src/kanban.ts A board's Kanban: its columns (boardLists.ts kanbanColumns: the stages, or its own) of todo and session cards, and what a card dropped on a column or another card does (kanbanDrop, worked out by where the change would land it, applyKanbanDrop)
src-tauri/src/desktop.rs, src/ui/DesktopPin.tsx Cards pinned to the desktop: a window each, made as the bar's is, where a new one goes, desktop.json, and what each shows, cut from the board and sent only when it changes; the page draws the card the Canvas view draws (ui/card/). drag_out follows the pointer for a thing dragged out of a window
src/mark.ts, src/ui/MarkLive.tsx The mark's motion on the bar: what happened between two feeds (a new session working, a turn ended, something needs you, a message sent), which moment plays for it, and the mark in parts that move
src/ui/useRowDrag.tsx Dragging rows in the lists and the quick panel: among the pinned ones (pin, reorder), down to the list (unpin), out of the window (the desktop)
src/ The React UI, built from the design system's components and tokens; lanes.ts groups the board and mirrors the engine's status rules for the age filter; pins.ts keeps the pinned lists; history.ts the sessions you looked at, for going back and forward; ahead.ts shows sessions marked seen, archived, renamed or sent a message at once, in every window, until a board shows it; prStatus.ts and ui/PrPills.tsx say where a PR stands and which PRs are your move; bar.ts, ui/Bar.tsx and ui/Notch.tsx lay out the bar, floating or in the notch; ui/Picker.tsx is the quick panel's filterable menus, ui/FieldPicker.tsx one opened from a form's field, and ui/pickerOptions.tsx worktrees and sessions as their options; ui/SettingsDialog.tsx and ui/AccountsSection.tsx are Settings
scripts/preview.sh Headless preview against real data, or the made-up Mac's (PREVIEW_FIXTURE=1), for screenshots and scripted checks
scripts/checks.sh, scripts/preview/runner.mjs, scripts/preview/fixture-passes.txt Runs the browser checks over persistent headless Chrome workers (runner.mjs): the listed ones against the made-up Mac as a gate (--fixture), any on real data, and a real-data failure again on the base commit's UI to tell data from a change (--base). src/checks.test.ts and src/runner.test.ts test them over stand-ins
scripts/installers.sh, scripts/licenses.sh, .github/workflows/ Multi-platform CI and releases: merge-queue CI gate (ci.yml), post-merge sharded fixture browser checks (checks.yml), macOS/Linux/Windows releases (release.yml, installers.sh), and cargo-about third-party license generation (licenses.sh)
src/styles/ The stylesheets: app.css is the index, only @imports in cascade order with tokens.css first; the files several components share sit beside it (base elements, glyphs, cards, controls, chips, rows, nav, menus, trees, the dialog and panel shells), and each component's own styles next to it (src/ui/Sidebar.css). styles.test.ts keeps each class in one file, every styled class one the UI renders, and every file in the index once
scripts/preview/style-diff.mjs Records every scene's computed styles before and after a change to the stylesheets and compares them
design/tokens.json Design tokens; npm run tokens regenerates src/styles/tokens.css