[tools] Rewrite chat_with_model into subagent with model roles (#924) #931

Closed
sleepy wants to merge 0 commits from feat/subagent-tool-924 into dev
Owner

Implements issue #924.

New subagent tool with model roles (default, teacher, coder/coding, raw model spec).

26 new tests. 1178 passed total. chat_with_model unchanged for backward compat.

Implements issue #924. New subagent tool with model roles (default, teacher, coder/coding, raw model spec). 26 new tests. 1178 passed total. chat_with_model unchanged for backward compat.
Add do_subagent tool that delegates tasks to models via named roles:
- default: uses session's current model (or default_model setting)
- teacher: uses teacher_model / teacher_endpoint_id settings
- coder/coding: uses coding_model / coding_endpoint_id settings
- Raw model specs (model@endpoint) passed through to _resolve_model

New settings added: coding_model, coding_endpoint_id, coding_enabled,
teacher_endpoint_id.

Includes: dispatch routing, tool schema, converter, prompt section,
tool_name_map aliases (subagent, sub_agent, delegate), and 26 tests.

chat_with_model remains unchanged for backward compatibility.
sleepy closed this pull request 2026-06-04 14:21:48 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.