- Add registry generation tracking and a Codex catalog revision accessor to provide stable cache keys.
- Cache parsed model templates and rendered spawn-agent markdown, and reuse them across requests when revision/generation are unchanged.
- Invalidate/recompute caches when model registrations or catalog content change, and separate rewrite handling for spawn tool descriptions vs. message encryption stripping.
Closes: #4967
- Generalize spawn_agent tool path discovery into codexToolPathsByNames
driven by a name set, and add codexCollaborationMessageTools covering
spawn_agent, send_message, and followup_task.
- Strip parameters.properties.message.encrypted from all collaboration
message tools (top-level tools and input[].additional_tools, including
nested namespace tools) via removeCodexCollaborationMessageEncryption,
invoked unconditionally before the spawn-agent optimization decision.
- Extend optimize_multi_agent_v2_test.go with coverage for the new tool
path discovery, encrypted-field removal semantics, preservation of
unrelated encrypted fields, and end-to-end OptimizeCodexMultiAgentV2Request
behavior across namespace and additional_tools payloads.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Updated Kimi and Gemini executors to use `TranslateRequestWithCodexMultiAgentV2` for improved multi-agent v2 optimization.
- Enhanced configuration and API server to support `CodexOptimizeMultiAgentV2`.
- Added codex multi-agent V2 optimizations in `config`, `executor`, and `watcher` modules.