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 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目