From 07db925d362c368e0b60e2f602fcd62e2c7f77b1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 18 Dec 2025 15:52:39 -0500 Subject: Subagent: clarify context is required for coder role --- Omni/Agent/Subagent.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Omni/Agent/Subagent.hs') diff --git a/Omni/Agent/Subagent.hs b/Omni/Agent/Subagent.hs index d8f5fab..f5e04b0 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 namespace).", + <> "coder (hardened coding with init/verify/commit - requires namespace and context).", Engine.toolJsonSchema = Aeson.object [ "type" .= ("object" :: Text), @@ -902,7 +902,7 @@ spawnSubagentTool keys = "context" .= Aeson.object [ "type" .= ("string" :: Text), - "description" .= ("Additional context to help the subagent understand the goal" :: Text) + "description" .= ("Background context, related files, design decisions (required for coder)" :: Text) ], "model" .= Aeson.object @@ -1097,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 namespace).", + <> "coder (hardened coding with init/verify/commit - requires namespace and context).", Engine.toolJsonSchema = Aeson.object [ "type" .= ("object" :: Text), @@ -1117,7 +1117,7 @@ spawnSubagentToolWithApproval keys chatId onApprovalNeeded = "context" .= Aeson.object [ "type" .= ("string" :: Text), - "description" .= ("Additional context to help the subagent understand the goal" :: Text) + "description" .= ("Background context, related files, design decisions (required for coder)" :: Text) ], "model" .= Aeson.object -- cgit v1.2.3