19 / 20Coordinator & Deep Linkssrc/coordinator/ · src/utils/deepLink/

Orchestrate workers. Launch via URI.

Coordinator mode is distinct from swarm — workers get shared scratchpads, XML task notifications, and constrained tool sets. Deep links launch Claude Code from any app via claude-cli:// URIs.

Coordinator Mode (vs Swarm)

C
Coordinator spawns workers via Agent tool
Workers get full tool set OR simplified (Bash, Read, Edit). MCP server list passed to each worker.
S
Shared scratchpad directory
Gated by tengu_scratch. Durable cross-worker knowledge. Workers read/write without permission prompts.
N
Async results via XML notifications
<task-notification> blocks in system prompt. Coordinator explains orchestration role.

Deep Link Protocol

claude-cli://open?q=...&cwd=...&repo=...

ParamMaxPurpose
q5,000 charsPre-fill prompt
cwd4,096 charsWorking directory (absolute)
repoowner/repoRepository slug

Security: Unicode sanitization (blocks ASCII control chars). No truncation (rejects oversized — truncation changes meaning). Shell-escaped at point of use. Windows cmd.exe 8,191 char hard limit.