MichengAI/dsh-btw ↗★ 2

@michengai/dsh-btw

DSH 一次性只读旁问插件:基于当前上下文回答,独立气泡,不执行工具 · One-shot read-only side-ask plugin: answers from current context in an independent bubble, no tool execution 适合需要在不打断主对话、不执行工具的情况下对局部文本提问的用户。

패키지
@michengai/dsh-btw
호환성
미검증
Harness peer 범위
0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.7-rc.1 || 0.1.7-rc.2
Cordis peer 범위
^4.0.2
버전
0.1.13
라이선스
Apache-2.0
최근 업데이트
2026. 9. 24.

설치

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

Usage

Ask about selected text

Select text within a single conversation message, choose Ask BTW from the compact selection toolbar, and enter a question or choose Explain this. Enter sends, Shift+Enter inserts a newline, and Esc cancels. Answers use the existing BTW bubbles with an expandable quote.

  • Supports prose, lists, and code text; quotes are limited to 8,000 UTF-16 code units including whitespace and are never silently truncated.
  • The quote is frozen when the menu opens. Other context comes from completed main-chat content at send time.
  • Main-composer drafts are preserved. Cross-message selections, editable fields, and tool output do not show the menu.
  • Add to conversation appends a quote to the existing draft without sending. After insertion, focus returns to the composer; insertion is blocked while a message is being submitted. Right-click keeps the browser's native menu.
  • Keyboard selection is supported inside focused message elements: release Shift to focus the toolbar. Browsers without the Popover API use a fixed-position fallback, which may be clipped by the host layout.
  • Coexists with dsh-better-sidebar: BTW handles conversation text only; file previews and editors retain the sidebar plugin's own Add to conversation action without a duplicate toolbar.
  • This entry uses host DOM markers and has been verified in DSH 0.1.5-rc.2 with Edge, including the selection toolbar, draft insertion, question form, and a real-model answer. Unrecognized layouts keep their normal context menu; /btw remains available.

Command entry

In a conversation with existing context, enter:

/btw Summarize the proposed plan in one sentence.
GoalAction
Ask a side questionSubmit /btw your question, or choose btw from the / menu.
Read the answerWait for the answer in the independent bubble above the composer.
Copy an answerClick the copy icon in the bubble's upper right.
Collapse or expandClick the collapse or expand icon.
Cancel a questionClose its bubble while it is running. The main task is unaffected.
Dismiss an answerClose the completed bubble.
Ask againSubmit another /btw question. Each question is independent.

Use the regular conversation to run commands, edit code, or continue the main task. BTW can only answer using existing context.

BTW accepts text only. Side questions with images or files are rejected without clearing the draft or attachments; remove the attachments before retrying.

Usage Notes

  • Each question is independent and uses completed content from the main conversation at the time you ask. It does not include an answer still being generated or previous side questions.
  • Bubbles are not restored after refreshing the page. Copy any answers you want to keep first.

Usage Notes

  • Each question is independent and uses completed content from the main conversation at the time you ask. It does not include an answer still being generated or previous side questions.
  • Bubbles are not restored after refreshing the page. Copy any answers you want to keep first.