Repository navigation
Releases
Releases · jm2/switchworks
Switchworks v0.1.7 Alpha
Added
- Fleet resource locks —
fleet_lock,fleet_unlockandfleet_locksgive agents leases on
things they share (a host's GPU, a LAN port, a whole test host) instead of messaging each other
to ask whether one is free:heldwith a lease id and expiry, orbusywith the holder, its
note and expiry. Leases end at their TTL (default 30 minutes, at most 6 hours; locking again
renews), on unlock, or when the holder's session stops;wait_secondswaits for one, first come
first served.swk locksandGET /v1/lockslist them; the owner breaks one withswk locks breakorDELETE /v1/locks/{name}. Leases live in the coordinator's memory. - Reminders instead of polling —
fleet_remind {in_seconds, text, id}has the coordinator send
the calling session asystemmessage after 60 s to 24 h, starting a turn if it is idle, so an
agent waiting on CI, a build or a person can end its turn instead of polling in it. A new reminder
with a pending one's id replaces it,{cancel: id}cancels one, reminders survive a coordinator
restart and are dropped when the session stops.swk reminders <session>andGET /v1/sessions/{id}/reminderslist them; an owner can cancel one. Theswk mcpinstructions now
say to wait with a reminder, to ask people withwait_seconds0 and carry on, and to keep
acknowledgements quiet. - Quiet messages —
quietonfleet_send, the API andswk msg/send --quiet: the message
never starts a turn of its own. A running turn takes it as usual; an idle session keeps it queued
until its next turn starts for something else (or a person sends it now), and it still expires.
The MCP instructions tell agents to send acknowledgements and FYIs quiet and never to reply just
to acknowledge, which cost a whole turn of context each. - Turns cut off by a restart continue — A session whose turn was running when the node went
down (an upgrade, a reboot), or when Codex's app-server crashed under it, gets onesystem
message once it is resumed, starting a new turn that tells the agent to carry on and check what
it was running, instead of sitting idle until someone prompts it. Not for turns a person
interrupted, nor stopped sessions;"continue_interrupted": falseinnode.jsonturns it off. - Session environment —
codex.session_envinnode.jsonsets variables (set) and adds
PATHdirectories (path_prepend,path_append) for the commands Codex sessions run, such as
GIT_CONFIG_*for Git for Windows' OpenSSL backend or a tool directory first onPATH. The node
applies it to app-server's environment, which Codex passes on, so Codex's ownPATHentries
stay;shell_environment_policy.setincodex.configstill wins for a variable. - Per-session caches — Each Codex session gets a cache directory of its own,
<user cache dir>/switchworks/session-cache/<session>, writable in its sandbox only (a profile
entry, or one more legacy writable root, sent per thread), withXDG_CACHE_HOMEand
CCACHE_DIRpointing at it unless you set them.ccacheandghwork in the sandbox, and no
agent can write another's cache. It is removed when the session stops or is forgotten;
session_cachemoves or disables it. - Git for agents:
workspace_git— A fleet tool the session's own node runs outside the
sandbox, on the session's repository only, so agents can sync, commit and push where shell git
fails (on Windows, and where.git/configis read-only).syncfetches and rebases or
fast-forwards onto the upstream, saving uncommitted and untracked work (a stash entry and a patch
under the node directory) and reapplying it, with conflict markers on a conflict;committakes
a message, paths and a new branch;pushnever forces and refuses main, master and the remote's
default branch;branch_deleteremoves only branches it pushed from the remote. Pushes use a
scoped agent token throughgh(git.gh_config_dirinnode.json;git.push_branch_prefixes
can restrict branch names), never the owner's credentials or ssh keys: GitHub ssh remotes go over
https. Hooks, fsmonitor and other repository-configured commands never run. - GPU runs on Windows —
gpu_run(off unlessnode.jsonsetsgpu_run.enabled): Codex's
Windows sandbox runs commands on a private desktop where Direct3D can't reach the display, so an
agent can ask its node to run a command on your desktop instead. The command runs in an
AppContainer that can write the session's working directory (.gitread-only, the deny list's
files unreadable) and can't open your profile. It has no network unlessgpu_run.networkis set,
and runs in a job with UI limits (no other windows, no clipboard, no desktop switching) and a time
limit; its exit code and output come back. See the GPU access section of docs/harnesses.md for
what it still allows.
Fixed
- Steers count toward
max_hopsagain — 0.1.6 stopped a steer into a running turn from
raising its hop count, which let two agents steering into each other's turns loop past a
max_hopsthe owner had set. Steers count again; a person's message still starts it over. - Codex turns resend the approval policy only when it changes — Every
turn/startcarried the
session's approval policy, which app-server applies as a thread settings update and records as
thread_settings_applied, once per turn. It now goes only with the first turn after a change. - Replies say which ask they answer — A reply reaches the asking agent with the first 400 bytes
of its ask quoted under the header, andfleet_inboxlists it asre_text, so an agent with
several questions out can tell "1. yes" to one apart from another without looking it up. - Cancel a steered message — A person's message sent Now (steer) into a running turn waits in
the queue until the turn's next step, when the agent reads steered input anyway, so it can be
cancelled until then; Codex cannot take input back once it is in. Its pending bubble no longer
sticks until a reload: it goes once the turn that carried it ends. fleet_inboxwith a ticket waits as long as asked —fleet_inbox(ticket, wait_seconds)gave
up after 3 minutes with "context deadline exceeded"; it now gets itswait_seconds(at most 1800)
plus a minute, and an ask still unanswered when the wait ends comes back as pending, "Not answered
yet", not as an error.- "cannot reach the swk node: EOF" — Each fleet tool call left its connection to the node's
local API open and idle for 2 minutes, so a busy host could fill the node's connection cap, and
then every call failed with EOF for as long as the retries lasted.swk mcpnow opens a new
connection per call and the node closes it after answering. The node logs failed local API
requests and refused connections, which before left nothing in its log. swk service restartno longer races the old process — On Windows, stop returns only once
the old process has let go of its run lock, so restart cannot start the new one while the old one
is still saving its state and ending its harnesses; the new one used to fail with "already
running" and nothing started it again. On every OS the node and coordinator also wait up to 45 s
at startup for an old process that is shutting down.swk dev runuses the node's Codex settings — It started Codex withoutnode.json's
codex.argsorcodex.config, so it tested a different sandbox than sessions get (on Windows,
read-only and "degraded" while the sessions were fine). It now builds Codex's options from
node.jsonas the node does, says so, and takes--node-dirand--no-node-config.- Clearer fleet errors — The hop-limit error names the
max_hopsguard (off by default since
0.1.6) and says that a person's message, or the session going idle, starts the chain over.
fleet_replyto a notify says it is a notify, which cannot be replied to, and to use
fleet_send; to an ask already answered, it says when and by whom, and whether that was the
caller's own earlier reply.fleet_inboxmarks open asks to the sessionreplyable.
Switchworks v0.1.6 Alpha
Added
- Superseding messages —
supersedes(a key such asstatus:gate5) onfleet_send, the API
andswk msg/send --supersedes: a newer message replaces the sender's earlier one with that key
to the same session while it is still pending or queued, so only the latest status reaches the
agent. The old one becomessuperseded, naming its replacement in the web UI and the API. - Dismiss an ask — Dismiss in the web Inbox (or
swk messages dismiss) ends an ask to a person
asdismissed, with who and when; a waitingfleet_askorswk askreturns at once, an asker
whose wait ended gets a notice after a short Undo window, and a late reply gets 409. - Mark read — Asks and notifies to people can be marked read (web Inbox,
swk messages read),
leaving the badge without ending an ask; the coordinator keeps the mark, so it holds on every
device. Mark all read and Dismiss all act on a whole Inbox section. - Queued agents' messages one by one — The web UI's "queued from agents" row opens into each
message, with its sender, kind, text and expiry, and Send now and Cancel; Clear still asks first.
swk messages promote <id>andswk messages cancel <id>do the same from the CLI. - Steered messages show at once — A message sent Now (steer) shows as a pending bubble from Send
until the agent takes it in at its next step, instead of appearing only seconds later. - Markdown in the web UI — Agents' messages render as full Markdown: tables, task lists,
strikethrough, footnotes, autolinks,:emoji:shortcodes, highlighted code with a Copy button,
KaTeX math and Mermaid diagrams, sanitized and under the page's CSP. The scripts are pinned,
integrity-checked and embedded (internal/web/vendor.sh); Mermaid loads only when needed.
Changed
- Short expiry for agents' notifies — An agent's
fleet_sendnow expires undelivered after 2 h
(guardagent_notify_ttl_seconds) unless it setsttl_seconds, up todefault_ttl_seconds;
asks, people's messages and spawn prompts keep 24 h.fleet_sendnow takesttl_seconds. - No hop limit by default — Agents can keep messaging each other, like Claude Code sessions,
until they are stopped:max_hopsis off unless set, leaving the rate limits and the daily token
budget. When it is set, a person's message starts the count over however it went in, and a steer
into a running turn no longer raises the turn's count. Before, a busy coordinator session that
only ever took steers piled up hops until its workers could not report back.
Fixed
- Hop limit with fast agents — A node sends a session's events ahead of that session's fleet
requests, so the coordinator counts a message chain's hops from the message that started the turn
even when the agent answers at once; before, a fast enough loop could outrun the limit. - Stopped node shown as running —
swk service statusand the tray no longer report a node or
coordinator as running for up to a minute after it was killed (asswk service stopdoes on
Windows) or crashed: a status file whose process has exited counts as stopped. - Asks, replies and notices steer — Asks, replies, completion notices and Switchworks's notices
go in mode auto like other messages, so they reach a running turn instead of waiting for it to
end. Sessions spawned with--no-steer, and harnesses that cannot steer, still get them queued.
Switchworks v0.1.5 Alpha
Added
- Codex config overrides —
codex.configinnode.jsonis a map of Codex config overrides
the node passes as-c key=valueahead ofapp-server, values written in TOML and nested
objects as dotted keys, e.g.{"model_auto_compact_token_limit": 128000}. - Lean Codex sessions — Opt-in
"codex": {"lean": true}turns off Codex's apps (the GitHub
connector among them), browser, computer use, image generation, plugins and web search, and
compacts at 128K: a fresh thread's first call drops from 47.5K to 12.8K input tokens. - Degraded sandbox detection — After a Codex thread starts or resumes, the node compares the
sandbox Codex reports with the one asked for; a mismatch marks the session degraded (a warning
and a status detail), andcaps.read_onlyinfleet_listnow follows the reported sandbox. - Store PowerShell warning — On Windows the node warns at start when
pwshis the Microsoft
Store alias, which Codex's sandbox can't start, and says to install the PowerShell 7 MSI. - Queue length — Nodes report how many messages wait in each session's queue;
fleet_list,
fleet_status, the API and the web UI's session lists and details show it. - Queued messages in the web UI — A message that waits for a session's next turn shows as a
dimmed "Queued, N ahead" bubble with Send now and Cancel; agents' queued messages show as one
row with Clear.GET /v1/sessions/{id}/queue,POST /v1/messages/{id}/promoteand
POST /v1/messages/{id}/cancel(the sender or an owner) do the same through the API. - Messages for offline hosts — A message sent while the session's host is offline shows as
a "Waiting for " bubble with Cancel, instead of a toast, and the composer says the host
is offline. The queue API lists these asheld. - Messages to several recipients —
fleet_send'sto(and the API's, andswk msg --to
repeated) takes a list of addresses: one message per recipient, sharing a group id, and a
result that lists each one's id or why it could not go. Limits count every recipient. - File attachments — Messages carry up to 4 text files (patches, logs; 1 MiB each):
files
infleet_send/fleet_ask, checked like images, and--fileonswk send,msgandask.
The receiving node writes them under~/.cache/switchworks/filesand the message gives the paths. - Delivery receipts — A message is
seenonce the turn that carried it completes, with the
turn and its last reply;fleet_sendreturnsdelivered_atfor a steer, andfleet_inbox
(all) shows sent messages' state. The web UI shows "Delivered 14:02", then "Seen 14:05 · reply". - Low disk warning — The coordinator checks the free space on its data volume every five
minutes, logs a warning while it is low (under 5% of the volume, between 1 and 10 GiB), and
reports"storage_low": truein/v1/health.
Changed
- Messages go into the running turn by default — The new default mode,
auto, for
fleet_send,swk send/msg, the web UI ("Now (steer)") and the API, steers a message into
the target's running turn when its harness can, and starts a turn otherwise. Agents may steer
any session; interrupting still needs a session they spawned orallow_steer_any. Messages
arriving during a steer go in as one.swk spawn --no-steer(accept_steer: false) opts out. - Queued messages go in as one turn — A session's backlog is delivered as one turn, each
message with its own header, instead of one turn (and one full-context model call) per message. - People's messages first — The owner's messages, then other people's, wait ahead of agents'
in a session's queue, so a backlog of agent traffic no longer holds them back for hours. - fleet_inbox lists unread messages — By default it returns only messages the session has
not seen (in an earlier call or as a turn), in a compact form, instead of the last 20 full
records each time.all: truelists recent traffic andverbose: truegives full records. - Queued messages expire on the node — A message's TTL (default 24 h) now also covers the
session's queue: the node drops one past itsexpires_atinstead of delivering it, the state
becomesexpiredand an agent sender gets the usual notice. The web UI's queued bubble says when. - delivered_at means in the session's input — A queued message's
delivered_atis now set
when its turn starts, not when the node queues it; until then it isdeliveredwithout one,
which the web UI shows as "queued". coordinator initkeeps the admin config to itself — It no longer installs the admin
cli.jsonas your user's CLI config unless you pass--user-cli(the system service and the
container image still do; they run no agents).--no-user-cliis still accepted. Setup hints
now suggest areadtoken for every machine where agents run.- Admin-token browsers sign in again — Browsers signed in with the admin token must sign in
once more after upgrading (see Security), and so must a browser on HTTPS that still holds the
oldswk_sessioncookie. - Bounded session queues — A session's queue holds at most 256 messages and 4 MiB of text,
and a node's sessions 256 MiB of queued images; the owner's messages may use all of it, everyone
else's three quarters, so agents can't lock the owner out. A message that doesn't fit, or that
the node can't save, fails with the reason. - Stopped sessions are forgotten — Stopping a session fails the messages in its queue, so
senders hear, and once the coordinator has its events the node drops its record and spool. - At-most-once delivery across a crash — The node saves a turn's messages as being sent before
the harness gets them; one still marked after a restart is reported failed rather than
delivered twice. Redeliveries are recognised until an hour past the message's expiry. - Event logs are capped — Each session's event log on the coordinator is capped at 256 MiB
(event_log_max_mb; negative for no cap). Past it the oldest events are dropped, keeping about
half, behind a warning event; seq numbers don't change, so acks, stream resume and paging work
as before. A long-running or looping session could fill the coordinator's disk. - Received files — A node keeps at most
files_quota_mib(default 1024 MiB) of received files,
in<session>/<message>-<random>/folders. Sessions on one host run as the same user and can
read each other's received files. - agy approval modes — agy runs with
--dangerously-skip-permissionsonly at sandbox
danger-full-access; approval policyneverbelow that maps to--mode accept-edits, and
read-only sessions keep agy's request-review.
Fixed
- Delivery mode in the web UI — The composer keeps Now (steer) as the default and keeps a
session's other pick across sends and reopening the session, until the session ends. - Codex args without a subcommand —
codex.argsis Codex's whole argument list; one with only
-coverrides droppedapp-serverand every session failed with "connection closed". The node
now refuses it at start, and logs app-server's stderr when it fails to start. - Read-only Codex sessions on Windows — Codex ran
workspace-writethreads read-only on
Windows whenconfig.tomlset no Windows sandbox mode, rejecting every command. The node now
passes-c windows.sandbox="unelevated"unlessconfig.tomlornode.jsonsets one. - Stalled message queues — A session could sit idle with hundreds of queued messages: when
Codex reported the thread idle just before the turn ended, the node's delivery got "busy" and
waited for an idle status that had already come. It now retries at once or with backoff, a
sweep retries any session left idle with a queue (and logs a warning), and the Codex adapter
drops a turn id that never completed once the thread has been idle for 10 s. - One bad message failed a whole batch — If the harness refuses a coalesced turn, each message
is retried on its own and only one that fails alone is failed. A turn or steer the harness
doesn't answer in time is neither resent nor failed, and is reported delivered if it starts. - Expiry during long turns — Queued messages now expire on time while their session runs a
long turn or waits for an approval, and the coordinator no longer expires a message while its
node is taking it. - Receipts —
message.deliveredis recorded once a queued message has gone in, not before a
busy attempt; a steered message is credited to the turn it went into. - Promote and image cleanup — A queued message being sent now keeps its images while it is
steered in. - Codex double turns — A running turn is no longer dropped as stale because of an idle status
from before it started, which could start a second turn beside it. - A harness that stops reading — It no longer hangs every session on the node: a write that
takes 30 s closes the connection and the node restarts the harness, and replies to the harness
no longer block reading from it. - ACP and agy robustness — An ACP agent that sends a request the moment it starts no longer
risks crashing the node, and edit diffs are computed once; agy stdout lines are capped and its
model is passed as--model=value; Codex notifications for unclaimed threads no longer fill
the early-notification buffer for good. - Process groups — On Linux and macOS, stopping a harness no longer signals a process group
whose id may have been reused; on Linux its leftovers are ended before its process is reaped. - Store tidying — Expired enrollment tokens are swept, the message budget also counts image
and file metadata, messages dropped for it no longer come back after a restart, and an unknown
`ses...
Switchworks v0.1.4 Alpha
Fixed
- Harness tabs in Windows Terminal — On Windows the node started codex, goose and agy with
a console of their own, which Windows Terminal (the default terminal) showed as a tab in your
window; closing it ended the harness. They now run with a hidden console. - Codex app-server restart loop — An app-server that exits soon after it starts is restarted
after growing waits and left down after 8 restarts in a row, instead of every second for
good. The node log gives its exit code and how long it ran.
Switchworks v0.1.3 Alpha
Added
- Codex permission profiles —
codex.permissionsinnode.jsonnames a Codex permission
profile thatworkspace-writesessions run under, on start and on resume. A profile can turn
the sandbox's network on while denying reads of credentials; Codex ignores profiles for a
thread given a sandbox mode, so they had no effect on Switchworks sessions before.
swk dev run --codex-permissionsdoes the same for one turn.
Security
- Sandbox network and credentials — The docs now warn against
[sandbox_workspace_write] network_access = true, which lets sandboxed commands send out
anything they can read (provider keys, SSH keys, the GitHub CLI's token, Switchworks tokens),
and describe a permission profile that denies those reads instead.
Switchworks v0.1.2 Alpha
Added
- Change a running session's approval policy —
swk policy <session> untrusted|on-request|never,
or the Approvals menu in the web UI's composer. Codex applies it from the next turn; Goose and
ACP agents with session modes switch mode at once. It survives a resume. Loosening a policy
needs the admin token or an owner token. - Resizable sidebar — Drag the web UI sidebar's edge (or use the arrow keys on it) to see
long session names; the width is kept per browser.
Security
- Messages from people name their credential — A person's message reached agents without a
header whichever token sent it, so an agent that read anoperatetoken on its host could
send messages that looked like its owner's. Messages and first prompts now carry the
credential they were sent with (via=token:<name>), and only the admin token's and owner
tokens' plain messages arrive without a header. Mark the tokens on your own devices with
swk token owner <name> on(orswk token create --owner), and keep owner tokens off every
host where agents run; those hosts should carry at most areadtoken.
Switchworks v0.1.1 Alpha
Fixed
- macOS node blocked from the LAN — The LaunchAgent now starts the node through Switchworks,
which macOS asks about Local Network access; v0.1.0's was denied without a prompt. Run
swk service installagain after updating. - Harnesses in
~/.local/binon Linux —swk service installgives the node's user unit
your login shell'sPATH, so codex, goose and agy installed there are found. - Node dropped while connecting — A command sent to a node in the moment between its
connection and the coordinator's welcome no longer ends the connection. - Defender quarantined
swk.exeon Windows —swk service installwrote the logon task to a
file in%TEMP%and ranschtasks.exeon it, which Microsoft Defender's behavior monitoring
flagged asBehavior:Win32/Persistence.A!ml. Switchworks now uses the Task Scheduler API
directly, with no task file and no child process; this is not yet tested against Defender. swk service startandrestartreturned early on Windows — They now wait for the node or
coordinator to report running, soswk service statusright afterwards shows it running.
Known limitations
- Defender may still flag the unsigned
swk.exe— If Windows Security quarantines it, restore
it as the README describes and report the false positive to Microsoft.
Switchworks v0.1.0 Alpha
Added
- Coordinator and nodes — One always-on coordinator keeps every session's event log, routes
messages and serves the web UI and API; a node on each workstation runs the harnesses as you
and dials out, so workstations open no inbound ports. - Codex sessions — Driven through
codex app-server, with streaming, diffs, token usage,
approvals and steering of a running turn. - Goose and other ACP agents — Goose through
goose acp; other Agent Client Protocol agents
configured by name (experimental). - Antigravity
agysessions — Through its headless mode (experimental; agy 1.4.0). - One fleet view — Every session on every host, addressed as
host/name, from the web UI, a
phone or theswkCLI. - Session control — Spawn, message, steer, interrupt, approve, stop and resume on any host;
sessions resume after a node or coordinator restart. - Fleet tools for agents —
swk mcpgives each sessionfleet_ask,fleet_send,
fleet_spawnand friends, bounded by hop limits, rate limits, spawn depth and a daily token
budget. - Inbox — Agents can ask you questions; the tab title and badge count what needs you.
- Images — Screenshots in messages and prompts from the CLI, the web UI and between agents
(Codex and Goose). - Web UI — For desktop and phone, dark by default with Light and Match-system themes, and
phone sign-in with a one-time link. It loads nothing from the internet. - Scoped API tokens —
admin,operateandreadtokens (swk token create), with a
ready-madecli.jsonfor each workstation. - Session retention — Ended sessions are deleted with their event logs 90 days after they
end by default (session_retention_days);swk rmdeletes one at once. - Services at login —
swk service installruns the node or coordinator as you: a systemd
user unit, a LaunchAgent or a logon task. - System coordinator — On Linux and Windows the coordinator can run as a service under its
own account (switchworksorNT SERVICE\swk-coordinator), sandboxed, and starts at boot
once it is set up. - Tray icon and menu-bar app — Status, the web UI, start/stop/restart and logs on Linux,
Windows and macOS. - Packages —
.deband.rpm(x86_64 and ARM64), Arch (x86_64), a per-user Windows
installer, a macOS.dmg, plain archives, and a coordinator image on GHCR. - Fake model provider —
swk dev mock-providerserves OpenAI Responses and Anthropic Messages, to try
everything without spending tokens.
Security
- Private CA and mTLS — Nodes and the coordinator authenticate each other with certificates
from the coordinator's own CA; nodes join with one-time enrollment tokens. - Agent spawns confined — By host, harness, working directory (symlinks resolved), inherited
policies and a rate limit; a node cannot write another host's logs or paths. - No runtime dependencies — Static Go binaries built from the standard library only.
- Pinned workflow actions — Every GitHub action in CI and the release workflow runs from an
immutable commit; release files carry SHA-256 sums and build provenance.
Known limitations
- Agents with a shell share the node's trust — They can read the node's key and other
sessions' tokens on that host. - macOS and Windows — The packages, services and trays have had little real use.
- No macOS system coordinator — Run it at login there, or on Linux or Windows.
- macOS Gatekeeper — The
.dmgis ad-hoc signed but not notarized, so the first launch needs
the one-timexattr -crstep from the README. The Windows installer is unsigned. - No push notifications — The inbox count shows only while the page is open.
- Running sessions grow without bound — Only ended sessions are deleted.
- Web UI tested in Chromium only — Safari on iOS has not been tried.