About
From README.md in 0.2.0.
A per-session switch that has the main agent plan, delegate to subagents, and review results while subagents carry out the work. When on, the main agent acts as a coordinator — breaking the request into tasks, handing them to subagents, and checking their reports — while subagent sessions receive matching guidance to complete the assigned work.
Install
dsh plugin --profile web add @klarkxy/dsh-delegation
Enable the plugin in your profile, then reload the page or restart the profile as the manager requires.
Use
- On the new-session page, use the Delegate chip on the same row as the workspace and preset selectors before sending the first message: the chip shows the theme color when delegation is on. The chip remembers your latest successful choice and applies it to the next new session automatically, including after a restart. The choice locks once the session starts, including after reopening it. A session forked from an existing one keeps its parent's state and does not change the remembered choice. The chip applies to the session's main agent, and its subagents automatically receive matching execution guidance.
- Simple tasks can be completed directly. For larger tasks, the main agent assigns scoped work to subagents, coordinates shared interfaces, and checks their results before reporting completion.
Limits
- Presets that expose subagent tools — Standard and PTC — support delegation; presets without subagent tools (such as Minimal and other complete-persona presets) keep the chip disabled.
- The chip updates prompt guidance only; tool access and permissions remain unchanged, and delegation is guided rather than strictly enforced.
- Delegation Mode stays fixed once a session starts, keeping the session's prompt cache stable.
- Existing sessions keep their current state; a previously saved global default still applies to newly created sessions that have no remembered choice.
- The added prompt section may reduce provider prompt-cache hits.