Skip to content

feat(agents): the other computer decides what agents may do there, read-only subagents run on another computer, Full control skips folder rules - #2379

Merged
TheAnimatrix merged 2 commits into
masterfrom
agents-across-computers
Nov 30, 2026
Merged

TheAnimatrix merged 2 commits into
masterfrom
agents-across-computers

Conversation

@TheAnimatrix

Copy link
Copy Markdown
Collaborator

Problem

Agents working across the user's own computers were blocked twice: once by the computer they run on and again by the computer they call.

  • Each computer had its own switches for the user's other computers: "Let agents work on your other devices", a list of computers, and "Threads started from other devices". All were off by default. They sat on top of the access level and agent reach that the other computer already sets for this one.
  • The computer receiving the calls capped another computer's agents at 20 messages per thread in 10 minutes and 200 runs a day.
  • A read-only subagent could not run on another computer at all.
  • A read-only Codex subagent was refused whenever the user had any Codex MCP server set up.
  • A device with Full control, which already has a shell as the owner, was still refused hidden folders, folders that hold credentials or settings, the home folder and the Mousse data folder when it opened, browsed or cloned.

Change

  • The other computer decides. The three switches are gone from Settings → Agents, from agentAccess, from the agent tools and from the checks (remote_subagents_off, remote_from_remote, and the local computer_not_allowed). What this computer's agents may do on another computer is now set only there: the switch for other computers, the block, the device's highest permission mode and its agent reach. Stored values of the old keys are ignored, and an older client may still send them. A computer list that can't be read is now refused as computers_unreadable instead of being treated as "no such computer". computer_list no longer has an allowed field.
  • No per-device rate caps on agent calls. The 20-per-10-minutes limit (agent_rate_limited) and the 200-a-day budget (agent_daily_budget) are removed, along with the audit count behind them. A loop is still bounded by the hop count, the queue rules and the repeat guard.
  • Read-only subagents on another computer. threads.create version 7 takes readOnly with subagent. The receiving computer creates that thread in its own project folder, with no worktree and a read-only binding, so every turn gets only the read-only tools, as a read-only subagent does on one computer. The sending computer sends it only to a computer that understands the key. An older computer is refused with update_needed and nothing is created there. A thread with no project is refused with read_only_needs_folder. A read-only caller's subagents there must also be read-only. A task that an older version stored as read-only through Plan mode is not started or continued (read_only_legacy). remote_subagents.read_only is run database migration 33.
  • Read-only Codex subagents with MCP servers. The user's own Codex MCP servers are switched off for that subagent's thread (mcp_servers.<name>.enabled=false, the same override bot turns use), and the caller is told which ones were switched off. It is still refused when the setup can't be read, or when one of the user's servers is named like Mousse's own.
  • Full control skips the folder rules. For a device whose access level is Full control, projects.open, projects.setPath, folders.browse and sourceControl.clone skip the hidden-folder, sensitive-folder, home and data-folder rules. Network and device paths stay refused for every device, and lower access levels keep every rule.
  • Docs: docs/net/threat-model.md (remote subagents, threads agents start, the owner's limits, projects.open), docs/run-engine/SPEC.md and the glossary's "Remote subagent".

How to review

  1. RemoteLaunchedThreads.ts, OrchestratorService (delegateRemoteTask, continueRemoteSubagent, findComputer, listComputers): the removed switches, and the read-only remote path.
  2. RemoteSubagents.advanceStart, remoteThreadStart.ts (readOnlyOnTheWire), remoteAgent.ts (create), MmsBackend.createThread, OrchestratorService.restoreDelegatedWorkspace: how a read-only subagent is held read-only on the receiving computer. This is where the risk is.
  3. remoteAgent.ts, OwnerRoutes.ts: the rate caps removal.
  4. codex/adapter.ts childPreflight, CodexProviderService.prepareThread, botApprovals.ts (readOnlyCodexMcpOff).
  5. MmsBackend (fullControl), folderBrowse.ts, cloneHere.ts, sourceControl/registerMethods.ts, domainRegistry.ts (BridgeCaller.fullControl).

Kept on purpose

Verification

Tier 5 (auth and permissions, networking).

Run on a3b0166 (tree 642a506, on master 229d4a5):

  • node scripts/verify.mjs <15 files> --typecheck all: both typechecks pass, and all 315 tests pass.
  • node scripts/verify.mjs <10 files in tests/net/bridge/routed>: 186 of 187 pass. The failing one, owner.test.ts "refuses every row with one extra key" (pty.create + cwd), fails the same way on master 229d4a5.

What observes each part of the claim:

  • The removed switches: agentAccessSettings.test.ts, renderer/agentAccessSettingsScreen.test.ts (older keys are dropped and no rows remain), and net/bridge/routed/threadCreateRemote.test.ts / threadToolsRemote.test.ts (a thread a third device started reaches the computer; the other computer's agent reach none still refuses). Tests that only checked the removed switches were removed.
  • An unreadable computer list: run/remoteSubagents.test.ts and threadToolsRemote.test.ts.
  • Read-only remote subagents: net/bridge/routed/remoteSubagents.test.ts (two real daemons: an older computer refuses with nothing created; a current one holds the thread read-only in its project folder, and its session gets the read-only workspace), run/remoteSubagents.test.ts (the wire call; no project is refused), run/remoteSubagentEngine.test.ts (migration 33 and the legacy row).
  • Codex: subagentProviderPolicy.test.ts (the preflight table; the thread config switches the user's servers off; a reserved name or an unreadable setup refuses) and run/subagentPolicy.test.ts (the caller's note).
  • Full control vs Work on threads: net/bridge/routed/remoteClone.test.ts (browse, clone and open over two daemons at each access level) and cloneHere.test.ts.
  • Not checked by hand in the app.

Notes

Refs #2202

…ad-only subagents run on another computer; Full control skips the folder rules

Removes the local switches for other computers and the per-device agent rate caps, holds a read-only remote subagent read-only on its computer (threads.create v7, run database migration 33), switches the user's Codex MCP servers off for a read-only Codex subagent instead of refusing it, and lets a Full control device open, browse and clone any local folder.
…ters

# Conflicts:
#	src/mms/orchestrator/OrchestratorService.ts
#	tests/run/remoteSubagents.test.ts
@TheAnimatrix
TheAnimatrix merged commit c34f0b7 into master Nov 30, 2026
9 checks passed
@TheAnimatrix
TheAnimatrix deleted the agents-across-computers branch November 30, 2026 01:45
TheAnimatrix added a commit that referenced this pull request Nov 30, 2026
…nts-and-status

test: contract versions, read-only Codex child and remote thread list after #2378 and #2379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant