my-dsh-plugin/agent-mode-switcher

my-dsh-plugin★ 0TypeScript最后同步: 2026-08-15

在 GitHub 打开

Switch the current session's agent preset (mode) after the model answers and keep chatting. DeepSeek Harness 插件:模型回答后切换模式,继续当前对话。

README 摘要

dsh-agent-mode-switcher DeepSeek Harness plugin: switch the current conversation's agent preset (mode) after the model finishes answering, and keep chatting in the same session. What it does The session header already shows which mode (agent preset) a conversation runs — 标准模式 / PTC 模式 / 极简模式 or a custom preset. In a stock harness that label is read-only once the conversation started, because agentPreset.select refuses every non-blank session. This plugin: 1. Replaces the shipped header label with a live switcher chip (the same conversation.session.header.actions cell, id agent-preset ). 2. Picking another preset calls the standard agentPreset.select RPC, which recomposes the session's agent from that preset. The conversation, its history, and its workspace stay exactly where they are — only the toolset/prompt composition changes, recorded in the session log so a resume or fork rebuilds the same mode. The select echo updates the session summary immediately (the shipped seat's own pattern), so the header chip reflects the new mode without a page refresh. 3. The chip is disabled while the model is answering and the host refuses the swap during a running turn regardless. Requirements T…

在 GitHub 查看完整 README →
Agent/智能体cordisdeepseek-harnessdshdsh-plugindsh-pluginsagent

分类