dsh-frecency
Run the following command in DeepSeek Harness:
dsh plugin install ZK-Andy/dsh-frecency
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install ZK-Andy/dsh-frecency inside DeepSeek Harness; the plugin lives at https://github.com/ZK-Andy/dsh-frecency. Restart the session after install and the built-in grep and glob tools will be replaced.
About this plugin
In long DeepSeek Harness sessions, the built-in grep and glob tools spawn a fresh ripgrep process and scan from scratch on every single call. When several parallel subagents trigger the same searches dozens of times, those repeated cold starts become a noticeable bottleneck. dsh-frecency takes over both tools and keeps one resident in-memory index per working directory (powered by the Rust fff engine), so repeated content searches hit hot memory in single-digit milliseconds.
Results are ranked by frecency — files that are opened often or modified recently surface first, letting the model focus on the most relevant code without any extra prompting. Glob faithfully mirrors the built-in discovery semantics (hidden and ignored files included, VCS metadata excluded, modification-time ordering) and degrades gracefully to the resident index when ripgrep is unavailable. Grep output additionally carries isDefinition and per-file gitStatus annotations, so the model can spot definition lines and modified files at a glance without re-reading. The switch is completely transparent: tool names and schemas stay the same, requiring zero prompt changes, and if the native engine fails to load the built-in ripgrep tools simply keep working.
If you frequently run long harness sessions, coordinate multiple subagents, or perform heavy, repetitive file searches against the same codebase, this plugin turns each cold scan into a memory-level hit — freeing the model to spend its budget on reasoning instead of waiting on I/O.
Use Cases
- Multiple parallel subagents repeatedly search the same codebase without re-spawning ripgrep each time
- Long sessions trigger dozens of redundant file searches that now hit hot memory in milliseconds
- The model needs to spot definition lines and modified files directly in results without re-reading
Best For
- Developers running long DeepSeek Harness sessions
- Workflows orchestrating multiple subagents with heavy file-search volume
- Users seeking lower grep/glob latency with zero prompt changes
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.