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 <justsisyphus@users.noreply.github.com>
This commit is contained in:
justsisyphus
2026-01-14 14:27:40 +09:00
committed by GitHub
parent 325ce1212b
commit 3d5319a72d

View File

@@ -305,6 +305,12 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
call_omo_agent: false,
};
}
if (agentResult["Prometheus (Planner)"]) {
(agentResult["Prometheus (Planner)"] as { tools?: Record<string, unknown> }).tools = {
...(agentResult["Prometheus (Planner)"] as { tools?: Record<string, unknown> }).tools,
call_omo_agent: false,
};
}
config.permission = {
...(config.permission as Record<string, unknown>),