dsh-btw-plugin
Manifest valid★ 3Codex-style /btw command for DeepSeek Harness: side questions answered in a conversation-seeded subagent context, without polluting the main context
@jasonqq/dsh-btw-plugin
A Codex-style /btw command for DeepSeek Harness.
/btw <question> answers a side question in a sub-context seeded with the main
conversation, and shows the answer in the chat without ever adding it to the
main conversation's model history. Ask "by the way…" questions freely — the
main context stays clean.
How it works
- The command is registered through
@deepseek-ai/dsh-commands(the same registry that powers/compact,/goal,/plan). - The question is delegated through
ctx.subagents.start("fork", …). Theforkprovider spawns a child agent seeded with the parent's completed turns, so the side question is answered with full knowledge of the main conversation. - The child's answer is returned as a plain command result. Command results are rendered by the UI adapter and never enter the model history — that is the "no pollution" guarantee.
Usage
In any session composer:
/btw <question>
The answer appears as a command result card. It does not become a message the main model sees, so you can reference it yourself without bloating the context.
Install
The plugin ships as a Cordis plugin and plugs into any profile that mounts
@deepseek-ai/dsh-commands and @deepseek-ai/dsh-subagent (both are part of
the shipped @deepseek-ai/dsh-base composition).
-
Make the package resolvable from the profile, e.g. link it into the shared profile store:
mkdir -p ~/.dsh/profiles/node_modules/@jasonqq ln -s "$PWD" ~/.dsh/profiles/node_modules/@jasonqq/dsh-btw-plugin -
Add it to the profile patch layer (
~/.dsh/profiles/<profile>/cordis.patch.yml):- insert: - id: btw name: @jasonqq/dsh-btw-plugin config: provider: forkThe profile patch is read at boot. In the desktop app, restart the app after editing it (the CLI
dsh webrunner hot-reloads its patches).
Configuration
| Key | Default | Meaning |
|---|---|---|
provider | "fork" | Subagent provider. fork seeds the child with the parent's completed turns (sees the main context); spawn starts a fully standalone child. |
maxDepth | (unset) | Optional recursion-depth cap for the child; defaults to the harness default when omitted. |
Development
npm test
The tests exercise the handler with a stubbed ctx.subagents seam — no live
model or host is needed.
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.2 | — | — |
Comments
Loading…
Similar plugins
by 136155330
/btw side-question command for DeepSeek Harness (dsh) — ask a context-aware question, never touch the main conversation
★ 0
MIT
TypeScript
Aug 19, 2026
dsh plugin --profile web add dsh-btwby gulagala001
Context-aware side questions for DeepSeek Harness, with prompt cache reuse and a native composer popover.
★ 1
MIT
JavaScript
Oct 24, 2026
dsh plugin --profile web add @gulagala001/dsh-btwby MichengAI
Adds /btw for one-off, context-aware side questions without tool execution, with independent answer bubbles that can be copied, collapsed, or closed without adding answers to the main conversation.
★ 44
Apache-2.0
TypeScript
Oct 29, 2026
dsh plugin --profile web add @michengai/dsh-btwAdds /btw and /side slash commands that answer ephemeral side questions in an isolated forked sub-session without polluting the main conversation context.
★ 0
dsh plugin --profile web add dsh-plugin-btwby Big-Smarty
BTW side chat for DeepSeek Harness: a read-only fork of the current conversation, answered in a Codex-style right-sidebar window.
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add @local/dsh-btw-sidechatby lzxcs
/btw 旁路问答:不打断当前会话(含流式输出中),基于当前上下文回答一个问题;答案以「旁答」命令结果行显示在主会话里,不进入主模型上下文。
★ 0
MIT
JavaScript
Aug 26, 2026
dsh plugin --profile web add btw-pro