saaiov0.3.1

saaio

Orchestrate coding agents from one terminal. You talk to a master agent. It starts workers, answers what it can, and asks you the rest.

  • One worker per feature, each in its own git worktree and branch
  • Sidebar and board show every worker's state and agent
  • Phases and skills are configurable, works without any skills
  • Claude Code and Codex (experimental), state comes from their hooks
  • saaio CLI for agents (TOON) and scripts (--json)

saaio is young. Expect rough edges, especially with Codex, which is experimental and not yet well tested. Bug reports are welcome.

saaio with Claude Code and Codex workers

#Install

Requires macOS or Linux, git, and Claude Code or Codex.

curl -fsSL https://github.com/JanSuthacheeva/saaio/releases/latest/download/install.sh | sh

Installs the prebuilt binary to ~/.local/bin. From source, with Rust 1.95+:

cargo install --locked --git https://github.com/JanSuthacheeva/saaio --tag v0.3.1

More: Install.

Important

Highly recommended before you start:

  1. Read ~/.config/saaio/config.toml once. The first run writes it, every setting commented out at its default. Same file: examples/config.toml. Details: Configuration.
  2. Set the recommended permissions in your agents (Claude Code's settings.json, Codex's config.toml). Workers then run without stopping at every prompt, and saaio works as intended. Details: Agent permissions.

#Workflow

saaio tracks the work, but your skills do it. Each flow has a kind: feature (the default), fix or research. A feature worker's first prompt is /ship-feature <request>, a fix's /ship-fix <request> ($ship-feature, $ship-fix in Codex), and a research flow answers a question without a branch. You can run these skills, your own, or none at all.

agent-skills. This installs ship-feature, ship-fix and the skills they run, from agent-skills:

npx skills add JanSuthacheeva/agent-skills -g --skill ship-feature ship-fix design-code diagnose-bug implement-plan review-changes write-merge-request commit setup-saaio

Your own skills. Name them in ~/.config/saaio/config.toml:

[kinds.feature]
skill = "my-feature"   # /my-feature in Claude Code, $my-feature in Codex

[[kinds.feature.phases]]
name = "plan"
skills = ["my-plan"]

[[kinds.feature.phases]]
name = "build"
skills = ["my-build"]

[[kinds.feature.phases]]
name = "ship"
skills = ["my-pr"]

A phase starts when the worker runs one of its skills. Your kind replaces the built-in one, and you can add kinds of your own under new names. Details: Use your own workflow.

Neither. The flow still works, and its states show as usual. Only the steps stay ○───○───○───○.

#Set up each project

Several workers in one project need their own ports, .env and services, or they collide. Once per project, let the setup-saaio skill write .saaio/setup and .saaio/teardown, which give each worktree its own. When the setup starts services, it also writes .saaio/pause and .saaio/resume, which pause them while the flow rests.

npx skills add JanSuthacheeva/agent-skills -g --skill setup-saaio   # included in the command above

Then ask the agent in the project: "set up saaio for this project". Once you have read the scripts, run saaio trust in the project in your terminal, so saaio runs them (the new-flow dialog in saaio asks too). Details: Repository setup.

Two test suites at once can bring a small machine to a crawl. List the project's heavy commands (test suites, formatters, static analysis) in .saaio/config.toml, and its workers run them one at a time: Heavy commands.

#Usage

Open saaio in a repository. The master greets you in the big pane, and you tell it what to build:

saaio    # in a repository
DoHow
Start a flowask the master ("start a flow for SHOP-217 add CSV export"), or C-space n
List every keyC-space ?
Detach, sessions keep runningC-space d
Stop saaioC-space Q or saaio --stop

Moving through saaio: the peek, a worker, the board

The sidebar peek and the board's last answer render worker Markdown with terminal text styles: headings, emphasis, code, lists, quotes and link text fit within their columns.

The first run writes config.toml, theme.toml and master.md to ~/.config/saaio, every setting commented out at its default.

#Features

FeatureWhat it does
Masterstarts workers, answers them with saaio send, is woken when a worker's turn ends, it waits, is blocked, stops responding or opens its merge request. Guided flows bring every question to you. Auto flows let the master answer what the code and plan settle.
Worktreesone branch and worktree per flow. .saaio/setup and .saaio/teardown run in each, once you trusted the repository (saaio trust, or the new-flow dialog asks). SAAIO_SLOT (1 to 20, unique across all projects) gives each worktree its own ports. The setup-saaio skill writes both scripts.
Heavy commandsone at a time across a project's workers. A repo lists them under [exclusive] commands in .saaio/config.toml (artisan test, pint, phpstan); a run through docker compose exec, docker exec or Laravel Sail counts too. A worker's call waits while another worker runs one, and the sidebar says waits turn. [exclusive] enabled = false in your own config.toml turns it off. Heavy commands, [exclusive]
Idle services.saaio/pause stops the services of a flow that rested for [services] pause_after_minutes (5 by default), .saaio/resume starts them again when its worker works. Pause and resume, [services]
HooksClaude Code and Codex (experimental) report through their own hooks, no screen reading. Codex workers trust saaio's hooks, and their own worktree once you trusted the repository, for that launch; a startup dialog that prevents the first turn shows as waiting. Any other command runs as a worker, shown as running or not. If any worker process exits while its flow is working, the flow shows blocked with its exit code and a short tail of pane output.
Projectsone store, master and sidebar per git repository, picked from the folder saaio runs in. saaio status --all and the board show every project.
Plain sessionsan agent in any folder, no worktree, no flow
Themesterminal colors by default, built-in dark and light themes, live reload, themes written by other tools (Noctalia template in the docs)
Persistencesessions keep running when the terminal closes. After a reboot every conversation resumes.

#How it works

A flow is one unit of work: one feature or ticket, from request to merge request. It has its own git worktree and branch, a worker (the agent session doing the work) and the phases the worker walks through (plan, implement, review, merge request by default).

Every flow is an append-only event log, so its history is never rewritten. The agents' hooks run saaio hook, which turns hook events into flow events (phase started, question waiting, merge request opened). saaio folds the logs into each flow's state. saaio server runs each agent in its own terminal. saaio attaches to it.

#CLI

saaio's main user is an agent, so every command answers in TOON, with suggested next commands:

$ saaio status
count: 3
needs_you: 2
flows[3]{name,kind,state,phase,tasks,age,services,turn}:
  shop-221,feature,waiting,plan,"",2s,"",""
  shop-217,fix,blocked,implement,4/9,2s,"",""
  scratch,"",idle,"","",11s,"",""
blockers[2]{name,blocker}:
  shop-221,Should refunds count against the original order's totals or the refund date's?
  shop-217,"Task 5: the migration needs a default value"
help[2]: "Run `saaio status <name>` for one flow's phases, timeline and decisions",Run `saaio new --name <name> --request <text>` to track a new flow

saaio status --json is the versioned contract for programs. The CLI and the JSON are the only public interface. The logs are private.

CommandDoes
saaiothe terminal UI in your terminal. Every flow and what needs you for an agent or a script.
saaio --stopstop the server and every session
saaio start <request>a worker in its own worktree
saaio start --plain <folder>an agent in a folder
saaio status [<flow>] [--json] [--all]where flows stand
saaio send <flow> <text>tell a worker something
saaio send --type <flow> <line>type a line such as /compact into a worker's pane
saaio report <event>report into a flow by hand
saaio remove <flow>, saaio cleartear down and forget
saaio setup [<flow>]run a flow's teardown, then its setup again
saaio bug-reporta file to attach to a bug report
saaio completions <shell>the completion script for bash, zsh, fish, elvish or PowerShell
saaio updateinstall the latest release over this binary

All options: The command line.

#Similar tools

ToolDifference
Conductor, parallel-code, dmuxdiff review and pull requests built in
parallel-codereachable from your phone
firstmatea lead agent (the first mate) starts crewmates in their own git worktrees. Shipped as a repository of instructions, skills and scripts you start your agent in. Crewmates run in tmux by default (also herdr, cmux, Zellij, Orca). No dashboard of its own.
Claude Squad, ccmanager, amux, herdragents side by side in worktrees

saaio tracks a feature, not a session: phases, task counts, decisions, blockers and a timeline per flow, from the agents' own hooks. The master is woken instead of polling. Each worktree gets its own setup, teardown and port slot.

Not in saaio: a diff viewer, a pull request button (the worker's skill opens the merge request and saaio detects it), phone access. macOS and Linux only.

#License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.