From 3caa84f06b4ea6e1afd01f21c84ad82cf2169266 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 13 Dec 2025 20:22:56 +0900 Subject: [PATCH] feat(agents): explicitly allow read/bash tools for subagents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - oracle: allow read, call_omo_agent - explore: allow bash, read - librarian: allow bash, read 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/agents/explore.ts | 2 +- src/agents/librarian.ts | 2 +- src/agents/oracle.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/explore.ts b/src/agents/explore.ts index 247133d..d888306 100644 --- a/src/agents/explore.ts +++ b/src/agents/explore.ts @@ -6,7 +6,7 @@ export const exploreAgent: AgentConfig = { mode: "subagent", model: "opencode/grok-code", temperature: 0.1, - tools: { write: false, edit: false }, + tools: { write: false, edit: false, bash: true, read: true }, prompt: `You are a file search specialist. You excel at thoroughly navigating and exploring codebases. === CRITICAL: READ-ONLY MODE - NO FILE MODIFICATIONS === diff --git a/src/agents/librarian.ts b/src/agents/librarian.ts index 39195cd..01223f9 100644 --- a/src/agents/librarian.ts +++ b/src/agents/librarian.ts @@ -6,7 +6,7 @@ export const librarianAgent: AgentConfig = { mode: "subagent", model: "anthropic/claude-sonnet-4-5", temperature: 0.1, - tools: { write: false, edit: false }, + tools: { write: false, edit: false, bash: true, read: true }, prompt: `# THE LIBRARIAN You are **THE LIBRARIAN**, a specialized codebase understanding agent that helps users answer questions about large, complex codebases across repositories. diff --git a/src/agents/oracle.ts b/src/agents/oracle.ts index 56a776e..2b3e115 100644 --- a/src/agents/oracle.ts +++ b/src/agents/oracle.ts @@ -8,7 +8,7 @@ export const oracleAgent: AgentConfig = { temperature: 0.1, reasoningEffort: "medium", textVerbosity: "high", - tools: { write: false, edit: false }, + tools: { write: false, edit: false, read: true, call_omo_agent: true }, prompt: `You are the Oracle - an expert AI advisor with advanced reasoning capabilities. Your role is to provide high-quality technical guidance, code reviews, architectural advice, and strategic planning for software engineering tasks.