dsh-code-quote

输入框代码引用折叠:粘贴「路径:行号 + 代码」时自动折叠为「文件图标+文件名:行号」引用芯片(Ctrl+Z 可还原),发送时由 agent/pre-step 钩子将完整代码快照作为独立上下文消息注入给模型。0.5 起支持侧边栏「添加到对话框」大段选区(仅插路径行时按会话工作目录读磁盘取代码),并在捕获阶段抢权接管 Ctrl+V 粘贴。

插件介绍

输入框代码引用折叠:粘贴「路径:行号 + 代码」时自动折叠为「文件图标+文件名:行号」引用芯片(Ctrl+Z 可还原),发送时由 agent/pre-step 钩子将完整代码快照作为独立上下文消息注入给模型。0.5 起支持侧边栏「添加到对话框」大段选区(仅插路径行时按会话工作目录读磁盘取代码),并在捕获阶段抢权接管 Ctrl+V 粘贴。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-code-quote

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:hanrr92/dsh-code-quote

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

第三方安装实测

安装测试结果
安装与注册通过
测试日期