aefuimn/dsh-agent-preset-switcher

aefuimn★ 0JavaScript最后同步: 2026-08-21

在 GitHub 打开

Hot-switch agent presets (working modes) inside a running DSH session, instead of choosing a preset only when a session is created.

README 摘要

dsh-agent-preset-switcher 中文文档 Hot-switch agent presets (working modes) inside a running DSH session, instead of choosing a preset only when a session is created. What it solves A DSH agent preset (Standard / Minimal / PTC / any custom preset) decides a session agent's tool catalog, system prompt, and capabilities . Officially the preset is fixed once a session starts ( turn/start exists): - the browser RPC agentPresets.select checks sessionBlank(agent.session) and returns agent-preset-locked for started sessions; - the reason: history transcripts were generated under the old tool set, and swapping tools mid-conversation would leave logged tool calls that the new composition cannot make. This plugin turns that channel into hot-switching at any stage : a switch is applied only at a step boundary (after one model request finishes, before the next one is assembled), reusing the exact official mechanism — AgentPresets.recompose() (single-flight standing preset mounts + the scope-parent binding re-link held by the roster). Quick start Install from GitHub (recommended for everyone else) The repo ships build artifacts ( lib/ ), so no local build is needed. Install it as a plugin bundle wi…

在 GitHub 查看完整 README →
Agent/智能体dshdsh-pluginagent

分类