dsh-model-redactor
by zerodegress
DeepSeek Harness(dsh)模型可见编辑插件。从模型所看到的内容中编辑敏感信息(API密钥、令牌、凭证)。
Model-visible redaction plugin for DeepSeek Harness (dsh). It redacts sensitive material (API keys, tokens, credentials) from what the model sees:
安装
dsh plugin --profile web add github:zerodegress/dsh-model-redactorGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DeepSeek Harness (dsh) 的模型可见脱敏插件。将敏感材料(API 密钥、token、凭据)从模型实际看到的内容中打码:
- 输入(
agent/pre-step):用户消息在进入会话日志与模型请求之前被改写为脱敏副本。已写入日志的工具结果通过 session surface replacement 脱敏,原始 append-origin 事件保留在 durable log 中。 - 输出(
llm/stream):文本、推理与工具调用参数增量在 agent-loop 落盘之前被打码,日志与后续模型上下文保持一致。block-end载荷同样打码,防止组装出的 assistant 消息重新引入密钥。
安装 / 组合
在 Cordis patch 中添加该行:
- insert:
- id: dsh-model-redactor
name: dsh-model-redactor
config:
enabled: true
包自带 cordis.patch.yml 并声明 dsh.bundle.patch,可用于 bundle profile。
配置
| 字段 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled |
boolean |
true |
总开关。 |
replacement |
string |
[REDACTED] |
替换文本(1..128 字符)。自身不得匹配内置密钥模式。 |
customRegexes |
Array<{ pattern, flags?, replacement? }> |
[] |
附加正则规则。 |
customWords |
Array<string | { word, replacement? }> |
[] |
精确词规则。 |
内置规则固定且不可关闭。覆盖 OpenAI 风格 sk-、Bearer、Basic、GitHub token、Slack token、JWT、赋值模式、PEM 私钥块与 AWS AKIA 访问密钥 ID。
构建与测试
pnpm build
pnpm test
tsc 产出 lib/。单元与集成测试使用 Vitest。
原始 README: https://github.com/zerodegress/dsh-model-redactor/blob/main/README_CN.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod