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:
@@ -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<string, string> }).permission || {}), ...questionPermission },
|
||||
...restrictions,
|
||||
} as AgentConfig
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user