/**
 * Plan mode agent definition — read-only planning mode.
 *
 * Explores the workbook, asks clarifying questions, and produces an
 * implementation plan before switching to action mode for execution.
 */
import { MODE } from '../../../mode-names.js';
import { BASH, EXECUTE_CODE, EXECUTE_TOOL, FIND, GET_TOOL_INFO, GREP, LLM_ANALYSIS, LS, MCP_TOOL_NAMES, PLAN_SWITCH_MODE, READ } from '../../../tool-names.js';
import { buildPlanPrompt } from './prompt.js';
const DESCRIPTION = `\
Read-only planning mode — explores workbook, asks clarifying questions, produces implementation plan.
Switch to plan mode for: user frustrations, ambiguous asks, subjective asks, and complex workbooks.
- Multi-sheet financial models, DCF valuations, comprehensive dashboards
- Major structural reorganizations affecting multiple sheets
- Truly ambiguous asks: "build a DCF", "create executive KPI dashboard"
- Vague requests: "this is broken", "help", "make this look better"

DON'T switch to plan mode when:
- Recent messages already established what needs to be done
- The user just confirmed or approved a course of action`;
const TOOLS = [
    BASH,
    EXECUTE_CODE,
    READ,
    GREP,
    FIND,
    LS,
    LLM_ANALYSIS,
    PLAN_SWITCH_MODE,
    GET_TOOL_INFO,
    EXECUTE_TOOL,
    ...MCP_TOOL_NAMES
];
export function planAgent() {
    return {
        name: MODE.PLAN,
        description: DESCRIPTION,
        systemPrompt: buildPlanPrompt(),
        tools: TOOLS,
        switchTo: [MODE.ACTION]
    };
}
//# sourceMappingURL=agent.js.map