rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xystudio889/dsh-chatmode
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A DeepSeek Harness extension that adds a new Chat mode.
Author's note: This project was developed entirely by DeepSeek Harness AI, and the code is fully AI-generated. If you find a bug, please report it.
Your Skills are preserved, but the model won't perform any actions, and a single thinking pass produces the answer. This gives a web-chat-like experience and saves a lot of tokens.
/skill-name in the input, that skill's full <skill_content> body is injected automatically in the same step, and the model answers directly according to the skill instructions — no skill tool needed, and no second generation pass.persona uses complete: true and includeRuntimeContext: false, so the system prompt keeps only the chat-mode persona and drops sections such as the coding agent, plan mode, and tool guidance, saving even more tokens.# Install the local directory from the DSH Web UI "Plugins" page, or:
dsh plugin --profile <profile> add F:\code\dsh-plugin\dsh-chatmode
You can also install this directory with plugin_manager in any DSH profile (in addition to cordis.patch.yml); the bundle patch inserts the mode declaration automatically.
Once installed, "聊天模式" (Chat mode) appears in Settings → Modes (or in the mode selector of a new session). Select it for a new session, or switch an empty session to it.
cordis.patch.yml inserts one declaration line into @deepseek-ai/dsh-agent-preset:
| Field | Value |
|---|---|
id |
chatmode |
| Name | 聊天模式 |
| Description | See above |
| Composition | @deepseek-ai/dsh-persona (chat-mode persona) + dsh-chatmode (this package's runtime code) |
This package registers no tools; the runtime code does only two things: publish the skill catalog / inject /skill-name bodies, and hide global tools within the mode's scope.
index.js exports a standard Cordis plugin (name / inject / apply):
ctx.inject(['tools']): listens to tools/change, registers the current global tool names as a deny list via ctx.tools.restrict(), and refreshes as global tools are added or removed; tools inside the mode scope are always empty.ctx.inject(['skills', 'workingDirectory']): listens to agent/pre-step and, on accepted steps, appends the one-time skill catalog message and the skill body injected by /skill-name. All failures are swallowed and logged as warnings, so they never turn a conversation turn into a failed turn.It depends on no @deepseek-ai/* runtime packages (profile-installed bundles cannot resolve them); model-visible formats such as message construction and <skill_content> rendering are self-contained in this package and stay consistent with the official dsh-tool-skill / dsh-skill.
locale/*.json and switch with the software language: locale/en.json contains only English (Chat mode + English description), and locale/zh.json contains only Chinese (聊天模式 + Chinese description).cordis.patch.yml, which is a single string returned by the host and does not participate in client-side localization: DSH client's presetDisplayText only uses localized entries for built-in modes (standard / ptc / minimal / cordis), and custom modes display the declared name/description verbatim (official note: without making user-authored metadata translatable).name: '聊天模式', with the Chinese sentence above as the description. To make it English-only instead, simply change the corresponding text in cordis.patch.yml and package.json; true per-language switching would require a client UI plugin to take over the preset selector, which is costly and prone to breaking across versions.After installing into the current desktop profile, the real runtime state was read through a temporary probe inside the host:
chatmode (name, description, order=5), with no broken diagnostics.@deepseek-ai/dsh-persona + dsh-chatmode.complete: true), and optional runtime context is disabled.Logic such as /skill-name injection and the catalog being published only once is covered by test/plugin.test.mjs in an offline fake context. The actual conversational feel (whether answers feel like web chat) still needs to be confirmed by the user after selecting "聊天模式" in a new session.
/skill-name. This is the trade-off under the "zero tools + single-pass generation" constraint.skill tool); this mode does not rewrite history messages. Starting a new session is recommended to experience chat mode.skills service and skill providers mounted (the desktop default composition satisfies this); when missing, the skill catalog and /skill-name injection are skipped automatically and the mode still chats normally.node --check index.js
node test/plugin.test.mjs
test/plugin.test.mjs uses a fake Cordis context to cover: registering no tools, hiding global tools, publishing the catalog only once, /skill-name injection, and returning reject decisions unchanged.
This project is licensed under the MIT License; the LICENSE file contains:
MIT License
Copyright (c) 2026 xystudiocode
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。