From cddbd0d945fc22001deba3093c7a12286eb97754 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 13 Jan 2026 21:00:00 +0900 Subject: [PATCH] refactor(agents): move question permission from orchestrator to prometheus Restrict question tool to primary agents only: - Remove from orchestrator-sisyphus (subagent orchestration) - Add to prometheus (planner needs to ask clarifying questions) --- src/agents/orchestrator-sisyphus.ts | 4 +--- src/agents/prometheus-prompt.ts | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/orchestrator-sisyphus.ts b/src/agents/orchestrator-sisyphus.ts index f0e8938e..8c007e4f 100644 --- a/src/agents/orchestrator-sisyphus.ts +++ b/src/agents/orchestrator-sisyphus.ts @@ -1441,8 +1441,6 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen "task", "call_omo_agent", ]) - const questionPermission = { question: "allow" } as AgentConfig["permission"] - return { description: "Orchestrates work via sisyphus_task() to complete ALL tasks in a todo list until fully done", @@ -1451,7 +1449,7 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen temperature: 0.1, prompt: buildDynamicOrchestratorPrompt(ctx), thinking: { type: "enabled", budgetTokens: 32000 }, - permission: { ...((restrictions as { permission?: Record }).permission || {}), ...questionPermission }, + ...restrictions, } as AgentConfig } diff --git a/src/agents/prometheus-prompt.ts b/src/agents/prometheus-prompt.ts index 4e6d88ca..29202e88 100644 --- a/src/agents/prometheus-prompt.ts +++ b/src/agents/prometheus-prompt.ts @@ -980,9 +980,11 @@ This will: /** * Prometheus planner permission configuration. * Allows write/edit for plan files (.md only, enforced by prometheus-md-only hook). + * Question permission allows agent to ask user questions via OpenCode's QuestionTool. */ export const PROMETHEUS_PERMISSION = { edit: "allow" as const, bash: "allow" as const, webfetch: "allow" as const, + question: "allow" as const, }