clclyzybzjsq/dsh-btw1

dsh-btw

Global /btw command: one-off model Q&A that is not recorded into session memory (Claude Code /btw equivalent)

AI 분석

核心用途是进行不污染当前会话历史的临时提问。适合在复杂开发会话中,临时穿插询问无关小问题(如算值、查函数)的用户。

패키지
dsh-btw
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 9. 6.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:clclyzybzjsq/dsh-btw

用法 / Usage

/btw 这个函数是做什么的?             # What does this function do?
/btw 帮我算一下 0x2F & 0x0F 等于几      # What is 0x2F & 0x0F?

命令在输入框触发后立即清空输入并转入后台执行:命令声明为 detached,composer 在触发的同一瞬间结算本次提交(不再等待模型答完才清空输入框),随后宿主调用 ctx.llm.stream() 发起一次独立的一次性模型请求,答案以持久化的命令节点渲染在会话流中。整个过程不写入任何会话消息(不产生 user 消息、assistant 消息或可被后续模型请求读取的会话事件),所以这次问答不会进入会话历史、不影响后续轮次的记忆。

Once triggered, the command immediately clears the input and runs in the background: it declares detached, so the composer settles the submission at the instant of the trigger (it does not wait for the model answer to clear the input box); the host then makes one independent one-shot model request through ctx.llm.stream(), and the answer renders as a durable command node in the conversation stream. The whole run writes no session messages (no user message, no assistant message, and no session event a later model request could read), so the Q&A never enters session history and does not affect the memory of later turns.