zerodegress/dsh-model-redactor

插件 ⭐ 1 MIT other

Model-visible redaction plugin for DeepSeek Harness (dsh). It redacts sensitive material (API keys, tokens, credentials) from what the model sees:

catalog 简介:—

安装

The package ships `cordis.patch.yml` and declares `dsh.bundle.patch` for bundle
profiles.

## Configuration

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `enabled` | `boolean` | `true` | Master switch. |
| `replacement` | `string` | `[REDACTED]` | Replacement text (1..128 chars). Must not itself match a built-in secret pattern. |
| `customRegexes` | `Array<{ pattern, flags?, replacement? }>` | `[]` | Extra regex rules. |
| `customWords` | `Array<string \| { word, replacement? }>` | `[]` | Exact-word rules. |

Built-in rules are fixed and cannot be disabled. They cover OpenAI-style `sk-`,
`Bearer`, `Basic`, GitHub tokens, Slack tokens, JWTs, assignment patterns,
PEM private-key blocks, and AWS `AKIA` access key IDs.

## Build and test

zerodegress/dsh-model-redactor 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。