AI-Veil takeover indicator: registers the veil_emit and veil_cancel tools so every agent takeover action shows a system-level banner and border, plays a cue, sends a desktop notification, and offers one-key abort.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:qq2550049106/ai-veil-bridge
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
一句话价值:装上后,DeepSeek Harness 里的 Agent 每次接管你的鼠标键盘、截图、开应用时,你都会在屏幕上看到系统级横幅与边框、听到提示音、收到桌面通知,并能一键中止——不再是"电脑被悄悄操作"。
ai-veil-bridge 是 AI-Veil 桌面端的 DeepSeek Harness 侧插件。它本身不画任何东西,只做一件事:把 Agent 的接管动作注册成两个模型可调用的工具,翻译成 AI-Veil 的统一事件,交给桌面端呈现。
安装
方式 A · 桌面版 / 图形界面(推荐,最简单)
打开 DeepSeek Harness 的 插件 页 → 添加插件 → 输入 ai-veil-bridge(源码安装可填 github:qq2550049106/ai-veil-bridge)→ 安装并启用。
方式 B · 命令行
# 已发布 npm 包时(进「插件中心」一键安装):
dsh plugin --profile web add ai-veil-bridge
# 仅有 GitHub 源码时(复制命令到终端执行):
dsh plugin --profile web add github:qq2550049106/ai-veil-bridge
把 web 换成你宿主实际的 profile 名(桌面版由应用管理 profile,请优先用方式 A)。
装好后,DSH 会话里会多出两个工具:
| 工具 | 作用 |
|---|---|
veil_emit |
上报一条接管事件(开始接管、动作前后、需要人工、出错、结束、心跳续期) |
veil_cancel |
请求中止当前接管会话 |
让桌面端跑起来
事件写到文件收件箱,桌面端消费它才能看到效果:
git clone https://github.com/qq2550049106/ai-veil.git
cd ai-veil
npm install
npm start -- --adapter file # 消费 ~/.ai-veil/events.jsonl
首次启动会创建 ~/.ai-veil/、写入 config.toml、播种内置素材,托盘出现灰色圆点。
立刻看效果(不接任何 Agent)
# 终端 A:桌面端
npm start -- --adapter file
# 终端 B:约 10 秒走完"接管 → 动作 → 要确认 → 结束"
node demo/emit-demo.mjs
它注册了什么
- 零运行时依赖:只用 Node 内置模块,不额外下载依赖树。
- 宿主集成:
apply(ctx)声明inject: ['tools'],通过ctx.tools.register注册工具。宿主提供@deepseek-ai/dsh-tools时借用官方defineTool做参数校验,否则按同形状的原始定义注册。 - 不写死本机路径:事件收件箱默认
~/.ai-veil/events.jsonl,可用环境变量覆盖,任何机器安装都成立。
环境变量
| 变量 | 默认 | 说明 |
|---|---|---|
AI_VEIL_INBOX |
~/.ai-veil/events.jsonl |
事件落盘路径(插件与桌面端都要一致) |
AI_VEIL_CANCEL_DIR |
~/.ai-veil/cancel |
中止记录落盘目录 |
AI_VEIL_AGENT |
deepseek-harness |
事件里 agent.name 的默认值 |
权限、外部服务与兼容性
- 文件访问:仅读写
~/.ai-veil/(事件收件箱与中止记录)。不读取其他用户文件。 - 网络:不联网。插件只写本地文件,不调用任何外部服务、不收集或上报任何数据。
- 执行命令:不执行任何 shell 命令。
- 中止边界:
veil_cancel只写一条中止记录并收起遮罩;真正"掐断 Agent 进程"需宿主自身配合。桥是单向上报。 - 兼容性:要求 DSH
>=0.1.0-rc.6(Cordis 插件系统、ctx.tools注册接口)。桌面端未启动时事件只会安静排队,DSH 侧不报错、不阻塞。 - 许可证:MIT。
演示截图

排错与更多细节
自检
node scripts/self-check.mjs # 退出码 0 = 通过
用最小 fake ctx 加载插件,验证两个工具注册成功、veil_emit 能写入合法 JSONL、且包里没有任何本机绝对路径。
Links
More in this category
xmanrui/dsh-im★ 3832
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3187
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1478
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1416
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 611
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 286
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.