Files
- Introduction
- The config folder
- The store
- The shared folder
- In a repository
- Read elsewhere
- Removing saaio
#Introduction
saaio keeps nothing hidden: every file it reads or writes is listed on this page, and all of them
are plain text. They live in four places: the config folder, which is yours to edit; the store,
where a project's flows are recorded; the shared folder, which every project uses; and the
.saaio folder in your repository. Only the config folder is meant for editing.
#The config folder
The config folder holds your settings. It is the folder of $SAAIO_CONFIG if set, else
$XDG_CONFIG_HOME/saaio, else ~/.config/saaio:
| File | Holds |
|---|---|
config.toml | settings (Configuration) |
theme.toml | colors (Themes) |
themes/<name>.toml | themes theme.toml can extend, often written by another tool |
master.md | the master's instructions (The master) |
saaio server, which the UI starts, writes config.toml, theme.toml and master.md when they
are missing. An edited file is never overwritten, and a newer saaio refreshes master.md and
config.toml only while they still hold an earlier default.
#The store
A store is where saaio records a project's flows. Each git repository gets its own, so the flows of one project never mix with another's. saaio picks the first of these that applies:
$SAAIO_HOME- in a git repository:
projects/<repository>in the shared folder. A worktree or a subfolder uses its main repository's store. - the shared folder itself (
$XDG_STATE_HOME/saaio, else~/.local/state/saaio)
<repository> is the repository's folder name. A second repository with the same folder name gets
<repository>-2, a third -3. A store stays with its repository even once that repository is
gone: a repository moved to another folder starts with a new store, and its earlier flows stay
readable with SAAIO_HOME=~/.local/state/saaio/projects/<repository>.
The UI passes its store to every session it opens as SAAIO_HOME, so a worker reports into its
flow's store from any folder. A store holds:
| File | Holds |
|---|---|
flows/<id>.jsonl | one flow's events, one JSON line each, append-only |
flows/<id>.alive | modification time is the flow's last heartbeat |
hooks/<id>/<hook>.log | the whole output of the flow's last run of .saaio/setup, teardown, pause or resume, stdout and stderr in order. Each run replaces the file before; removing the flow deletes the folder. |
waits/ | wake-up state: each session's waiter, messages given to a worker, lines typed into a worker's pane, whether a session is busy, what the master last saw, the master's turn and its Codex session id, a hash of each session's key, and the pid of each worker's agent |
turns/0.lock | held by the worker whose heavy command runs (Heavy commands), naming it. Freed when the process that holds it exits. |
server.sock | the socket between the UI and the server, owner-only. If its path would be 100 bytes or longer: saaio-<uid>/<hash>.sock in $XDG_RUNTIME_DIR, else $TMPDIR, else /tmp, with the log next to it as <hash>.log. saaio uses that folder only while it is yours and closed to others (0700), and talks only to processes of your user. |
server.log | what the server did and what failed, with the errors of the hooks and the UI. The start line names the versions of saaio, the OS and the tools saaio calls. Moved to server.log.1 once it passes 1 MiB. |
master.json | the master's session id and folder, for resuming after a restart |
repo | in a project store: the git folder of the repository it belongs to. A store without it is taken by the first repository of its name. |
Note
The event log is private and may change. Read flows with
saaio status --json(The JSON contract).
#The shared folder
Some things belong to no single project: the list of stores, the slots, the repositories you
trust. They live in the shared folder, $XDG_STATE_HOME/saaio, else ~/.local/state/saaio,
regardless of SAAIO_HOME. Outside a repository, it is also the store:
| File | Holds |
|---|---|
projects/<repository>/ | one repository's store |
stores/<hash> | one store's folder, so saaio status --all finds every project; <hash> is the folder's path hashed. Dropped when the folder is gone, and when another entry names the same folder. |
slots/<n> | the flow holding slot n. Counts only while that flow is unfinished. |
slots/.lock | held while a slot is claimed, so two starts never get the same slot |
trusted/<hash> | one repository you trusted with saaio trust or in the new-flow dialog (Trust) |
reports/ | the files saaio bug-report writes (Reporting a bug) |
update.json | when the UI last looked for a newer release, and the latest it found ([ui]) |
#In a repository
A repository tells saaio about itself in its .saaio folder, which you commit, except the
worktrees:
| File | Holds | Committed |
|---|---|---|
.saaio/config.toml | the branch convention and the heavy commands (Branch names) | yes |
.saaio/setup, .saaio/teardown | the scripts run in each worktree (Setup and teardown) | yes |
.saaio/pause, .saaio/resume | the scripts that pause and resume a resting flow's services (Pause and resume) | yes |
.saaio/worktrees/<name> | each flow's worktree. .saaio/worktrees/ is listed in .git/info/exclude. | no |
#Read elsewhere
For the peek, saaio reads a worker's transcript where its harness keeps it:
| File | Purpose |
|---|---|
~/.claude/projects/... (or under $CLAUDE_CONFIG_DIR) | a Claude Code worker's transcript, for the peek |
~/.codex/sessions/... (or under $CODEX_HOME) | a Codex worker's transcript, the one its hooks name, for the peek. A file elsewhere is not read. |
saaio writes nothing to ~/.claude or ~/.codex: its hooks are passed on each agent's command
line.
#Removing saaio
Since saaio installs nothing into your agents, removing it is a matter of stopping it and deleting its folders:
saaio --stop # end the server and every session
saaio clear # or saaio remove <name>, for flows whose worktrees you want gone
rm ~/.local/bin/saaio # or cargo uninstall saaio, when built from source
rm -rf ~/.config/saaio ~/.local/state/saaio # and any SAAIO_HOME you used
# and a completion script you saved, such as ~/.zfunc/_saaio