@michengai/dsh-btw
DSH 一次性只读旁问插件:基于当前上下文回答,独立气泡,不执行工具 · One-shot read-only side-ask plugin: answers from current context in an independent bubble, no tool execution 适合需要在不打断主对话、不执行工具的情况下对局部文本提问的用户。
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-btwUsage
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.2with Edge, including the selection toolbar, draft insertion, question form, and a real-model answer. Unrecognized layouts keep their normal context menu;/btwremains available.
Command entry
In a conversation with existing context, enter:
/btw Summarize the proposed plan in one sentence.
| Goal | Action |
|---|---|
| Ask a side question | Submit /btw your question, or choose btw from the / menu. |
| Read the answer | Wait for the answer in the independent bubble above the composer. |
| Copy an answer | Click the copy icon in the bubble's upper right. |
| Collapse or expand | Click the collapse or expand icon. |
| Cancel a question | Close its bubble while it is running. The main task is unaffected. |
| Dismiss an answer | Close the completed bubble. |
| Ask again | Submit 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.