Skip to content

Commit 073b7e4

Browse files
committed
fix(agents): block task/sisyphus_task/call_omo_agent from explore and librarian
Exploration agents should not spawn other agents - they are leaf nodes in the agent hierarchy for codebase search only.
1 parent 03beb8e commit 073b7e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/agents/explore.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export function createExploreAgent(model: string = DEFAULT_MODEL): AgentConfig {
2828
const restrictions = createAgentToolRestrictions([
2929
"write",
3030
"edit",
31+
"task",
32+
"sisyphus_task",
33+
"call_omo_agent",
3134
])
3235

3336
return {

src/agents/librarian.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export function createLibrarianAgent(model: string = DEFAULT_MODEL): AgentConfig
2525
const restrictions = createAgentToolRestrictions([
2626
"write",
2727
"edit",
28+
"task",
29+
"sisyphus_task",
30+
"call_omo_agent",
2831
])
2932

3033
return {

0 commit comments

Comments
 (0)