Skip to content

resolveAgentFactory

resolveAgentFactory(config, defaultBackend): GthAgentFactory

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/resolveAgentFactory.ts:17

Resolve the agent backend factory from config (B5). An explicit agent.backend wins; otherwise defaultBackend is used — the per-command default. Every command now defaults to 'lean'; 'deep' is the experimental, opt-in backend (selecting it emits a warning).

Returns gthDeepAgentFactory for 'deep' and gthLeanAgentFactory for 'lean'. Both factories receive the SAME createResolvers() toolset, so lean is not capability-stripped: it keeps gaunt-sloth’s own filesystem + (in code mode) dev/shell tools plus the gth_checklist planning tool; it only drops the deepagents-specific extras (subagent task, write_todos, summarization, /large_tool_results).

GthConfig

"deep" | "lean"

GthAgentFactory