Skip to content

feat(devices): choose which threads another device's agents may change here, and "Let agents work on your other devices" - #1255

Merged
bvsr365 merged 2 commits into
masterfrom
device-agent-reach-setting
Nov 15, 2026
Merged

bvsr365 merged 2 commits into
masterfrom
device-agent-reach-setting

Conversation

@bvsr365

@bvsr365 bvsr365 commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The computer that runs a thread holds another device's agents to an agent reach rule (#1235): by default they may change only the threads they started there. Nobody could see or change that rule. On the calling computer, the switch was still called "Subagents on other devices", although it now covers more than subagents.

Change

On the computer that runs the threads, Settings → Devices → a computer's Limits… now has "Agents on may change", beside the highest permission mode. The choices are Nothing, Threads they started (the default) and All threads. The text under it says three things:

  • the rule covers what that device's agents start, message, steer and stop here;

  • they read threads as the device does;

  • it is a rule for a computer that works as it should, not a barrier. For a computer you do not trust, block it or lower its highest permission mode.

  • The setting travels the way the highest permission mode does: bridge.policy and its validator, the policy on each bridge.nodes row, and mousse-cli bridge limits <node> --agent-reach none|launched|all. bridge.policy is a local method of this computer's windows and command line and is never routed, so a device cannot change its own reach. The owner reads the rule at each call, so a change applies from the next call.

  • A service from before the setting sends no agentReach, and the dialog then leaves the choice out.

  • In the device's activity list, calls made by its agents are marked "by an agent". An agent_reach refusal reads "outside what its agents may change here".

On the calling computer, Settings → Agents → "Subagents on other devices" is now "Let agents work on your other devices", described as "Runs on the computers you turn on, within the limit each of them set for this one." The stored key (agentAccess.remoteSubagents) and the computer list are unchanged. The settings search entry (the old name still finds it), the refusal texts agents read, the glossary (a new "Agent reach" entry, an updated "Remote subagent" entry) and threat-model.md use the new name.

Verification

Tier 4 (renderer, a local daemon method, CLI). Tested commit: 9951352252eb79f4e2b596012af85dc77eb2afd8, on origin/master 9bcedd7 (#1235 merged).

  • npx vitest run on 19 files, 312 tests, all passing:
    • tests/net/bridge/routed/agentMark.test.ts, the new test runs on two real daemons linked over Bridge. A window of the owner sets reach through the registered bridge.policy handler (the dialog's path). After Nothing, a marked send into a thread the device's agent started is refused (agent_reach). After All threads, a marked send reaches a thread a person on the owner started, and its audit row has actor agent. The device then tries to set its own reach: as routed.bridge.policy, as bridge.policy over its session, through its routed client, and as a Bridge connection to the handler. Every attempt is refused and the stored value stays as it was.
    • tests/renderer/deviceAgentReach.test.ts mounts Settings → Devices with only the daemon stubbed. Limits… shows the saved value. Choosing each of the three values and pressing Save sends that value alone, and the dialog shows it when opened again. A service from before the setting shows no choice. The activity list marks only the agent's row.
    • tests/renderer/agentAccessSettingsScreen.test.ts covers the new switch name. Switching it still writes agentAccess.remoteSubagents, and the saved value is read back from disk.
    • tests/net/bridge/nodePolicy.test.ts checks that reach is kept for each device separately and that bridge.policy refuses an unknown value. tests/net/cli/net.test.ts checks --agent-reach.
    • Also run because they read the changed copy, defaults or policy shape: nodePolicyMigration, routed/editorAsk, routed/deviceActivity, themeSelectors, deviceAccessRows, editorConnectionStates, editorConnection, agentAccessSettings, settingsSearch, run/remoteSubagents, renderer/deviceActivity, botDeviceControls, remote/botDeviceAccess, routed/remoteSubagents.
  • npm run typecheck: clean.
  • Checked in the app: two development daemons paired over Bridge, with the development GUI on the first. Limits… for "Mac" showed the new choice. Choosing All threads and pressing Save stored agentReach: "all", read back with bridge nodes.
  • Not checked: the "by an agent" mark with a real marked call in the app (the screen test covers it with a stubbed daemon), and a computer on an older version (covered by the dialog test only).

Screenshots (development app, two paired development daemons):

Before After
Limits dialog before Limits dialog with "Agents on Mac may change"
Switch named Subagents on other devices Switch named Let agents work on your other devices

Notes

Refs #1160

🤖 Generated with Claude Code

bvsr365 and others added 2 commits November 15, 2026 21:26
…y change here

Settings → Devices → Limits gets "Agents on <device> may change: Nothing / Threads
they started / All threads", carried through bridge.policy, its validator, the
bridge.nodes policy view and `mousse-cli bridge limits --agent-reach`. bridge.policy
stays a local method of this computer's windows and command line, so a device
cannot change its own reach. The device's activity list marks the calls its agents
made ("by an agent").

Refs #1160

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on your other devices"

The switch on the calling computer is named for what it now covers, with the same
stored key (agentAccess.remoteSubagents) and computer list. The settings search
entry, the refusal texts agents read, the glossary and the threat model use the
new name.

Refs #1160

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvsr365 added a commit that referenced this pull request Nov 15, 2026
@bvsr365
bvsr365 merged commit 1ae6200 into master Nov 15, 2026
7 checks passed
@bvsr365
bvsr365 deleted the device-agent-reach-setting branch November 15, 2026 18:46
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