jiangr100/dsh-in-convo-mode-change

jiangr100★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

DeepSeek Harness plugin: switch a session's agent preset (Standard / Code / Minimal / Creator) mid-conversation, straight from the session header.

README 摘要

dsh-in-convo-mode-change Switch the agent preset of a conversation mid-session in the DeepSeek Harness web UI. The presets are the "conversation modes" shipped with the harness — Standard mode , Code mode (PTC) , Minimal mode , and Creator mode , plus any custom presets you have authored. By default the session header's preset icon is a read-only label: a session's composition is fixed when it starts, and the built-in picker only exists on the new-session hero screen. This plugin turns the header icon into a real mode switcher that works on a conversation that has already started. How it works - Client half ( lib/client.js ) replaces the built-in agent-preset cell in conversation.session.header.actions with a menu button. Picking a mode asks for confirmation, then POSTs { sessionId, agentPreset } to the host route. - Host half ( lib/index.js ) registers the POST /change-convo-mode/switch route on the web server. It uses the host's own agentPresets.recompose() — the same machinery the built-in blank-session picker uses — without the "no turn has ever run" restriction, and records the switch in the session log as an agent-preset/selected event so the transcript stays honest. - Pickin…

在 GitHub 查看完整 README →
Agent/智能体dsh-pluginweb uiagent

分类