From 3d5319a72da542fc506ad0aa5679ab8ebc40d943 Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Wed, 14 Jan 2026 14:27:40 +0900 Subject: [PATCH] fix(agents): block call_omo_agent from Prometheus planner (#772) Prometheus (Planner) agent should not have access to call_omo_agent tool to prevent direct agent spawning. Uses the same pattern as orchestrator-sisyphus. Co-authored-by: justsisyphus --- src/plugin-handlers/config-handler.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugin-handlers/config-handler.ts b/src/plugin-handlers/config-handler.ts index 0fc1c06ce..96ff156f6 100644 --- a/src/plugin-handlers/config-handler.ts +++ b/src/plugin-handlers/config-handler.ts @@ -305,6 +305,12 @@ export function createConfigHandler(deps: ConfigHandlerDeps) { call_omo_agent: false, }; } + if (agentResult["Prometheus (Planner)"]) { + (agentResult["Prometheus (Planner)"] as { tools?: Record }).tools = { + ...(agentResult["Prometheus (Planner)"] as { tools?: Record }).tools, + call_omo_agent: false, + }; + } config.permission = { ...(config.permission as Record),