0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/docs/media/native-subagents-setting
Alexandre V.L b8ed9d9c27
Providers: a switch to turn native subagents off (#1046)
Settings → Providers → Claude Code gets a Native subagents switch (per device, on by default). With it off, a top-level chat launches Claude Code with --disallowedTools=Agent,Task,Workflow, and Zeron's MCP server (ZERON_SIDE_CHATS_ONLY=1) tells the agent to delegate through side chats. Side chats, and chats whose parent is not known yet, keep their subagents. A parked session is replaced before its next idle turn.

Co-authored-by: Alexandre VARGAS <alexandre.vargas.lopez@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-10-26 23:14:48 +00:00
..
00-setting.png Providers: a switch to turn native subagents off (#1046) 2026-10-26 23:14:48 +00:00
01-switch-on.png Providers: a switch to turn native subagents off (#1046) 2026-10-26 23:14:48 +00:00
02-switch-off.png Providers: a switch to turn native subagents off (#1046) 2026-10-26 23:14:48 +00:00
03-chat-card.png Providers: a switch to turn native subagents off (#1046) 2026-10-26 23:14:48 +00:00
README.md Providers: a switch to turn native subagents off (#1046) 2026-10-26 23:14:48 +00:00

Native subagents setting: demo media

Captures for "Providers: a switch to turn native subagents off" (#1003).

  • 01 and 02: Settings → Providers → Claude Code on a headless engine built from this branch, before and after a click on the switch. After the click the engine answered GetNativeSubagents with {"off": ["claude-code"], "switchable": ["claude-code"]} and wrote "nativeSubagentsOff": ["claude-code"] to its harness-prefs.json. 00-setting.png stacks the two at half size.
  • 03: the session card of a chat on that engine, Claude Code 2.1.310 with Haiku. Its first turn, with the switch off, asked for a subagent; its Claude process ran with --disallowedTools=Agent,Task,Workflow, the agent delegated through Zeron's create_chat, and the side chat "ls entry count" is the result. Its second turn, after the switch went back on, ran in a new process without the flag and used Claude's own Agent tool: "1 finished" under Subagents.
  • The frames are the production Shell rendered offscreen by gpui (Window::render_to_image), attached to the engine over IPC. They are not an OS screen recording.
  • The crops stop above the provider's Accounts section, and the session card's device name is blurred.

The engine and the UI were both built from this branch's code commit, f3e9d09a, on v0.2.124. Only Claude Code is switchable: Codex's details have no Delegation section.