yzhangjy/dsh-path-anonymizer0

dsh-path-anonymizer

DSH plugin: anonymize workspace-external file paths before model requests with user confirmation

AI 分析

核心用途是保护隐私安全,防止本地敏感路径泄露给大模型。适合对代码或文档隐私要求较高的开发者和安全敏感型用户。

パッケージ
dsh-path-anonymizer
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yzhangjy/dsh-path-anonymizer

ドキュメント

README 全文を読む ↗

Configuration

KeyDefaultDescription
enabledtrueEnable path detection and anonymization
confirmEveryTimetrueShow the confirmation dialog for every request
maxPathsPerPrompt10Max paths displayed in the confirmation dialog
autoAnonymizefalseSilently replace paths without showing a dialog
anonymizeWorkspacePathsfalseAlso anonymize paths inside cwd (default keeps them for coding)
detector.maxPaths50Max distinct paths to detect in one batch
detector.excludePatterns[]Extra regex patterns for paths to ignore
detector.includeSystemPathsfalseAlso 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/'