Supervise your Mac's tmux sessions - and the coding agents living in them - from your phone.
Read progress, answer an agent's question, send the next instruction, and move between projects, without sitting at the laptop.
One binary. The phone UI is compiled in with go:embed, and Tailscale is
embedded with tsnet, so there is nothing else to install: no tailscaled, no
root, no Tailscale app on the Mac, no tailscale serve, no port forward.
Phone (Chrome PWA) Your Mac
Tailscale app +----------------------------------+
| | remux (one Go binary) |
+---WireGuard---+-> tsnet node "remux" |
https://remux | ListenTLS(":443") |
.<tailnet>.ts.net | |- embedded React UI |
| +- HTTP+WS API --exec--> tmux server
+----------------------------------+
remux never becomes a tmux client. Attaching - attach-session or -CC
control mode - adds a client whose terminal size renegotiates pane dimensions,
which would resize the layout you are sitting in front of. Everything is done
with targeted, clientless commands (capture-pane -t %14, send-keys -t %14),
and new sessions and windows are created with -d so the active window never
jumps.
The tmux layer refuses attach-session, switch-client, kill-server,
select-window, select-pane, resize-pane, resize-window and
source-file outright. The one deliberate exception is the pane menu's
Focus on laptop, which you have to ask for by name.
scripts/laptop-invariant.sh before / after proves it: it snapshots every
pane's geometry and fails if one vanished, changed size, or gained a client.
The one thing remux writes to panes you are using is four user options -
@remux_title, @remux_task, @remux_state and @remux_project (see Pane
names on the laptop). A user option is inert: nothing renders it unless your tmux config
asks for it, and no running program can be disturbed by it. The invariant
script reports every one of those writes and fails if a value is outside what
remux is allowed to write.
Download the release binary, make it executable, then:
./remux installinstall copies the binary to ~/.local/bin/remux and writes a LaunchAgent
at ~/Library/LaunchAgents/com.viminizer.remux.plist.
Two details worth knowing, both learned the hard way:
- It has to be a LaunchAgent, not a system daemon. A daemon runs as root, and your tmux server belongs to your own login session - root cannot see it.
- The binary is copied out of wherever you ran it from. macOS guards
~/Desktop,~/Documentsand~/Downloadswith TCC, and a LaunchAgent has no consent to read them: pointing launchd at a binary under one of those produces a process that hangs insidedyldbeforemain()runs, reporting a healthy pid and writing nothing to any log.
Then, once:
- Open the login URL printed on first start
(
tail -f ~/.config/remux/remux.log) and approve the device. - Turn on MagicDNS and HTTPS Certificates at
https://login.tailscale.com/admin/dns. Without them
ListenTLSfails; remux catches that and tells you which toggle to flip rather than showing a raw TLS error. - On the phone: install the Tailscale app and sign in, scan the QR code remux prints, then Chrome menu -> Add to Home screen.
Keeping the Mac awake is still your job: caffeinate -dims, or Amphetamine.
remux run on your tailnet
remux --local run on 127.0.0.1:7399, no tailnet, no auth - for UI work
remux install write and load the launchd agent; starts at login
remux uninstall unload and remove it
remux restart reload after replacing the binary
remux status preflight, launch agent, node state, identity
Updating is: replace the file, remux restart.
There is no token anywhere. WhoIs resolves the caller's Tailscale identity
from the connection itself, and only the enrolled login gets through -
everything else gets a 403 that never reaches tmux. The check gates the
WebSocket upgrade as well as the REST routes, so a socket cannot outlive it.
AllowLogin defaults to the first identity to connect, so it self-configures.
Every mutating request is written to ~/.config/remux/audit.log with the
caller and the tmux target.
Under --local the check is skipped, because the listener is loopback-only.
ListenFunnel is deliberately not used. This is a remote-control plane for a
machine running agents with filesystem access; it stays on the tailnet.
Intel i9-9880H, macOS 26.6.2, tmux 3.5a, against a real workspace of 3 sessions / 17 windows / 27 panes.
| Binary, stripped | 21 MB (22,323,792 bytes) |
| RSS, idle | 14.3 MB |
| RSS, after a full tree + previews of 29 panes | 15.7 MB |
GET /api/tree |
19-23 ms |
GET /api/tree?preview=1 (29 panes captured in parallel) |
~30 ms |
One capture-pane |
~11 ms |
The stripping is not optional: the same binary is 31 MB unstripped, so
scripts/build.sh always passes -ldflags="-s -w".
The one part of remux that leaves the tailnet. A watcher classifies every pane
every 5 s and notifies only on a transition into waiting, with a 5-minute
per-pane cooldown, suppressed if the phone already has that pane open. It only
runs while at least one subscription exists.
The payload carries session name, window name and pane id - never pane
content, because it passes through the browser vendor's push service. Tapping
it opens /#/p/%14 directly.
The phone needs ordinary internet to receive pushes, not just Tailscale, and the Mac needs outbound access to the push service.
remux writes three user options onto each agent pane, so the laptop can read the same thing the phone does:
| option | what | cost |
|---|---|---|
@remux_state |
one glyph: ! blocked on an answer, ✳ working, ✓ idle |
free, from the classifier that already runs |
@remux_task |
3-5 words naming the work, read off the screen by a cheap model | a fraction of a cent, and only when the work changes |
@remux_project |
the short repo name the pane is working in, at most 12 characters | free, worked out from the pane's own directory |
None of them is rendered by tmux on its own. Put them in your status line to see them - this is the snippet the glyph exists for:
set -g window-status-format '#I:#W#{?#{!=:#{@remux_state},}, #{@remux_state},}'
set -g window-status-current-format '#I:#W#{?#{!=:#{@remux_state},}, #{@remux_state},}'
set -g pane-border-status top
set -g pane-border-format ' #{?#{!=:#{@remux_task},},#{@remux_task},#{pane_current_command}} #{@remux_state} '@remux_task is the only part of remux that spends money, so it has a switch
on the Settings screen. Turning it off clears the names it wrote; the glyph
half keeps working and has no switch, because it costs nothing.
Claude and Codex take GitHub issues on their own, and Codex reviews and merges
their pull requests. You only step in when an agent is stuck. The design is
docs/agent-harness.html.
Set a repo up once:
remux harness init ~/code/myrepo # labels on GitHub, starter files in the repoThen fill in .remux/harness.json and commit it with .remux/decisions.md:
| field | what |
|---|---|
mode |
personal (Codex merges) or company (nothing merges; the PR goes to your supervisor) |
test |
the command that must pass before anything merges. Without it nothing merges. |
references |
local read-only clones the agents compare against for real decisions |
instructions |
project default instructions, read before every run |
supervisor |
company mode: the reviewer when there is no CODEOWNERS and no history |
A repo can also keep a brief per scope and role under .remux/instructions/, so
starting a loop does not mean pasting prose into a form on a phone, and a reviewer
is never handed a builder's brief. A start reads
<scope>-<role>.md first and falls back to <role>.md:
| file | the loop it briefs |
|---|---|
.remux/instructions/frontend-build.md |
a build loop with scope frontend |
.remux/instructions/backend-build.md |
a build loop with scope backend |
.remux/instructions/build.md |
any build loop whose scope has no file of its own |
.remux/instructions/review.md |
every review loop, whatever the scope |
.remux/instructions/supervise.md |
the supervise loop |
The code-quality build scope runs an independent bounded audit cycle without
reading or claiming the ready issue queue. Save its complete workflow in
.remux/instructions/code-quality-build.md or the preset instructions; there is
no fallback to a generic builder brief. Applying its phone preset selects one
Codex coordinator and turns off the separate review, supervisor and cleanup
loops. Start it yourself when ready. This scope uses a dedicated
loop-quality-codex-<repo> session and preserves other loops' assignments and
queued stop requests. Its start API rejects mixed plans; use the dedicated start
instead of changing another loop's scope to code-quality.
Each cycle launches a fresh Sol coordinator. The supplied workflow controls fresh audit, implementation, Codex CLI review and consistency-review workers, including any explicitly authorized merge. Categories rotate through UI screens, backend reads, backend writes and shared components only after completion. One repository lock serializes quality cycles even when several processes start them. The coordinator inherits that lock, so an orphaned coordinator keeps it after an abrupt loop-process death.
Reports, per-cycle saved instructions and handoffs persist privately under
$(git rev-parse --path-format=absolute --git-common-dir)/remux-code-quality/.
The coordinator runs in a separate detached checkout there, refreshed to fetched
origin/main before each run; dirty coordinator files block refresh and are
preserved. Actual fixes use their own worktrees. A failed or limited run resumes
the same cycle and saved brief, preserving pending fixes. The current
cycle-*/handoff.md, root ledger.md and last-run.md are the recovery record.
They survive session/task-worktree removal, but are local evidence, not a backup.
The scheduler requires a successful coordinator exit, a nonempty report.md and
complete.json with outcome clean or merged before rotating. These receipts
schedule the next cycle; they do not authorize merges. Exact-head reviews,
accepted PR comments, checks, merge authorization and cleanup are enforced by the
saved workflow and coordinator instructions, rather than independently verified
by the Go scheduler. A missing brief blocks launching, native provider budget
gates apply before spawning, and normal stop/timeout/usage behavior remains.
These are session instructions, layer 2: harness.json's instructions are still
the project defaults underneath, unless the start asks to replace them. Whatever the
start submits itself stands for any role the repo keeps no file for, so a repo with
no .remux/instructions/ behaves exactly as before. The start's reply names the file
each loop was given, under instructions, so nobody has to trust that the right brief
loaded. Editing a file and starting again reloads it.
Start loops from the phone: drawer → Loops → Start loop. Choose a project, then Code quality, Frontend, Backend or Custom, and review the impact before starting. Known worktree suffixes collapse into their main project; independent clones remain separate and show paths when their names collide. Missing historical paths are omitted by a bounded lookup when the form opens, without deleting config. Background loop polling never probes project files.
Code quality appears enabled only when the selected project has a nonempty
.remux/instructions/code-quality-build.md. It runs one fixed Sol coordinator,
with fresh internal workers and two review gates, and preserves ordinary loops.
Frontend, Backend and Custom offer a simple Codex/Claude choice. Advanced controls
hold counts, Claude models, reviewer/supervisor/cleanup settings and guidance.
Existing mixed teams are reconstructed without resetting their models. Manage
scopes edits the existing saved name/scope/instructions/mode records; named deletion
removes only the saved record, never a running loop. Custom’s saved-scope selector
uses each saved name, including guidance for built-in scopes; presets sharing a
scope retain separate drafts per project. Pane subdirectories collapse into an
observed or configured root of the same repository; separate clones remain choices.
The summary shows starts, updates, stops and preserved lanes using the actual
session naming rules. Advanced counts are the whole ordinary team for the project,
up to five of each provider and five reviewers: two Claude loops are
loop-claude-<repo> and loop-claude2-<repo>. Applying changes starts missing loops,
updates retained loops for their next task and stops removed loops (working or
triaging loops after their task; idle/blocked loops now). Changing a provider on an
active supervisor or cleanup loop is refused until it is idle. Ordinary changes
preserve code quality, and other projects remain untouched.
Effective instructions show selected role files, form fallback, and project defaults
according to add/replace mode. Folder/network failures remain distinct from an
unconfigured workflow. File lookups are on demand, cancelled on project changes,
and bounded to three seconds and two outstanding readers. A kernel-stalled file
read may occupy a reader until macOS releases it; requests fail promptly when
slots are exhausted. No full workflow is injected into tmux by this preview.
Start loop uses custom keyboard-accessible dropdowns for project, saved guidance,
providers and instruction modes, including the scope dialog and shared model
picker. Menus scroll within the viewport and appear above dialogs. Build updates
remain in Settings; Start loop has no version or reload control.
Each loop claims an issue with its own by:<session>
label first, so two loops waking together never work the same one. Each loop is a
detached loop-* tmux session running remux loop. A build loop takes one
ready issue per run (blockers first) in its own worktree under
.claude/worktrees/, and opens a draft PR. The review loop runs codex exec review on
each needs-review PR and posts its findings as inline review comments. A
second Codex run fixes them on the PR's branch, only when there are findings or
the branch conflicts. A crashed run is started again, up to 3 times, before the
PR goes to needs-human. Then the loop runs your test command itself, merges
or marks the PR ready for the supervisor, and removes the review's worktree. A
conflict with the default branch, failing tests or a refused merge go back to a
fix run, and the loop tries again. The PR goes to needs-human after 2 fix runs
that did not help, or 10 in all. A conflict the fix run resolved counts as help,
even when the default branch moved on again. Labels are the state:
ready · wip:<scope> · done:<scope> · blocker · blocked · needs-review · needs-human
A repo with its own status:* labels works as it is. status:ready counts as
ready, and the loops move an issue through the repo's own status:in-progress,
status:review and status:blocked as they work it, when those labels exist.
When no ready issue is eligible for its scope, a build loop runs a triage
pass using a shortlist of unfinished work for that scope. Generic ready
labels on completed scopes do not count as available work. The prompt shows
both counts, prioritizes partial deliveries awaiting continuation, and excludes
claimed, deferred, held and non-dispatchable tracking/release-review tickets.
Blocked work is inspected against actual merged prerequisites and time gates;
an open prerequisite for paused frontend does not by itself block backend.
If the shortlist is empty, no agent triage run is launched. Otherwise the
agent marks up to 5 issues ready in the repo's own format and says why in a
comment. It changes no code and runs at most every 5 minutes.
Trying Sonnet. Each Claude build loop has its own model selector: Sonnet, Opus, or CLI default. The supervisor has a separate selector. New forms start with Opus; existing loops retain their selection. Set Claude 1 to Sonnet and the other Claude loops and supervisor to Opus for a small trial. A loop's Edit screen also changes its model, starting with the next issue. All Claude runs keep medium effort. Codex review and repair keep their existing settings.
For API clients, POST /api/loops accepts models, an array aligned with
agents, and superviseModel. Use an empty string for CLI default; omit the
fields to preserve running loops' choices. PATCH /api/loops/{name} accepts
{"model":"sonnet"} (or opus or an empty string). The CLI also accepts
remux loop --model sonnet with its usual repo/session arguments.
Run history is appended to ~/.config/remux/loop-runs.jsonl, with start/end
records, the requested model alias, issue or PR number, exit code and duration.
Build outcomes link issues to PRs; review-stage records distinguish review
from agent runs, and merge/stuck events remain in the history after a loop
stops. Compare build results with subsequent Codex runs using the PR number.
The history contains no prompts or agent output. It does not measure tokens,
billed usage or the exact model version behind an alias. A start without an
end means the run was interrupted before it could record its result.
Claude builds also leave a PR comment naming the selected model, source issue,
scope and commit. The note identifies the build contribution; Codex may repair
the PR afterward. Repeating settlement for the same contribution does not add
another comment. Earlier PRs are not retroactively attributed.
After upgrading from a version without model selection, existing loop
processes must finish and restart to use it. Restarting the service updates
the phone UI but leaves those processes running their previous code.
Each loop checks the queue at most once every 30 seconds, including after short runs.
Idle and failed checks wait 30 seconds before retrying. Queue triage runs at most once
every five minutes per loop and checks readiness for the selected scope,
including unfinished work left in review after partial merges. A confirmed
merged issue-N[-scope] PR returns its open, unfinished source issue to ready;
completed scopes, active claims, open replacement PRs, postponed and blocked
work stay out. Idle builders also recover older merged work stuck in
status:review. The expensive recovery scan runs at most once every five minutes,
shared by builders of the same repository and scope. Normal merged work is requeued
immediately; new-work polling stays at once every 30 seconds per loop.
The supervisor checks needs-human first, then inspects same-repository builders
and reviewers idle or blocked for at least two minutes. It can investigate stale
labels/claims, merged partial work, missing prerequisites, review waits and
build/runtime failures, with at most one investigation per 15 minutes. An empty
unfinished queue costs no AI run. Stopped and usage-limited workers are excluded.
The previous intervention is included so the next investigation verifies its result.
It can delegate an eligible issue or PR to an available existing loop through a one-shot preferred task. Workers re-read eligibility and use normal claim locking; the preference cannot bypass scope completion, ownership, held/postponed work or external blocks. Working loops and their instructions/models remain untouched. Diagnosis and actions are recorded in visible issue/PR comments and local run logs, and the last supervisor result remains visible on its loop card/detail.
When no suitable worker is available, the supervisor can request one-task custom builders or reviewers without another approval. Up to five custom builders and five custom reviewers may run concurrently per repository. They use normal queue claims, preserve drafts/unfinished work and remove their own session after the run. Known overlapping code files keep builders sequential; the supervisor also checks written ownership before requesting parallel work. Stopped projects stay stopped.
Before starting a custom worker, bunx tokscale@latest usage --json supplies live
subscription headroom. Codex requires the active account and more than 30% actual
weekly quota remaining, without predicted reservations for concurrent tasks.
Claude builders have no usage gate, including when quota data is unavailable or
another Claude worker is waiting for a native limit reset. Claude still enforces
its own limits; failed runs preserve unfinished work. Claude reviewers retain the
25% normal / 40% deep effective-headroom checks and 10/20-point concurrent task
reservations. Installed CLI, task ownership, overlap and worker-count checks still
apply. This is an on-demand spawn policy, not an automatic quota watcher or a rule
that stops existing work. All first-release scope, privacy and financial rules remain.
Queue reads use GraphQL and wait for its reset instead of falling back to REST. Dependency checks batch up to 25 blocked issues into one query and paginate every dependency list. Startup reads the harness labels through GraphQL and creates only missing labels, avoiding repeated updates to existing labels from every loop.
A supervisor can finish with RESOLVED PARKED to record a waiting decision
without retrying the item. blocked:external protects unavailable credentials,
external prerequisites and time gates from automatic dependency unblocking.
Use RESOLVED READY only after verifying the parked prerequisite is available.
Review loops use a balanced policy by default. Documentation and small changes
(at most three files and 80 changed lines) go to Claude Sonnet at medium effort.
Other changes alternate Claude Sonnet and Codex, sharing a rotation across the
repo's worktrees and review loops. Finance, authorization, migrations, destructive
operations, binary changes and large diffs receive high effort (Claude Opus or
Codex). Paths and changed code determine the route; this is a conservative
classification, not a claim that the diff has a bug. Add "review_policy":"fixed"
to .remux/harness.json to preserve a loop's explicitly selected provider/model.
Both policies use the same review instructions and completion checks.
Each finding must trace a reachable user action through existing validation to a wrong result, with file/line evidence. Ignore style, imagined scale, impossible states and redundant defensive checks. Reachable money, stored-data and privacy failures still matter when rare. Inspect the changed code and direct callers in one pass; expand only for a concrete failure. Ordinary inspection aims for 5–10 minutes; builds and repairs can take longer. Review runs have a 20-minute ceiling (40 minutes for deep routes). A crash, usage limit, timeout or incomplete verdict hands preserved work and evidence to the other provider once. Neither a timeout nor passing checks counts as a completed review. Two incomplete runs leave the PR unmerged for supervision.
The visible PR review records provider, model, effort, route, inspected commit, checks and elapsed review/repair time. Run history also records handoffs and completed review duration, with the reviewer's self-reported count of verified bugs repaired. Missing counts stay missing. Compare matching change classes and verify those repairs before favoring a provider; raw finding count is not a score. No automatic performance weighting or quota polling is introduced.
Completed review statuses may put the confirmed repair count on the same line.
Quoted examples and explicit incomplete verdicts still cannot approve a review.
A resumed PR can reuse a trusted harness review of its exact current head;
changed heads and newer incomplete verdicts require inspection. Reuse still
runs the required checks and handles main-branch conflicts, without crediting a
new provider review or repair count. Supervisor resumption also clears the
mirrored status:blocked PR label so needs-review can actually be picked up.
When a GitHub CLI operation reports a primary GraphQL rate limit, the harness uses REST for supported issue/PR listings, metadata, comments, review history, diffs, label setup, posted reviews and guarded squash merges. It keeps the same label, pagination, draft and tested-head rules. Permission and ordinary network errors are not retried through another transport. A per-process cooldown stops repeating exhausted GraphQL requests; normal commands resume after the reset. REST failures respect reset/Retry-After headers. Secondary limits pause both transports for at least a minute. Waiting is a queue delay, not a needs-human review failure, and a merge wait keeps needs-review attached.
Draft-to-ready is still a GraphQL-only step and waits for that budget. Agent prompts also explain REST creation of draft PRs when their own gh commands hit the primary GraphQL limit; child CLI commands are not intercepted by the harness.
The agents run in yolo mode, on the Mac itself: Claude with
--dangerously-skip-permissions and Codex with
--dangerously-bypass-approvals-and-sandbox. They can run any command your user
can, so only start loops on repos whose issues you trust.
The supervisor. Turn on Supervisor when you start loops, and a
supervise loop takes every needs-human item before you do. It fixes what the
loops got stuck on (a failed push, a conflict, a failing test) and answers an
agent's question only when the issue, the decision log, the docs or the code
clearly decide it. Everything else it passes to you as a plain-English question
with its recommendation, and labels it escalated. While it runs, the "stuck"
push only fires for what it passes on; the Inbox shows the rest as "the
supervisor is checking this".
Ask the supervisor on the Loops screen opens a Claude session that knows how the loops work, as an ordinary pane. Ask it anything: what a loop is doing, why a PR did not merge, what to do about an item.
A stuck agent pushes "An agent is stuck". The notification opens the question with its options as buttons, and Send and resume posts your answer and puts the item back in the queue. The other two pushes are a merged PR and a company PR sent to the supervisor.
After a crash or a reboot. tmux keeps a loop's settings only in memory, so
remux also saves every loop you start or edit in its config, and forgets it when
you stop it. The Loops screen then lists the saved loops that are not running,
and Restore starts them again as they were. A loop's work is not lost: its
worktree is on disk, and the loop that takes the issue again reuses it. Two
things a crash leaves behind are cleaned up on their own: loop-* sessions
tmux-resurrect brings back as empty shells are removed, and by:<session>
claim labels of loops that no longer exist are taken off.
Cleanup loop. Agents leave things on the laptop after a PR merges: folders
of evidence, drafts in /tmp, dev servers, database containers. Turn on
Cleanup in the start form and one more loop sweeps every 30 minutes. It
looks in ~/.local/share/<repo>/, ~/.<repo>-*, /tmp/<repo>*, the repo's
.claude/worktrees/, processes started from those folders, and containers
named <repo>-*. A leftover that names a closed issue or PR (educenter-2059-pg,
observations/1968-backend) goes, unless a loop works on that number or the
folder changed in the last day. A leftover that names no issue is shown to the
agent, which reads the repo's docs and answers remove or keep; it never removes
anything itself, and its answer is remembered. Folders go to
~/.remux/cleanup-trash/<date>/ and are erased after 7 days; processes get
SIGTERM and containers docker rm -f -v. Each sweep writes
~/.config/remux/cleanup-<loop>.txt (what went, what stayed and why) and every
removal is appended to ~/.config/remux/cleanup.log. A new cleanup loop starts
as a dry run that only writes the report; start it again with Remove
leftovers once the report looks right. Agents also get their own scratch
folder per run ($REMUX_SCRATCH), deleted when the run ends, so /tmp stops
filling up.
A supervisor is an agent that runs one task for you from start to finish. It works like a distinguished engineer: it plans, splits the work, hands it to worker agents, checks their work and merges it. It never writes code itself. It is separate from the loops: no issue queue, one task at a time.
Open Supervisor in the drawer, then New task: pick the project and the supervisor's agent (Claude or Codex), and describe the task.
- Discuss. The supervisor studies the code and answers in the chat, with questions and design options. When it is clear, tap Make the plan.
- Approve. The plan has the goal, the decisions and why, the steps, what runs in parallel, the risks. Approve it, or Send back with a comment.
- Run. It works alone. It spawns the specialists it needs (researchers,
builders, reviewers, testers), each in its own tmux session
(
loop-sv-<task>-w<nn>). Builders work in their own worktree, a separate reviewer checks every change, and it merges in order. - Status. The Status tab shows the plan's steps, what changed and why, and the evidence. It asks you only when the goal would change or a change goes against a decision you made. You get a push for: plan ready, needs you, done.
- Done means merged, with its branches and worktrees cleaned up, and a retro written.
| Where | What |
|---|---|
~/.remux/supervisor/tasks/<id>/ |
one folder per task: brief, chat, plan, status.json, events.jsonl, each worker's instructions, stream and report, the retro |
~/.remux/supervisor/models.json |
the model ranking, weakest first. Edit it when new models come out |
~/.remux/supervisor/lessons.md |
lessons for every repo |
.remux/lessons.md, .remux/roles/ |
in the repo: its lessons and role templates that worked |
Models. No supervisor or worker uses a model stronger than the default in
~/.claude/settings.json or ~/.codex/config.toml. remux checks this before a
session starts. Astra models are never used. The supervisor runs at high effort,
workers at medium.
Limits, in Settings: 1 running supervisor per repo, 3 in total, and a pool of 8 workers they share. A task over the limit waits in the queue.
The supervisor's tools are remux sv ... (list, read, msg, spawn,
wait, tell, resume, status, log). Supervisors can read each other and
any worker, and message each other; they never instruct another supervisor's
workers. A Claude worker reads urgent messages after its next tool call, through
a hook; a Codex worker only on resume.
Raw agent streams of a finished task are deleted after 30 days. Stopping a task leaves its worktrees and branches for you to judge.
./scripts/build.sh # vite build + go build -> bin/remux
SKIP_UI=1 ./scripts/build.sh # Go only
./bin/remux --local # http://127.0.0.1:7399
go test ./... # includes live tests against a remux-test session
cd web && npm test # the ANSI converterThe live tests create their own throwaway window inside a remux-test session
and ask tmux which session a pane belongs to before sending a single key. They
skip if that session does not exist:
tmux new-session -d -s remux-test- Status badges are regex heuristics over terminal output, all in
internal/agent/status.go. When Codex or Claude Code changes its rendering they degrade tounknown; they never break reading or sending. - v1 mirrors the rendered terminal screen. Nothing is parsed into speaker turns, which is what makes it work with any agent and any TUI, and what stops it breaking when one of them changes.
- Scrollback is whatever
capture-pane -S -Nreturns (400 lines by default). Panes in an alternate screen (vim, htop) have no history - only the visible screen.
A manually started review loop can use --review-policy fixed --agent claude
to keep Claude for every review and repair, including after a failed run.
Without an explicit policy, the project review policy still applies.
Settings groups Reading, Notifications, Input & keypad, Agent naming and App & updates. This device preferences stay in this browser; Remux on your Mac preferences change the service for all devices. Keypad customization and naming activity open their existing dedicated screens. Connection details and ignored GitHub checks are collapsed until needed.
Mac settings show saving, success or a retryable error inline. Failed saves keep the previous value and retain an ignored-check draft; Mac writes are blocked while another is pending. Reading controls preview the chosen terminal font (10–20px) and limit scrollback to 100–2000 lines.
Retry preserves the intended field change and uses the latest settings for the remaining Mac preferences, including settings loaded after the failed attempt. Ignored-check retries reapply the original Add or Remove to the latest list, preserving other refreshed entries and matching names without case sensitivity. The device notification status reports browser permission only; allowed permission does not confirm push registration or delivery.
The version shown is the interface loaded on this device. Checking for an update refreshes the Mac’s health/version without reloading. When the served version differs, Reload to update explicitly loads that interface; it does not install or upgrade the service on the Mac, and running loops continue.
Settings → Model usage shows remaining native Claude and Codex limits for two
explicitly configured accounts. The service reads ~/.config/remux/model-usage.json:
{"claude":"your-claude-email@example.com","codex":"your-codex-email@example.com"}This separate, local file is read-only to Remux. It contains account emails only; credentials stay in the existing CLI stores. An absent or invalid file shows a configuration error instead of selecting another account. Account emails match case-insensitively. Claude's selected native credential must identify the configured email through Anthropic's OAuth profile endpoint and remain selected across collection. Unknown or switched credentials are unavailable; cached CLI profile metadata is not trusted.
Opening the screen collects bunx tokscale@4.20.1 usage --json on demand, sharing
concurrent requests and caching results for one minute. Refresh asks for a fresh
reading. The reader is pinned because Claude credential verification mirrors its
selection rules; update the reader and binding together. Existing harness spawn
checks remain unchanged. Collection has a 40-second deadline and a one-second pipe cleanup bound.
There is no usage poller or model call. Failed refreshes retain the previous
verified reading for the same configured accounts, marked stale. Only reported
limit windows appear, and reset times use the phone's timezone. The authenticated
GET /api/usage endpoint exposes only these two accounts, never raw CLI output or
provider account IDs. Missing CLI sign-ins and provider failures remain independent.