From b381290863ae0a103e8d81464b74848697fe51a4 Mon Sep 17 00:00:00 2001 From: Javier Gomez <113129149+Javierg9n4@users.noreply.github.com> Date: Wed, 10 Sep 2025 12:34:24 +0200 Subject: [PATCH] feat: add tools property to agent definitions for enhanced functionality. Otherwise opencode consders the subagents as readonly --- tools/installer/lib/ide-setup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/installer/lib/ide-setup.js b/tools/installer/lib/ide-setup.js index be81ba64..f7901dec 100644 --- a/tools/installer/lib/ide-setup.js +++ b/tools/installer/lib/ide-setup.js @@ -269,6 +269,7 @@ class IdeSetup extends BaseIdeSetup { const agentDef = { prompt: fileRef, mode: isOrchestratorAgent(agentId) ? 'primary' : 'subagent', + tools: { write: true, edit: true, bash: true }, }; if (!existing) { configObj.agent[key] = agentDef; @@ -281,6 +282,7 @@ class IdeSetup extends BaseIdeSetup { ) { existing.prompt = agentDef.prompt; existing.mode = agentDef.mode; + existing.tools = { write: true, edit: true, bash: true }; configObj.agent[key] = existing; summary.agentsUpdated++; } else { @@ -300,6 +302,7 @@ class IdeSetup extends BaseIdeSetup { const agentDef = { prompt: fileRef, mode: isOrchestratorAgent(agentId) ? 'primary' : 'subagent', + tools: { write: true, edit: true, bash: true }, }; if (!existing) { configObj.agent[prefixedKey] = agentDef; @@ -312,6 +315,7 @@ class IdeSetup extends BaseIdeSetup { ) { existing.prompt = agentDef.prompt; existing.mode = agentDef.mode; + existing.tools = { write: true, edit: true, bash: true }; configObj.agent[prefixedKey] = existing; summary.agentsUpdated++; } else {