From 2502f9de86f6671c01958046b6757398a8babffd Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 18 Dec 2025 15:49:26 -0500 Subject: Subagent: remove task_id from spawn_subagent tool schema The coder role no longer requires task_id, only namespace. --- Omni/Agent/Subagent.hs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'Omni') 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), -- cgit v1.2.3