dsh-chat-mode
julyfai/dsh-chat-mode
Adds a light chat agent preset with on-demand web search and splits the sidebar's New Session row into new-chat and new-session buttons.
설치
dsh plugin --profile web add github:julyfai/dsh-chat-modeREADME
对话模式 / Chat mode
A single bundle with two effects: a light agent preset with on-demand web search, and a two-button New Session row in the sidebar.
Repository: https://github.com/JulyFai/dsh-chat-mode · License: MIT · Changelog: CHANGELOG.md
效果 / Preview
新建任务页:工作区选择器旁的「模式」显示为「对话」。

侧栏顶部:原来一个「新会话」按钮,拆成左右两个。

安装 / Install
# CLI
dsh plugin add git+https://github.com/JulyFai/dsh-chat-mode.git
# 或在 Web 界面:插件 → 添加插件 → 选择本地目录
装完刷新页面;新建任务时在模式菜单里选「对话」,侧栏顶部会出现「新对话 / 新会话」两个按钮。
网页版对话请用系统浏览器或 DeepSeek 官方客户端:DSH 内嵌 webview 会被官网判定为异常环境并拒绝登录,本插件不提供网页聊天入口。
English
Light preset with web access. The bundle declares an agent preset labeled
「对话」 (Chat, id chat) built from a persona, web_search + web_fetch, and
context compaction. It searches only when the answer depends on current
information, a specific URL, or facts it is unsure about, and answers directly
otherwise — so a quick question still costs one model call, and a fresh one
costs one search plus one answer. It has no filesystem, shell, subagent,
planning, Skills, or runtime-context plugins. Pick it in the new-task mode menu,
or make it the default under Settings → Agent presets.
Split sidebar row. A sidebar.session.action HOC layer renders 「新对话」
(New chat) to the left of the shell's untouched 「新会话」 (New session) button.
New chat calls uiWorkspace.startSession(undefined, { agentPreset: 'chat' });
New session keeps the original behavior, including its shortcut. The two buttons
share the row evenly and follow the theme. When the sidebar is collapsed to the
rail only the original single icon button remains.
Limits. Web access needs a configured search provider (Settings → Web
search) and network reachability; without it the search tool fails and the preset
answers from the model alone. A task's preset is fixed once its first turn runs —
the host refuses to swap tool sets mid-task — so changing modes means starting a
new task. Long conversations compact automatically; /compact also works while
the agent is idle. Uninstalling restores the single button and removes the
preset; existing sessions keep the composition they started with.
中文
带联网的轻量预设。 这个 bundle 声明了一个名为「对话」的 Agent 预设(id 为
chat),组成是 persona、web_search + web_fetch 和上下文压缩。只有当答案
依赖最新信息、具体网址或它不确定的事实时才搜索,其余情况直接回答——所以普通问答
仍然只花一次模型调用,需要最新信息时是“一次搜索 + 一次回答”。它不加载文件读写、
终端、子 Agent、计划、Skills 和运行时上下文。新建任务时在工作区选择器旁的模式
菜单里选择它,或在「设置 → Agent 预设」里设为默认。
拆分的侧栏新建行。 通过 sidebar.session.action 这个 HOC 层,在原生
「新会话」按钮左侧渲染一个「新对话」按钮,原按钮保持原样。新对话调用
uiWorkspace.startSession(undefined, { agentPreset: 'chat' });新会话保持原有
行为(含快捷键提示)。两个按钮在行内等宽平分,并跟随主题。侧栏收起成窄条时只保留
原来的单个图标按钮。
限制。 联网需要已配置搜索提供方(设置 → 网页搜索)且网络可达;缺失时搜索工具
会报错,预设退化回纯模型回答。任务跑过第一轮之后预设就固定了——Host 不允许中途
更换工具集——所以换模式等于新建任务。长对话会自动压缩,Agent 空闲时也可以用
/compact 手动压缩。卸载后恢复单个按钮并移除预设;已有会话保留它启动时的组合。