From 79f10004a6853bb8b0b528e9c875afcec74a5ae5 Mon Sep 17 00:00:00 2001 From: Aishanee Shah Date: Thu, 9 Apr 2026 20:04:32 +0000 Subject: [PATCH] feat(watcher): remove write_file tool from subagent to avoid permission popups --- packages/core/src/agents/watcher-agent.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/src/agents/watcher-agent.ts b/packages/core/src/agents/watcher-agent.ts index a2c83ea332..03eb733a89 100644 --- a/packages/core/src/agents/watcher-agent.ts +++ b/packages/core/src/agents/watcher-agent.ts @@ -7,10 +7,7 @@ import { z } from 'zod'; import type { AgentLoopContext } from '../config/agent-loop-context.js'; import type { LocalAgentDefinition } from './types.js'; -import { - READ_FILE_TOOL_NAME, - WRITE_FILE_TOOL_NAME, -} from '../tools/tool-names.js'; +import { READ_FILE_TOOL_NAME } from '../tools/tool-names.js'; import { GEMINI_MODEL_ALIAS_FLASH } from '../config/models.js'; import * as path from 'node:path'; @@ -84,7 +81,7 @@ export const WatcherAgent = ( }, toolConfig: { - tools: [READ_FILE_TOOL_NAME, WRITE_FILE_TOOL_NAME], + tools: [READ_FILE_TOOL_NAME], }, promptConfig: {