privacy-redact Cursor ruleA

privacy-redact from loadingvx/deepseek-harness-workbench-plugin is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add loadingvx/deepseek-harness-workbench-plugin/.cursor/rules/privacy-redact.mdc@git:20260815.d296918

Pins 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

The exact contents, by fingerprint
mdr add loadingvx/deepseek-harness-workbench-plugin/.cursor/rules/privacy-redact.mdc@sha256:d1ae9fc248f2e26d

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_b7l75nzplokh3fqm.svg)](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.

versioncommittedcommitsizeaudit
git:20260815.d296918 latest2026-08-15 d296918 1,376 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from loadingvx/deepseek-harness-workbench-plugin

main-branch Cursor rule
loadingvx/deepseek-harness-workbench-plugin · .cursor/rules/main-branch.mdc · 日常开发与提交都在 main 上进行;不要切到已废弃的 dev 分支
git:20260825.7084a98 · audit A · 35 stars
bump-version SKILL.md skill
loadingvx/deepseek-harness-workbench-plugin · .cursor/skills/bump-version/SKILL.md · 升级 dsh-workbench-plugin 版本号时使用。列出 package.json 与两个 README 中所有需要同步版本号的位置、必须保留的旧版本字样、验证与发布命令。当任务涉及“更新版本号 / bump version /…
git:20261019.421282d · audit A · 35 stars
session-window-interaction SKILL.md skill
loadingvx/deepseek-harness-workbench-plugin · .cursor/skills/session-window-interaction/SKILL.md · 把工作台内容(文件、网络请求、终端选中内容等)写入原生会话输入框并显示为胶囊(attention 胶囊)的机制与踩坑。当任务涉及「添加到会话 / add to chat / 拖拽到会话窗口 / 胶囊 / chip / 会话输入框插入 /…
git:20260823.a0b88c3 · audit A · 35 stars
bump-version SKILL.md skill
loadingvx/deepseek-harness-workbench-plugin · .dsh/skills/bump-version/SKILL.md · 所有项目文案和代码中的版本号都更新
git:20260828.37f265a · audit A · 35 stars

Every file in loadingvx/deepseek-harness-workbench-plugin

Browse by kind, by grade A, or by owner.