ggcode v1.3.176
Highlights
- Sub-agent model selection: The parent agent's LLM can now choose which model each sub-agent uses — pick a cheaper model for simple tasks, a stronger one for complex reasoning.
- Sub-agent provider freshness: Sub-agents and swarm teammates now use the parent's current runtime provider, fixing a bug where stale startup-time providers were used after model switching.
- Comprehensive documentation sync: All documentation updated to reflect features from v1.3.169–v1.3.175, including 3 retroactive release notes.
New Features
Sub-Agent Model Selection (e46e662c, 1daecd92)
The spawn_agent tool now accepts an optional model parameter. When specified, the sub-agent uses that model (validated against available models on the current endpoint). When omitted, the sub-agent inherits the parent agent's current runtime model — ensuring consistency without requiring the user to specify it every time.
Sub-Agent Model Display (d2ff4f3c, 95f7f084)
The model name is now shown in the TUI as [model-name] in sub-agent labels, tool call titles, and the desktop UI — providing visibility into which model each sub-agent is using.
Fixes
Stale Provider in Sub-Agents (e888a6be, 9bff56b7)
Sub-agents and swarm teammates were using the provider captured at process startup. If the user switched models mid-session via the model picker, subsequently spawned sub-agents would still use the old provider. Both now resolve the parent agent's current runtime provider at spawn time.
Sub-Agent Failure Diagnostics (76ef0f6b)
Added debug.Log to the generic sub-agent failure path that was previously silent, improving diagnosability of sub-agent crashes.
Documentation
Full Documentation Sync (d533086d, 50c57cf8)
- 3 retroactive release notes: v1.3.169 (session debounce, prompt cache, WhatsApp i18n), v1.3.170 (golden rules, resume-picker perf), v1.3.171 (PowerShell-first, dangerous commands)
- CLI reference:
--new-sessionflag, daemon lanchat Hub - Multi-agent modes: model selection, provider freshness sections
- ARCHITECTURE.md:
report.go, daemon lanchat,agent_inline_tool.go - GGCODE.md: Windows shell, sub-agent model, inline tool call conventions
- configuration.md: SubAgents, Swarm, Knight config sections (previously undocumented)
Upgrade Notes
No breaking changes. All improvements are backward compatible.