privacy-redact Cursor ruleA
privacy-redact from loadingvx/deepseek-harness-workbench-plugin is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add loadingvx/deepseek-harness-workbench-plugin/.cursor/rules/privacy-redact.mdc@git:20260815.d296918Pins git:20260815.d296918 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- loadingvx/deepseek-harness-workbench-plugin
- Path
.cursor/rules/privacy-redact.mdc- Versions recorded
- 1
- Latest version
- git:20260815.d296918, committed Aug 15, 2026
- Size
- 1,376 bytes
- Repository stars
- 35
- License
- MIT
对外展示的 URL / token 必须脱敏,禁止把完整密钥写进界面、报错或日志.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 隐私脱敏
本插件可以展示 URL、远程地址、仓库路径,但 **token、密码、Bearer、API Key 必须脱敏后再给用户或模型看**。
## 必须遵守
- 所有即将进入界面、HTTP JSON、`messageZh` / `hintZh`、工具卡片的文本,先走 `redactSecrets()`(`src/shared/redact.ts`)。
- URL 本身可以原样展示主机和路径;只遮住 userinfo 里的密码/token、查询参数里的 `token` / `access_token` / `api_key` 等、以及 `ghp_` `glpat-` `npm_` `sk-` `Bearer` 这类密钥。
- 脱敏形态:保留头 3 位和尾 2 位,中间 `***`。短于 7 位整段改成 `***`。
- 不要把未脱敏的 `git` stderr、`process.env`、`.npmrc`、远程 clone URL 直接拼进报错。
- 不要在脚本、README、提交说明、测试夹具里写入真实 token。测试只用假值。
- 不要新增会把完整密钥打到 `console` 的日志。
## 示例
```ts
// ❌ 把 git stderr 原样给用户
return new GitError('GIT_FAILED', stderr)
// ✅ 先脱敏再展示,URL 还在,token 被遮住
return new GitError('GIT_FAILED', redactSecrets(stderr))
```
`https://octocat:ghp_abcdefghijklmnopqrstuv@github.com/acme/app.git`
→ `https://octocat:ghp***uv@github.com/acme/app.git`Read the whole file at its exact version.
How to install
mdr add loadingvx/deepseek-harness-workbench-plugin/.cursor/rules/privacy-redact.mdc@sha256:d1ae9fc248f2e26dThe line at the top of this page pins the label git:20260815.d296918, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_b7l75nzplokh3fqm)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 15, 2026.
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1376 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
loadingvx/deepseek-harness-workbench-plugin · 35 stars · license MIT · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_b7l75nzplokh3fqm GET https://markdownregistry.com/api/v1/resolve?ref=loadingvx/deepseek-harness-workbench-plugin/.cursor/rules/privacy-redact.mdc GET https://markdownregistry.com/api/v1/blob/d1ae9fc248f2e26d9a648c5fcf5dd3231056902e6e30a663b83c9102e4c7cea1
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.