saaiov0.3.1

Project

Changelog

All notable changes to saaio are listed here. The format follows Keep a Changelog, and saaio uses Semantic Versioning.

#Unreleased

#Added

  • saaio setup [<flow>] runs a flow's .saaio/teardown, then its .saaio/setup again, with its slot and worktree, without removing it; C-space s and the board's s do it in the UI, after y. A worker can run it for its own flow once it fixed the cause (saaio setup).
  • The whole output of each .saaio script, stdout and stderr in order, goes to hooks/<flow id>/<script>.log in the store, and a failed setup names the file (Files).

#Changed

  • A failed setup stays in saaio status, the sidebar and the board until a setup run passes, instead of going away with the worker's first prompt, and saaio status --json gives each flow setup (Setup). The worker and the master are told, with the path of the whole output.
  • A failed script's reason is the last line it printed on stdout or stderr, no longer stderr first.

#Fixed

  • A Claude Code worker whose kind calls a skill you have not installed, such as ship-feature, no longer waits forever at working: saaio start sends a built-in prompt that calls no skill and says so (Without matching skills).
  • Esc in a Claude Code worker or master ends its turn in saaio too: the spinner stops, the flow shows idle interrupted, lines queued with saaio send --type are typed and waits turn clears. saaio answers Claude Code's status query and reads its reports (OSC 7501), which Claude Code 2.1.295 and later send (Claude Code).
  • A Codex worker whose turn fails, on a rate limit, an unsupported model or a lost connection, is blocked with Codex's error instead of staying working, and saaio types the master's news into it again. A Claude Code turn that fails is blocked too. A dialog before a Codex worker's first turn makes it waiting at once instead of after 30 seconds. Both need Codex 0.172 or later, or Claude Code 2.1.295 or later (Codex).
  • A busy machine no longer shows a Claude Code pane drawing itself slowly from top to bottom: saaio tells Claude Code which terminal it is (XTVERSION), so Claude Code marks each redraw as one and saaio shows it only when it is whole.
  • A flow whose log a crash cut short in the middle of a line keeps its next event: saaio starts it on a line of its own instead of gluing it onto the broken one, which lost both. A cut inside a non-ASCII character no longer makes the flow disappear from saaio.

#0.3.1 - 2026-11-20

#Fixed

  • A worker woken with the master's message no longer gets saaio's own error above it when its busy mark cannot be written; the error goes to server.log.
  • A heavy command listed under [exclusive] no longer loses its turn while it runs on a busy machine, so another worker's heavy command waits for it instead of running beside it.

#0.3.0 - 2026-11-15

A minor release: saaio status --json is version 4, which can break a program that reads it.

#Changed

  • saaio status --json is version 4: a phase step's status can be stale, done before but undone since the flow went back to an earlier phase. A program that reads it should accept stale and version 4 (Versions). The TOON agents read is unchanged.

#Added

  • The documentation is online at saaio.dev: searchable, in light and dark, readable on a phone, and built from the Markdown in the repository on every merge.
  • An error that only a person may overrule says so in a refusal line (uncommitted, unmerged or untrusted), so a script or agent can tell it apart without reading the message (Output, errors and exit codes).

#Fixed

  • A flow asked for another change after its review goes back to implement: the sidebar and the board show review and merge-request as stale until they run again, instead of staying at review or showing every step finished. A phase skill the worker runs after the merge request opened moves the flow too.
  • A panic in the terminal UI ends it and gives the terminal back, with a line that says where its backtrace is, instead of leaving it running unresponsive; the server and its sessions keep running, so saaio attaches again.
  • saaio update names each server of another version once, and saaio status --all each project once: a store registered twice (by a shared folder moved by hand, or SAAIO_HOME with a trailing slash) no longer shows up twice, and its extra entry is cleaned up.
  • The docs no longer say that cat pint.log waits for a heavy command's turn: a word such as pint.log does not match pint, and files.md names the heavy commands among what a repository's .saaio/config.toml holds.

#0.2.1 - 2026-11-05

#Added

  • Heavy commands run one at a time per project: list them in a repository's .saaio/config.toml ([exclusive] commands = ["artisan test", "pint", "phpstan"]), and a worker's shell call that runs one, also through docker compose exec, docker exec or Laravel Sail, waits while another worker of the project runs one. The sidebar says waits turn and whose run it waits for, the board card working · waits turn, saaio status and --json a turn. A run in the background keeps the turn until its process exits; a crashed worker or a killed run frees it at once. [exclusive] enabled = false in your config.toml turns it off.

#0.2.0 - 2026-11-02

Updating from 0.1.x: run saaio update, then saaio --stop. 0.2.0 refuses a 0.1.x server that still runs; once it is stopped, the next saaio starts the server on the new version. An agent you defined in config.toml with its own prompt now sends it for every kind of flow: leave the prompt out to get each kind's.

#Added

  • saaio start --base <branch> and a base row in the new-flow dialog start a flow's worktree from another branch, such as the branch of the flow before it, so each merge request of a stack runs as a flow of its own. The worker is told its merge request targets that branch; saaio status and --json (workspace.base) show it. When the base merges, the flows on it move onto the branch it merged into and their workers are told to rebase, also when the base is removed or cleared after its merge. saaio remove of a base names the flows that stand on it.
  • Desktop notifications: when a flow or the master starts waiting or is blocked while you aren't looking at it, in another session or another window, the UI has your terminal raise a notification (OSC 9 in Ghostty, iTerm2, kitty and WezTerm, OSC 777 in foot, urxvt and VTE terminals, the bell in Alacritty and Terminal.app), also through tmux with allow-passthrough all. [ui] notify = false in config.toml turns them off.
  • Kinds of flows: feature, fix and research, each with its own phases, first prompt and branch type. saaio start --kind fix, saaio new --kind and a kind row in the new-flow dialog pick one; the master picks it from the request. A fix runs /ship-fix ($ship-fix in Codex), starting with a diagnose phase, on a bugfix-type branch where the repository's convention has one. A research flow answers a question in its pane from a worktree without a branch, is done once it has answered, and saaio clear (or x on the board) forgets it. saaio status, --json (kind, merges), the board and the sidebar (fix claude) show a flow's kind. [kinds.<name>] in config.toml changes a kind or adds one; [worker] kind sets the default.
  • The UI warns when the running server is another build than the saaio you ran, or when another saaio (such as an old cargo install in ~/.cargo/bin) comes first on PATH: a dialog names each binary with its build and saaio --stop, then the title row keeps a short line. saaio update lists the same: shadowed and every running server on another version (servers[]), each with what to run.

#Changed

  • The built-in claude and codex agents no longer set a prompt: a worker's first prompt is its flow's kind's, written for its harness. An agent's own prompt still wins, now for every kind, so an agent you defined with prompt = "$ship-feature {request}" sends that for fixes too: leave it out to get each kind's. A top-level [[phases]] and [worker] prompt keep working as the feature kind's.
  • Protocol 9: the server says which build it is and which binary it started from, so the UI can warn about a mismatch. The refusal from an earlier server now names its pid, this binary and saaio --stop. saaio send in a pane an earlier server opened says the pane has no key and to run saaio --stop, instead of only the master sends.

#Fixed

  • A server that started while another saaio process moved server.log aside now writes to the new server.log, instead of to server.log.1 for as long as it runs.
  • pulldown-cmark is updated past RUSTSEC-2026-0414. saaio never turned on the wikilinks the advisory is about, so it was not affected.
  • A config.toml that still holds the example an earlier saaio wrote, untouched, now gets the current example, with kinds of flows. An edited one stays as it is.

#0.1.2 - 2026-10-24

Updating from 0.1.1: run saaio update, then saaio --stop so the server starts again on the new version. A .saaio/teardown, .saaio/pause or .saaio/resume script that runs git on the main checkout (git -C "$SAAIO_REPO" ...) now acts on the worktree instead: run it as env -u GIT_DIR -u GIT_WORK_TREE git -C "$SAAIO_REPO" ....

#Added

  • saaio status --json gives each flow permission: true while it waits on a permission prompt in its pane.

#Changed

  • saaio send to a worker waiting on a permission prompt names the prompt and says the worker reads the message once the prompt is answered in its pane. Before, it said the worker would be woken with it now.
  • saaio report merge-request keeps a merge request URL as .../pull/<n> or .../-/merge_requests/<n>, dropping a trailing /, ?query, #fragment or a page such as /files, and names that form when it refuses a URL.

#Fixed

  • saaio bug-report writes its file into reports/ of saaio's state folder (~/.local/state/saaio/reports), never into the current folder, so it no longer lands in a repository.
  • The peek reads a Codex worker's transcript only from Codex's sessions folder (~/.codex/sessions, or under $CODEX_HOME).
  • saaio's state folder is closed to other users (0700) also when an earlier version created it.
  • A repository no longer takes over the store of a removed repository with the same folder name: it gets a store of its own (<name>-2). A repository moved to another folder starts with a new store; The store says how to read its earlier flows.
  • Git in .saaio/teardown, .saaio/pause and .saaio/resume always acts on the flow's own worktree: they run with GIT_DIR and GIT_WORK_TREE set. A script that wants git on the main checkout clears them (Setup and teardown).
  • saaio hook skips an event over 16 MiB and notes it in server.log.
  • A UI that stops reading, or a session that prints without pause, no longer slows the server for other UIs and commands.
  • server.log stays bounded while the server runs: past 1 MiB it moves to server.log.1 whoever writes to it.
  • The server copes with very large windows and malformed messages.

#0.1.1 - 2026-10-22

Updating from 0.1.0, which has no saaio update: run the install line once (curl -fsSL https://github.com/JanSuthacheeva/saaio/releases/latest/download/install.sh | sh), run saaio trust once in each repository with .saaio scripts, and run saaio --stop so the server starts again on the new version.

#Added

  • The UI names a newer release in its title row (0.1.1 is out: saaio update), looking once a day. [ui] update_check = false turns it off.
  • saaio update installs the latest release, or --version <tag>, over the binary you run.

#Changed

  • When the store's path is too long for a socket, the socket and its log move from /tmp/saaio-<uid>/ to $XDG_RUNTIME_DIR or $TMPDIR (/tmp when neither fits). saaio --stop still stops a server 0.1.0 started there.
  • saaio runs a repository's .saaio scripts, and lets Codex workers trust its worktrees, only once you trusted the repository. saaio start refuses until then and names the scripts; the new-flow dialog asks you. saaio trust trusts the repository you are in (from your own terminal only), saaio trust --revoke takes it back, saaio trust --list shows every one.
  • saaio remove says what the teardown did (teardown: ran, none, failed: ...).

#Fixed

  • A .saaio script that never ends no longer blocks saaio start, saaio remove or saaio clear: setup is stopped after 10 minutes and teardown after 2, and the flow says so.
  • saaio hook, saaio wait and saaio send act only for the session the server opened: each session gets its own key in SAAIO_PROOF. Setting SAAIO_FLOW_ID or SAAIO_MASTER no longer reports into another flow, takes the master's news or sends as the master.
  • saaio uses the socket's folder only when it belongs to you and is closed to others, and the UI and the server talk only to processes of your own user.
  • The server takes requests only after a connection's hello, closes one that says none within 5 seconds, lets saaio remove and saaio clear do nothing but close a pane, and takes at most 16 connections at once.
  • A request that contains {request} or another placeholder is passed to the worker as written. Before, it was filled in again, and a request repeating one could grow the worker's command line past the system's limit, so the worker never opened.
  • A request or flow name that starts with - no longer fails with a usage error when the UI starts or cleans up a flow.
  • saaio report merge-request takes only a merge request of the flow's repository, by any of its remotes, and saaio passes a merge request to gh and glab after --.
  • saaio bug-report also writes the home folder as ~ in file:// URLs, as the real path a linked home leads to, and in Claude Code's project names (-Users-you-...).
  • The server keeps running when the system is out of open files or threads, instead of spinning or stopping.
  • A flow that ended, or went on to a subagent, no longer shows the question it asked earlier as its blocker in saaio status, its --json and the master's news.
  • A .saaio script stopped for running too long now takes what it started with it (a docker compose up it began, a dev server): it runs in a process group of its own, and the whole group is stopped.
  • saaio start refuses a repository whose .saaio or .saaio/worktrees folder is a symbolic link, so a worktree is never created outside the repository.

#0.1.0 - 2026-10-21

The first public release. Planned next: Roadmap.

An early version: expect rough edges, especially with Codex, which is experimental and not yet well tested.

#Added

  • The terminal UI (saaio): the master, every worker and every plain session in one terminal, with the sidebar, the peek, the board and the new-flow dialog.
  • saaio server: sessions outlive the UI and resume after a crash or a reboot.
  • Claude Code workers, and Codex workers as experimental, followed through their own hooks. Any other command as a worker, shown as running or not.
  • Configurable workflow: 1 to 4 phases, the skills that start them, every agent's first prompt.
  • The master: starts and answers workers, woken by their news, types a line such as /compact into a worker's pane (saaio send --type).
  • Guided and auto flows. Plain sessions.
  • Merge requests on GitHub and GitLab found on a flow's branch, whoever opened or merged them.
  • One store, server and master per git repository, SAAIO_HOME to choose another.
  • Per-worktree setup and teardown scripts, SAAIO_SLOT for ports, branch conventions per repository.
  • Paused services: a flow that rests for [services] pause_after_minutes (5 by default) has its services stopped by the repository's .saaio/pause, and started again by .saaio/resume before its worker's next tool call.
  • Copying text: select with the mouse to copy, through OSC 52 and pbcopy, wl-copy or xclip. The wheel scrolls a pane's history. What a session in view copies itself reaches the clipboard too.
  • Themes: the terminal's own colors, saaio's dark and light themes, live reload, themes written by other tools.
  • The command line for agents (TOON) and saaio status --json for programs.
  • saaio bug-report: a file to attach to a bug report.
  • Shell completions for bash, zsh, fish, elvish and PowerShell: saaio completions <shell>, and in complete/ in every release tarball.
  • Commented example config.toml and theme.toml, written on the first run.
  • Prebuilt binaries for macOS (Apple silicon, Intel) and Linux (x86_64, aarch64, static) on every release, with checksums, and install.sh, which checks the binary for the machine against them and installs it to ~/.local/bin.
  • The store and everything saaio writes in it readable only by you.