Conductor

Every terminal UnionTerminal opens has a union command. An agent in one terminal uses it to see the other terminals, open new ones, run commands in them, read what they print and wait for them to finish. Before it reads or types into a terminal it did not open, UnionTerminal asks you. Agents running outside UnionTerminal connect over MCP. Conductor runs on your machine only, and one switch turns it off.

What you say to the agent

  • Run the dev server in one terminal and the tests in another, and tell me when it’s ready.
  • Have a second agent review what this one wrote.
  • Watch the deploy terminal and ping me when it finishes or fails.
  • Set up my usual four terminals (union apply).
  • Schedule a command to run later.

What the agent runs

# see what is open
union ls
# open a terminal in ./api and start the server
union open --cwd ./api --name API -- npm run dev
# wait until it goes quiet, then read it
union wait API --until idle
union read API
# reopen a saved set of terminals
union apply ws.json

Set up

Let an agent set up your terminals

An agent in a UnionTerminal terminal can open other terminals, run commands in them, read what they print and wait for them to finish. union save ws.json writes your open terminals to a file, and union apply ws.json opens them again with one command. union schedule queues a command for UnionTerminal to type at the time you set. To try it, run union ls in any terminal, or tell your agent: “Open a terminal named API in ./api, run the dev server there, and tell me when it’s ready.”

Approval

Decide what it may touch

When an agent wants to read, type into, close or rearrange a terminal it did not open, UnionTerminal shows a dialog naming the agent, the terminal and the start of what it wants to type. Deny is the default, and a dialog you do not answer within 60 seconds is denied. You can also allow it once, allow it for that terminal, or always allow that agent. To keep every agent out of a terminal, right-click its tab and choose Protect from Conductor.

Off switch

Turn it off

The switch is Settings → Conductor → Let agents drive Union. Off stops the pipe immediately, tells connected agents that Conductor is off, and strips the union command and the credential from terminals opened afterwards. You can turn it back on at any time without restarting. Conductor runs on your machine only and opens no network port.

Outside agents

Connect an agent running outside UnionTerminal

Agents inside a UnionTerminal terminal need no extra setup. Something running outside a UnionTerminal terminal (another terminal app, an editor’s agent, an MCP host) gets no credential. The first time it calls union, UnionTerminal asks you whether to let it in and what it may do, then gives it a saved permission, which the app calls a boarding pass. Settings → Conductor lists these agents; revoke any of them with one click.

Agents that run elsewhere get every ability as an MCP tool except union save and the union conductor subcommands (status, clients, revoke, log, on, off), which stay command-line only. union mcp serves Conductor over stdio.

Settings → Conductor → Connect an agent registers it with Claude Code (one entry in ~/.claude.json) or Codex (one block in ~/.codex/config.toml) with a single click. You see the exact file and entry before anything is written; Disconnect removes exactly that entry; a union server you configured yourself is never touched. Any other MCP host can use the copy-paste snippet on the same screen.

Claude Code Mode shows a Claude Code session’s context use and model on its tab. Turning it on offers to connect Claude Code at the same time (one checkbox, on by default). The two are independent: turning Claude Code Mode off leaves the MCP entry in place.

Questions

FAQ

Will my agent abuse this?

The reference agents read tells them to prefer their own terminal, open a new one for long-running work, read before typing, and treat a refusal as final. Conductor also enforces limits: typing into your terminals asks you, protected terminals are off-limits, every action is logged, and one switch turns it all off.

Is anything sent anywhere?

No. Conductor has no server, opens no port and needs no account. The pipe is local and per-user.

Why is it on by default?

Only processes inside a UnionTerminal terminal can talk to it, and without asking you they can type only into terminals they opened themselves. Everything else prompts you. Turning it off takes one click in Settings.

My agent says CONDUCTOR_OFF or command not found.

Conductor is off in Settings, or the terminal was opened before it was on. Turn it on, open a new terminal, and try again.

Does it work with two UnionTerminal windows?

One window owns the pipe at a time; Settings says so if another window has it. Terminals talk to the window that opened them.

Reference

The details

Abilities, approval rules, badges, limits, every command and every error code.

Reference

Setup

Every terminal UnionTerminal opens has union on its PATH and a private credential in its environment. Agents find it with union help --agent, a one-page reference written for them. You do not install anything, open a port or paste a token. Terminals opened before Conductor was turned on (or on an older version) do not have the command; open a new one.

An agent running in a UnionTerminal terminal (Claude Code, Codex, Cursor’s CLI, a shell script or any other program) can edit files. Conductor also lets it control the running app: open a second terminal in ./api and run the tests there, bring a terminal to the front when it needs you, colour and group its work, read what another terminal printed, or wait for a build to finish. Conductor runs inside UnionTerminal and communicates over a per-user local pipe. Nothing is hosted and no network port is opened.

Agents directing agents

UnionTerminal often has several agents open at once, for example Claude Code in one terminal, Codex in another, and a Cursor agent or a plain script in a third. Conductor is the protocol between them. The agent in one pane can open a terminal for another agent, hand it work by typing into its pane, wait until it goes quiet, and read its reply, all with the same union commands or MCP tools and under the same approval rules: reading, typing into, closing or rearranging a pane it did not open asks you first, and Protected panes are off-limits.

What agents can do

Abilities come in tiers. See terminals and Open and arrange never ask, and that includes running a command in a new terminal the agent opened in one of your shells (open -- CMD, the open_terminal tool with a command, apply_workspace); the one exception is an outside agent starting a program that is not one of your shells. Two commands that change Conductor itself always ask, whatever their tier: union conductor off and union conductor revoke (both work only from a terminal inside UnionTerminal, and an outside agent is refused). schedule counts as typing, so it asks for any terminal the agent did not open. Read output, Type into terminals and Close terminals ask for any terminal the agent did not open. So does changing one: renaming it, recolouring it, hiding it, floating it as a Satellite, or moving it into or out of a group. Making, renaming or recolouring a group itself does not ask. An outside agent that was paired for less (say, See terminals only) is asked about the difference when it wants more, in the same dialog instead of being refused.

  • See terminals: list terminals with their status, folder, group and colour; wait for one to go idle, exit, or show a prompt.
  • Open and arrange: open terminals (with a folder, shell, name, colour, group, optionally a command to run; they open in the background so your typing stays where it is, unless the agent asks to bring one forward), focus, rename, recolour, group, hide, float as a Satellite, change the layout, show a file in the preview pane. Renaming, recolouring, hiding or grouping a terminal the agent did not open asks you first.
  • Read output: read the last lines of a terminal’s output, with an optional filter. Reading a terminal the agent opened never asks; reading any other terminal asks.
  • Type into terminals: type into a terminal, run a command and read what it printed (one approval for the whole thing), send Ctrl-C.
  • Close terminals: close a terminal.

Rate limits and typing rules

Typing is also gated by what the terminal is doing: UnionTerminal refuses to type over live output (the agent can choose to wait), and refuses while a confirmation prompt is on screen. An agent can type at most twenty times in ten seconds and open five terminals a minute.

Badges show which terminals are linked

A terminal an agent is working with shows at most two small badges on its tab and sidebar row, and only for what is still true. A solid T means an agent typed into this terminal and that is the latest thing here (including Ctrl-C and scheduled messages); it goes as soon as a person types or pastes there, or after five minutes. A tinted indigo broadcast icon marks the conductor: the terminal whose agent is driving others. A plain grey link icon marks a terminal being driven; a terminal that is doing both shows the conductor icon only. Either one goes as soon as the other terminal closes, or after ten minutes of quiet; an agent running outside UnionTerminal has no terminal to close, so its badge goes on the ten-minute timer alone. Only typing, reading, opening and focusing a terminal tie it; looking, waiting, closing and arranging do not, and they are in the log. Hovering a badge shows the detail: “Claude Code typed into this terminal · 2m ago”, “Conducting "API" and "Web" through Conductor”, or “Conducted by "Orchestrator" through Conductor”. Click a badge to open the Conductor log showing only that terminal.

Approval and protection

Terminals the agent did not open. When an agent wants to read, type into, close or rearrange (rename, recolour, hide, regroup) a terminal it did not open, UnionTerminal shows a dialog naming the agent, the terminal (name, short id and folder), and the start of what it wants to type. Deny is the default, and Enter or Escape denies. You can also allow it once, allow it for that terminal, or always allow that agent. A denied agent is told the human said no, and it will not be able to ask the same thing again for a minute.

One dialog per action, shown one at a time. A command an agent runs and reads back, or a rename plus a recolour in one go, is a single dialog that says what it is asking. Dialogs line up and show one at a time; if your answer to one covers the next (“allow for that terminal”), the next goes through without asking again. You see the whole text the agent wants to type. “Always allow” is left out only when the text holds control or invisible characters, since those can press keys or hide what will run; a long message alone does not hide it. Hiding a terminal or floating it as a Satellite is only ever remembered for that one terminal. For an agent inside a UnionTerminal terminal, a remembered answer lasts until that agent’s terminal closes or UnionTerminal quits.

Unanswered dialogs. You have 60 seconds from when a dialog appears. If the time runs out, the request is denied and a notice tells you which agent wanted what. If the agent gives up first, the notice says it stopped waiting and nothing was done. If you revoke an agent while it is waiting, its dialog closes. After five “no” answers to one agent within five minutes, UnionTerminal stops asking you about that agent for a while.

Never let agents close terminals. Settings → Conductor has one switch that stops every agent from closing any terminal, including one it opened itself, whatever you allowed before. No dialog is shown; the agent is told closing is turned off.

Protected terminals. Right-click a tab → Protect from Conductor. A protected terminal shows a lock; agents can still see it in the list, but can never read it, type into it, close it, rename it, recolour it, hide it or move it between groups. No dialog is shown and nothing overrides this.

Provenance. When an agent has typed into a terminal, its tab shows the T badge described above, and the tooltip says who typed and when.

The Conductor log. Settings → Conductor keeps the last 500 actions: who, what, which terminal, allowed or refused. It never records what was typed or what a terminal printed (the only text it keeps is the terminal’s name), and it never leaves your machine.

Workspaces and scheduling

Save and apply. union save ws.json writes the open terminals (name, folder, shell, colour, group) to a small JSON file you can edit and share. union apply ws.json opens whatever the file lists that is not open yet (matched by name and folder), runs each new terminal’s command, and sets the layout. It never closes anything, so applying it twice is safe. Setting up your usual four terminals takes one command.

Schedule. union schedule API "npm run deploy" --at 14:30 (or --in 20m) queues the text into UnionTerminal’s Scheduler, which types it when the time comes. The approval rules are the ones for typing, decided when the message is queued.

On and off from the command line. union conductor off asks you before turning Conductor off, and only works from a terminal inside UnionTerminal (an outside agent is refused). union conductor on asks the running app to turn it back on (you see a dialog and decide), so an agent that finds Conductor off can still ask for it.

Privacy

Conductor is local: a per-user named pipe on Windows, a socket only your user can open on macOS and Linux. UnionTerminal opens no network ports for it and nothing about it is hosted. What agents type, what terminals print, file paths and folder names never leave the device and are never written to the Conductor log. Anonymous usage (when on) records only that Conductor is enabled and which kinds of command run. It never records their arguments. See the privacy policy.

Command reference

Every command accepts --json. A terminal is named by its tab name, id, unique prefix, or me. Exit codes: 0 ok, 1 refused or failed, 2 usage, 3 Conductor is off.

See: union ls · union me · union wait <t> [--until idle|exited|prompt|output] [--timeout 2m]

Open & arrange: union open [--cwd DIR] [--shell NAME] [--name N] [--color C] [--group G] [--satellite] [--focus|--no-focus] [-- CMD...]. Typed by you in another terminal, it focuses the new pane; run by an agent inside a UnionTerminal terminal, it does not unless you pass --focus. · union focus <t> [--attention] · union rename <t> <name> · union color <t> <violet|rose|amber|mint|sky|purple|pink|lime|none> · union group create|rename|color|add|remove|rm · union layout <single|columns|rows|grid|freeform> · union hide|unhide <t> · union satellite|recall <t> · union preview <path>

Read & type: union read <t> [-n 200] [--grep RE] [--raw] · union send <t> <text> [--mode input|paste|submit] [--wait] [--force] · union run <t> -- CMD... · union interrupt <t> · union close <t> · union schedule <t> <text> --at HH:MM | --in 10m

Workspaces: union save <file.json> [--force] · union apply <file.json>

Conductor itself: union conductor status|clients|revoke <id>|log|on|off · union mcp · union help --agent

Error codes

Errors print as CODE — message with a hint for the human: NOT_FOUND, AMBIGUOUS_NAME (the name is taken, or a rename would give two terminals the same name), PROTECTED, NOT_SETTLED, PROMPT_ON_SCREEN, CONFIRM_DENIED, CONFIRM_TIMEOUT (nobody answered the prompt in time; nothing was done), REQUEST_ABANDONED (the pass was revoked or the agent hung up while waiting; nothing was done), TIER_REQUIRED, CLOSE_TURNED_OFF, PAIRING_REQUIRED, PAIRING_DENIED, RATE_LIMITED, CONDUCTOR_OFF. A few rarer errors (bad input) are self-explanatory.

For agents

union run (MCP run_and_wait) types, presses Enter, waits for idle and reads the tail in one call, and renaming plus recolouring (update_session) is one call, so each raises at most one dialog. Rearranging a terminal you didn't open asks the human instead of failing. On CONFIRM_TIMEOUT nobody answered: ask the human to look at UnionTerminal, retry once, and don't loop. On CONFIRM_DENIED, stop. Propose groupings to the human before moving terminals.