From a10ee64c51759c84097392ecec9f06c322e02657 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 16 Dec 2025 01:02:39 +0900 Subject: [PATCH] fix(agents): Use exclude pattern for tools config to enable MCP tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed agent tools configuration from include pattern (listing allowed tools) to exclude pattern (listing disabled tools only). This ensures MCP tools like websearch_exa, context7, and grep_app are available to agents by default. Affected agents: librarian, oracle, explore, multimodal-looker 🤖 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/multimodal-looker.ts | 2 +- src/agents/oracle.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agents/explore.ts b/src/agents/explore.ts index 019294b..9fe9cdb 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, bash: true, read: true, background_task: false }, + tools: { write: false, edit: false, background_task: false }, 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 d22bb6a..8359ed9 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, bash: true, read: true, background_task: false }, + tools: { write: false, edit: false, background_task: false }, prompt: `# THE LIBRARIAN You are **THE LIBRARIAN**, a specialized open-source codebase understanding agent. diff --git a/src/agents/multimodal-looker.ts b/src/agents/multimodal-looker.ts index f1f4abc..d3ecf00 100644 --- a/src/agents/multimodal-looker.ts +++ b/src/agents/multimodal-looker.ts @@ -6,7 +6,7 @@ export const multimodalLookerAgent: AgentConfig = { mode: "subagent", model: "google/gemini-2.5-flash", temperature: 0.1, - tools: { Read: true, background_task: false }, + tools: { write: false, edit: false, bash: false, background_task: false }, prompt: `You interpret media files that cannot be read as plain text. Your job: examine the attached file and extract ONLY what was requested. diff --git a/src/agents/oracle.ts b/src/agents/oracle.ts index 240f6fc..391977c 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, read: true, task: false, call_omo_agent: true, background_task: false }, + tools: { write: false, edit: false, task: false, background_task: false }, prompt: `You are a strategic technical advisor with deep reasoning capabilities, operating as a specialized consultant within an AI-assisted development environment. ## Context