summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-18 15:49:26 -0500
committerBen Sima <ben@bensima.com>2025-12-18 15:49:26 -0500
commit2502f9de86f6671c01958046b6757398a8babffd (patch)
treec197003e3e43e387074160078a32e43b9910c5f7
parentcf5755d893fb3c8e33e88b3a70904f236f7fe3d0 (diff)
Subagent: remove task_id from spawn_subagent tool schema
The coder role no longer requires task_id, only namespace.
-rw-r--r--Omni/Agent/Subagent.hs14
1 files changed, 2 insertions, 12 deletions
diff --git a/Omni/Agent/Subagent.hs b/Omni/Agent/Subagent.hs
index 06ef938..d8f5fab 100644
--- a/Omni/Agent/Subagent.hs
+++ b/Omni/Agent/Subagent.hs
@@ -882,7 +882,7 @@ spawnSubagentTool keys =
<> "after the user explicitly approves. "
<> "Available roles: web_crawler (fast web research), code_reviewer (thorough code analysis), "
<> "data_extractor (structured data extraction), researcher (general research), "
- <> "coder (hardened coding with init/verify/commit phases - requires task_id and namespace).",
+ <> "coder (hardened coding with init/verify/commit phases - requires namespace).",
Engine.toolJsonSchema =
Aeson.object
[ "type" .= ("object" :: Text),
@@ -919,11 +919,6 @@ spawnSubagentTool keys =
[ "type" .= ("number" :: Text),
"description" .= ("Maximum cost in cents (default: 50)" :: Text)
],
- "task_id"
- .= Aeson.object
- [ "type" .= ("string" :: Text),
- "description" .= ("Task ID from jr task (required for coder role)" :: Text)
- ],
"namespace"
.= Aeson.object
[ "type" .= ("string" :: Text),
@@ -1102,7 +1097,7 @@ spawnSubagentToolWithApproval keys chatId onApprovalNeeded =
<> "do NOT say 'spawned' or 'started', say 'requested' or 'awaiting approval'. "
<> "Available roles: web_crawler (fast web research), code_reviewer (thorough code analysis), "
<> "data_extractor (structured data extraction), researcher (general research), "
- <> "coder (hardened coding with init/verify/commit - requires task_id and namespace).",
+ <> "coder (hardened coding with init/verify/commit - requires namespace).",
Engine.toolJsonSchema =
Aeson.object
[ "type" .= ("object" :: Text),
@@ -1139,11 +1134,6 @@ spawnSubagentToolWithApproval keys chatId onApprovalNeeded =
[ "type" .= ("number" :: Text),
"description" .= ("Maximum cost in cents (default: 50)" :: Text)
],
- "task_id"
- .= Aeson.object
- [ "type" .= ("string" :: Text),
- "description" .= ("Task ID from jr task (required for coder role)" :: Text)
- ],
"namespace"
.= Aeson.object
[ "type" .= ("string" :: Text),