feat(watcher): remove write_file tool from subagent to avoid permission popups

This commit is contained in:
Aishanee Shah
2026-04-09 20:04:32 +00:00
parent fdb61b470d
commit 79f10004a6
+2 -5
View File
@@ -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: {