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)
This commit is contained in:
YeonGyu-Kim 2026-01-13 21:00:00 +09:00
parent 9e8173593f
commit cddbd0d945
2 changed files with 3 additions and 3 deletions

View File

@ -1441,8 +1441,6 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen
"task", "task",
"call_omo_agent", "call_omo_agent",
]) ])
const questionPermission = { question: "allow" } as AgentConfig["permission"]
return { return {
description: description:
"Orchestrates work via sisyphus_task() to complete ALL tasks in a todo list until fully done", "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, temperature: 0.1,
prompt: buildDynamicOrchestratorPrompt(ctx), prompt: buildDynamicOrchestratorPrompt(ctx),
thinking: { type: "enabled", budgetTokens: 32000 }, thinking: { type: "enabled", budgetTokens: 32000 },
permission: { ...((restrictions as { permission?: Record<string, string> }).permission || {}), ...questionPermission }, ...restrictions,
} as AgentConfig } as AgentConfig
} }

View File

@ -980,9 +980,11 @@ This will:
/** /**
* Prometheus planner permission configuration. * Prometheus planner permission configuration.
* Allows write/edit for plan files (.md only, enforced by prometheus-md-only hook). * 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 = { export const PROMETHEUS_PERMISSION = {
edit: "allow" as const, edit: "allow" as const,
bash: "allow" as const, bash: "allow" as const,
webfetch: "allow" as const, webfetch: "allow" as const,
question: "allow" as const,
} }