refactor: enable built-in question tool for core agents (#302)

Adds question: allow to the permission: frontmatter of core/openagent and core/opencoder, so the OpenCode runtime permits the built-in question tool for the two interactive primary agents.

Distinct from #269, which added 'question' to the compatibility layer's ToolAccessSchema (the tools: access layer used for Claude/Windsurf translation). This is the permission: layer read by the OpenCode runtime — the two are complementary.

Verified 'question' is a first-class key in OpenCode's PermissionConfig with "allow" a valid PermissionActionConfig.
This commit is contained in:
Prathik Shetty 2026-07-15 05:23:20 +05:30 committed by GitHub
parent 0879d0493b
commit 371041c937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ description: "Universal agent for answering queries, executing tasks, and coordi
mode: primary mode: primary
temperature: 0.2 temperature: 0.2
permission: permission:
question: "allow"
bash: bash:
"*": "ask" "*": "ask"
"rm -rf *": "ask" "rm -rf *": "ask"

View file

@ -4,6 +4,7 @@ description: "Orchestration agent for complex coding, architecture, and multi-fi
mode: primary mode: primary
temperature: 0.1 temperature: 0.1
permission: permission:
question: "allow"
bash: bash:
"rm -rf *": "ask" "rm -rf *": "ask"
"sudo *": "deny" "sudo *": "deny"