/** * TodoNudge (Grok TodoNudge parity, light). * * When a multi-step coding run has already made several tool calls without * ever opening a `todo_write` checklist, inject one soft system reminder so * long refactors/fixes keep an external plan instead of thrashing mid-thread. * * Soft: at most one fire per agent run; never blocks completion (TodoGate * handles incomplete lists at end-of-turn). */ export interface TodoNudgeRequest { turns: number; totalToolCalls: number; toolCallsByName: Record; /** Latest real user text (not tool_result / [System]). */ userText: string; /** How many times this run already fired a todo nudge. */ attempts: number; } export type TodoNudgeResult = { fire: false; } | { fire: true; correction: string; }; /** Defaults aligned with Grok TodoNudge (3 turns / tools, once per run). */ export declare const TODO_NUDGE_MIN_TURNS = 3; export declare const TODO_NUDGE_MIN_TOOLS = 3; export declare const TODO_NUDGE_MAX_ATTEMPTS = 1; export declare function evaluateTodoNudge(request: TodoNudgeRequest): TodoNudgeResult; //# sourceMappingURL=todo-nudge.d.ts.map