
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-plugin-appshot
Advanced tools
dsh-plugin-appshot — a DeepSeek Harness plugin for macOS and Windows context screenshot capture.
macOS / Windows 全局快捷键「一键截图当前窗口」,自动作为图片上下文挂入 DeepSeek Harness (DSH) 的 Composer —— 把当前工作窗口零摩擦交给 Agent。
项目主页(GitHub Pages): https://appshot.twoodbyte.top/
English · 中文 · Changelog · 更新日志
dsh plugin --profile web add dsh-plugin-appshot
.app 与 Windows 自包含单文件 .exe)已全部打包,无需本地编译、无需构建授权;[dsh-plugin-appshot] plugin applied successfully、native agent ready 即加载成功;从源码安装(开发/贡献者):在插件目录
pnpm install && pnpm build && pnpm build:native,然后在插件父目录执行dsh plugin --profile <name> add ./dsh-plugin-appshot(dsh plugin add的相对路径锚定调用目录)。
DSH 版的「Codex Appshots」:为 DeepSeek Harness 带来全局快捷截屏上下文体验。
典型场景:无论你是在浏览器中查阅文档、在 IDE 中调试代码,还是在终端中排查报错——在任何应用的任何窗口中遇到疑问,只需按下 左 ⌘ + 右 ⌘,当前窗口截图便会瞬间自动传递到 DSH 客户端并挂入 Composer;附上你的问题即可直接向 Agent 提问,彻底告别「手动截图 → 切换窗口 → 粘贴上传」的繁琐流程。
截的是「当前窗口」,不是「整个屏幕」——与 Codex 官方对 Appshots 的描述一致("An appshot captures the frontmost window only.",Appshot 只截取最前面的那个窗口):
| ✅ 截取 | ❌ 不截取 |
|---|---|
| 触发瞬间正在操作的那一个前台窗口(Chrome / VS Code / Finder / Terminal…) | 整个屏幕、桌面壁纸、菜单栏/Dock、其他窗口、后台应用 |
按下 左⌘+右⌘ → 截取当前前台窗口 → 截图挂入 Composer → 输入描述并 Send
目前支持 macOS 14+(Apple Silicon / arm64)(默认左右 ⌘ Command,可在设置面板切换为双击 ⌘ 等)与 Windows 10 19041+(x64)(默认双 Ctrl,可在设置面板自定义修饰键组合)。
在任意应用(Chrome、VS Code、Finder / 记事本、Terminal…)中按下全局快捷键——macOS 同时按左 ⌘ 与右 ⌘,Windows 同时按左 Ctrl 与右 Ctrl(可在设置面板自定义)——截的就是你眼前正在看的这一个窗口,不是整屏;
接下来两个平台的表现不同:
dsh web 下截图仍会挂入 Composer,只是不唤起窗口);| 触发前(正在操作的前台窗口,截图为 macOS 示例) | 触发后(自动截取并挂入 Composer) |
|---|---|
![]() | ![]() |

截图进入 Composer 而非直接触发 Agent——你可以补充说明、追加截图或删除不需要的附件,意图完全由你掌控。
双平台共有
macOS
saveImage 持久化为 DSH Attachment 后,经自建 SSE 通道推送客户端,自动挂到活跃 Session 并聚焦输入框。UNUserNotificationCenter)提示失败原因。Windows
MOUNTED 确认,不达不弃。系统由三方组成,数据单向流动:
┌─────────────────────────┐ NDJSON IPC (stdio) ┌──────────────────────────┐
│ macOS Native Agent │ ────────────────────────▶ │ Node / Cordis 宿主插件 │
│ (Appshot Agent.app) │ type: "appshot" │ (src/) │
│ · 双 Command 状态机 │ │ · fs.readFile 读字节 │
│ · 前台窗口识别 │ │ · attachments.saveImage │
│ · ScreenCaptureKit 截图 │ │ · 所有权原子转移 + unlink │
│ · 截图落盘后唤起 DSH │ │ · webServer SSE 广播 │
└─────────────────────────┘ └────────────┬─────────────┘
│ SSE (appshot/ready)
▼
┌─────────────────────────┐
│ DSH Client 模块 (Renderer) │
│ · 识别活跃 sessionId │
│ · 挂载 ImageAttachmentRef │
│ · 聚焦 Composer 输入框 │
└─────────────────────────┘
关键设计:
NSRunningApplication),不是 DSH API;若当前聚焦在 DSH 窗口本身则自动忽略不截。saveImage 成功前 Staging 文件归插件;成功后所有权移交 DSH AttachmentStore,插件立即 unlink;失败分支 finally 清理;启动时执行孤儿文件 GC。首次触发截图时,macOS 会弹出授权引导,需授予:
| 权限 | 用途 |
|---|---|
| 屏幕录制 (Screen Recording) | ScreenCaptureKit 捕获前台窗口画面 |
| 辅助功能 (Accessibility) | 全局按键状态机监听 + 窗口唤起置顶 |
拒绝授权时本次截图终止,并通过系统通知提示;可在 系统设置 → 隐私与安全性 中补授后重试。
dsh web 下截图仍可入 Composer,但不唤起/置顶窗口;Windows 按「防自截」设计不唤起 DSH,截图静默进入输入框。src/ 宿主插件(Cordis apply(ctx) 入口 + windows/macos 交付 + client 模块)
native/macos/ Swift Native Agent(ScreenCaptureKit + 双 Command 状态机)
native/windows/ C# Native Agent(Win32 低级键盘钩子 + GDI 双阶段截图)
docs/ requirements / technical(分平台)/ tasks / api-grounded-review
tests/ 各 Phase 契约测试(node --test)
常用命令:
pnpm build # esbuild 打包宿主插件与客户端模块 → dist/
pnpm typecheck # tsc --noEmit
pnpm test # 契约测试(DSH_DISABLE_AGENT_SPAWN=1 避免拉起真实 Agent)
pnpm build:native # 构建 Appshot Agent.app(macOS)
pnpm build:native:windows # dotnet publish 自包含单文件 exe → native/windows/bin/win-x64/(Windows)
pnpm test:native # Windows Native 单测(dotnet test)
# Native 诊断(在 native/macos 内)
swift build && .build/debug/appshot-macos --list-windows # 列出可捕获窗口
.build/debug/appshot-macos --cli-capture --output /tmp/test.png # 前台窗口截图 PoC
依赖约束:@deepseek-ai/cordis(^4.0.1)与 @deepseek-ai/dsh-tools(exact 0.1.0-rc.6,npm latest 是过期 0.0.1-rc.1,勿用 npm i 覆盖)均为 devDependencies,仅在开发期提供类型;包元数据不声明 peerDependencies——Windows 下 pnpm 会为 peer 依赖创建相对符号链接,普通用户权限(未开开发者模式)安装必然 EPERM 失败。代码只 import type,运行时 ctx 由宿主注入,插件零运行时依赖。
发布(technical-windows.md §7.4):tag 触发 GitHub Actions 双 runner——macOS 构建 Appshot Agent.app、Windows 构建 appshot-win-x64.exe,装配机还原两端产物后 npm publish(prepack 平台感知:本机构建 Native + CI 环境强制双端产物 Gate,缺一即阻断)。本地 pnpm pack 仅产出单平台包,不作为正式发布源。
本项目基于 MIT 协议开源。
FAQs
dsh-plugin-appshot — a DeepSeek Harness plugin for macOS and Windows context screenshot capture.
The npm package dsh-plugin-appshot receives a total of 393 weekly downloads. As such, dsh-plugin-appshot popularity was classified as not popular.
We found that dsh-plugin-appshot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.