yzhangjy/dsh-path-anonymizer ↗★ 0
dsh-path-anonymizer
DeepSeek Harness 插件:在向模型发送请求前,对工作区外部的文件路径进行匿名化处理,并支持用户确认。
AI 分析
核心用途是保护隐私安全,防止本地敏感路径泄露给大模型。适合对代码或文档隐私要求较高的开发者和安全敏感型用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yzhangjy/dsh-path-anonymizer说明文档
阅读完整 README ↗Configuration
| Key | Default | Description |
|---|---|---|
enabled | true | Enable path detection and anonymization |
confirmEveryTime | true | Show the confirmation dialog for every request |
maxPathsPerPrompt | 10 | Max paths displayed in the confirmation dialog |
autoAnonymize | false | Silently replace paths without showing a dialog |
anonymizeWorkspacePaths | false | Also anonymize paths inside cwd (default keeps them for coding) |
detector.maxPaths | 50 | Max distinct paths to detect in one batch |
detector.excludePatterns | [] | Extra regex patterns for paths to ignore |
detector.includeSystemPaths | false | Also detect system paths (/usr/lib/, /etc/, etc.) |
anonymizer.placeholderFormat | [PATH_{n}] | Placeholder format; {n} is the match index |
Example: auto-anonymize mode
- id: path-anonymizer
config:
enabled: true
autoAnonymize: true # never shows a dialog
Example: exclude additional patterns
- id: path-anonymizer
config:
detector:
excludePatterns:
- '^/nix/store/'
- '^/home/ci/'