claw-code/rust/crates/api/src
TheArchitectit d500c65678 feat(team): team enhancements, subagentModel, parallel tool exec
Port the agent-team enhancement layer onto upstream/main so the model
can spin up coordinated sub-agent teams for parallel work.

subagentModel config wiring (fix):
- Add subagent_model field to RuntimeFeatureConfig + RuntimeConfig::subagent_model()
  accessor so the subagentModel setting (already validated by config_validate.rs)
  is now actually read and stored.
- Agent tool's resolve_agent_model falls back to subagentModel from config
  when no explicit model is passed.

Provider namespace separation:
- New 'custom-openai' provider kind with dedicated env vars
  (CLAWCUSTOMOPENAI_API_KEY / CLAWCUSTOMOPENAI_BASE_URL)
- /setup wizard saves kind: 'custom-openai' for option 5
- Bare model name normalized to 'custom/' prefix to avoid proxy 404s
- Sub-agents inherit /setup-saved provider config via inject_config_as_env_fallbacks

Parallel tool execution:
- Override execute_batch to classify read-only tools as parallel-safe
  and run them concurrently via std:🧵:scope
- Results return in original model order

Team coordination layer:
- AgentMessage, TaskClaim, TeamStatus tools + shared mailbox directory
- Mode presets (tiny/1x ... mega/6x) + enriched TeamCreate/Agent descriptions
- Background team watcher
- /team slash command: on/off/status/toggle

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 00:09:08 -05:00
..
providers feat(team): team enhancements, subagentModel, parallel tool exec 2026-07-07 00:09:08 -05:00
client.rs feat(team): team enhancements, subagentModel, parallel tool exec 2026-07-07 00:09:08 -05:00
error.rs feat(team): team enhancements, subagentModel, parallel tool exec 2026-07-07 00:09:08 -05:00
http_client.rs feat: API timeout config, Retry-After header support, and configurable retry 2026-06-02 15:30:22 -05:00
lib.rs feat(team): team enhancements, subagentModel, parallel tool exec 2026-07-07 00:09:08 -05:00
prompt_cache.rs feat(api): add tuning params (temperature, top_p, penalties, stop) to MessageRequest 2026-04-08 07:07:33 +09:00
sse.rs fix(api): enrich JSON parse errors with response body, provider, and model 2026-04-07 14:22:05 +09:00
types.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-15 10:21:18 +09:00