feat(core): add enter_plan_mode tool (#18324)

This commit is contained in:
Jerop Kipruto
2026-02-04 13:57:41 -05:00
committed by GitHub
parent bd156e6832
commit 650980af37
4 changed files with 306 additions and 0 deletions
+2
View File
@@ -35,6 +35,7 @@ import { MemoryTool, setGeminiMdFilename } from '../tools/memoryTool.js';
import { WebSearchTool } from '../tools/web-search.js';
import { AskUserTool } from '../tools/ask-user.js';
import { ExitPlanModeTool } from '../tools/exit-plan-mode.js';
import { EnterPlanModeTool } from '../tools/enter-plan-mode.js';
import { GeminiClient } from '../core/client.js';
import { BaseLlmClient } from '../core/baseLlmClient.js';
import type { HookDefinition, HookEventName } from '../hooks/types.js';
@@ -2155,6 +2156,7 @@ export class Config {
}
if (this.isPlanEnabled()) {
registerCoreTool(ExitPlanModeTool, this);
registerCoreTool(EnterPlanModeTool, this);
}
// Register Subagents as Tools