docs(subagents): clarify isolation behavior
- commit
- f9c8b6da0c9b523ecd282905532f6de654fece00
- author
- brice · · 2026-08-24 10:36 UTC
- parent
- 8a835a8
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +2 -2
M packages/agent/tools/resident_tools_test.go +1 -1
| @@ -71,7 +71,7 @@ func TestSubagentSpawnGuidanceRequiresIndependentOwnership(t *testing.T) { | |||
| 71 | 71 | t.Fatal(err) | |
| 72 | 72 | } | |
| 73 | 73 | task := schema.Properties["task"].Description | |
| 74 | - | for _, want := range []string{"concrete, bounded scope", "explicit ownership", "does not overlap"} { | |
| 74 | + | for _, want := range []string{"concrete, bounded scope", "explicit ownership", "does not overlap", "Shared isolation uses this working directory", "worktree isolation captures a patch without merging it"} { | |
| 75 | 75 | if !strings.Contains(task, want) { | |
| 76 | 76 | t.Fatalf("task schema missing %q: %s", want, task) | |
| 77 | 77 | } | |
| @@ -71,7 +71,7 @@ func TestSubagentSpawnGuidanceRequiresIndependentOwnership(t *testing.T) { | |||||
| 71 | t.Fatal(err) | 71 | t.Fatal(err) | ||
| 72 | } | 72 | } | ||
| 73 | task := schema.Properties["task"].Description | 73 | task := schema.Properties["task"].Description | ||
| 74 | - | for _, want := range []string{"concrete, bounded scope", "explicit ownership", "does not overlap"} { | 74 | + | for _, want := range []string{"concrete, bounded scope", "explicit ownership", "does not overlap", "Shared isolation uses this working directory", "worktree isolation captures a patch without merging it"} { |
| 75 | if !strings.Contains(task, want) { | 75 | if !strings.Contains(task, want) { | ||
| 76 | t.Fatalf("task schema missing %q: %s", want, task) | 76 | t.Fatalf("task schema missing %q: %s", want, task) | ||
| 77 | } | 77 | } | ||
M packages/agent/tools/subagent_spawn.go +1 -1
| @@ -84,7 +84,7 @@ const subagentSpawnSchemaTemplate = `{ | |||
| 84 | 84 | "properties": { | |
| 85 | 85 | "task": { | |
| 86 | 86 | "type": "string", | |
| 87 | - | "description": "The full task description for the sub-agent. Assign a concrete, bounded scope and explicit ownership that does not overlap other active work. Be specific: the child normally has the main agent's built-in tools, including lsp when enabled, but a selected profile can restrict its tools; it shares this working directory and starts with NO context from this conversation." | |
| 87 | + | "description": "The full task description for the sub-agent. Assign a concrete, bounded scope and explicit ownership that does not overlap other active work. Be specific: the child normally has the main agent's built-in tools, including lsp when enabled, but a selected profile can restrict its tools; it starts with NO context from this conversation. Shared isolation uses this working directory; worktree isolation captures a patch without merging it." | |
| 88 | 88 | }, | |
| 89 | 89 | "agent": { | |
| 90 | 90 | "type": "string", | |
| @@ -84,7 +84,7 @@ const subagentSpawnSchemaTemplate = `{ | |||||
| 84 | "properties": { | 84 | "properties": { | ||
| 85 | "task": { | 85 | "task": { | ||
| 86 | "type": "string", | 86 | "type": "string", | ||
| 87 | - | "description": "The full task description for the sub-agent. Assign a concrete, bounded scope and explicit ownership that does not overlap other active work. Be specific: the child normally has the main agent's built-in tools, including lsp when enabled, but a selected profile can restrict its tools; it shares this working directory and starts with NO context from this conversation." | 87 | + | "description": "The full task description for the sub-agent. Assign a concrete, bounded scope and explicit ownership that does not overlap other active work. Be specific: the child normally has the main agent's built-in tools, including lsp when enabled, but a selected profile can restrict its tools; it starts with NO context from this conversation. Shared isolation uses this working directory; worktree isolation captures a patch without merging it." |
| 88 | }, | 88 | }, | ||
| 89 | "agent": { | 89 | "agent": { | ||
| 90 | "type": "string", | 90 | "type": "string", | ||