DeepSHPlugins
dsh-btw-plugin 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-btw-plugin

會話與訊息JavaScript

Codex 風格 /btw 指令:在繼承主會話上下文的子代理中回答附帶問題,答案展示在介面裡、不寫入主會話歷史。

3 StarsJasonQQ 更新時間 2026-08-25
訪問 GitHub 倉庫
dsh-btw-plugin 專案預覽

專案介紹

中文

Codex 風格 /btw 指令:在繼承主會話上下文的子代理中回答附帶問題,答案展示在介面裡、不寫入主會話歷史。

English

Codex-style /btw command: answer side questions in a conversation-seeded subagent (fork provider), rendered in the UI without entering the main session history.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
JasonQQ
倉庫
JasonQQ/dsh-btw-plugin
GitHub Stars
3
Forks
0
開發語言
JavaScript
許可證
未記錄
最近推送
2026-08-25
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

57/ 100
維護活躍
89
文件與實用資訊
100
生態關注度
17
安裝便捷訊號
75
專案宣告訊號
80

近 17 天仍在更新;README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add "https://github.com/JasonQQ/dsh-btw-plugin/releases/download/v0.1.0/jasonqq-dsh-btw-plugin-0.1.0.tgz"

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

@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", …). The

fork provider 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).

  1. 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
  1. Add it to the profile patch layer (~/.dsh/profiles/<profile>/cordis.patch.yml):
   - insert:
       - id: btw
         name: @jasonqq/dsh-btw-plugin
         config:
           provider: fork

The profile patch is read at boot. In the desktop app, restart the app after editing it (the CLI dsh web runner hot-reloads its patches).

Configuration

KeyDefaultMeaning
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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案