huuthuan-nguyen/dsh-tgrep ↗★ 0

dsh-tgrep

Shadow built-in grep with Microsoft tgrep (trigram-indexed search) for DeepSeek Harness 适合需要在DSH中替代默认grep以实现更高效代码搜索的用户。

Package
dsh-tgrep
Compatibility
Unverified
Harness peer range
*
Version
0.1.1
License
MIT
Last updated
Sep 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huuthuan-nguyen/dsh-tgrep

Configuration

When installed, dsh-tgrep contributes a default configuration layer. You can customize settings in your profile's cordis.patch.yml or $DSH_HOME/cordis.patch.yml:

- insert:
    - id: tgrep
      name: dsh-tgrep
      config:
        # Enable or disable the plugin
        enabled: true
        # Prefer connecting to a running tgrep serve instance or local index
        preferServer: true
        # Soft limit on returned matches (model context protection)
        maxLines: 300
        # Extra CLI flags passed to tgrep (e.g. ["--hidden"])
        extraArgs: []