/** * Loop Engineering parent-agent gate. * * Loop orchestration (call_agents / loop_verdict / dispatch+verify gates) * only exists on Agim Agent. CLI backends (Codex, Claude Code, …) may still * run as Subagents via call_agents, but must not be the Loop parent — * they lack those tools, and packing history+Loop snippets into spawn argv * often hits kernel E2BIG ("Agent error: spawn E2BIG"). */ /** True when this sticky/default agent can parent a Loop. */ export declare function canParentLoop(agentId: string | undefined | null): boolean; /** Non-Agim sticky agents are valid Loop Subagent / preferred-worker targets. */ export declare function isLoopWorkerAgent(agentId: string | undefined | null): boolean; /** * Update session.preferredWorkerAgent across sticky switches: * - selecting a CLI → that CLI becomes the preferred Loop worker * - switching CLI → Agim → keep the previous CLI as preferred worker * - Agim → Agim → leave stored preference unchanged */ export declare function nextPreferredWorkerAgent(previousAgent: string | undefined | null, newAgent: string, stored?: string | undefined | null): string | undefined; /** Resolve which CLI (if any) Loop should prefer in call_agents. */ export declare function resolvePreferredWorkerAgent(stickyAgent: string | undefined | null, stored?: string | undefined | null): string | undefined; export declare function formatLoopParentRequired(agentId: string | undefined | null, lang?: 'zh' | 'en'): string; //# sourceMappingURL=loop-parent-agent.d.ts.map