mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
8831b49b51
Subagents now run as child Kit instances in the same process instead of spawning a kit binary subprocess. This removes the binary dependency, eliminates JSON serialization overhead, and enables SDK-only consumers to use subagents without installing the kit CLI. - Add Kit.Subagent() method for in-process subagent execution - Add SubagentConfig/SubagentResult types to the SDK - Add context-based SubagentSpawnFunc injection so core spawn_subagent tool calls back to Kit.Subagent() without an import cycle - Add SubagentTools() bundle (all core tools minus spawn_subagent) - Add viperInitMu for thread-safe concurrent kit.New() calls - Wire extension ctx.SpawnSubagent and ACP server to use in-process - Child Kit gets parent's model as fallback, in-memory or persisted session, and no extensions (preventing recursive loading)