Read-only local file tools: full-text search, directory space reports, and duplicate-file detection.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-file-tools
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:li1378380/dsh-file-tools
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A file toolbox for DeepSeek Harness: local full-text search, directory space reports, and duplicate-file detection. Read-only, zero-dependency, fully local.
Why install it
- Hunting for a snippet of code or a note but only remember a few words?
file_searchsearches your code directories, Desktop and Downloads in one pass and returns files with line numbers. - A folder suddenly ballooned and you don't know what ate the space?
disk_reportbreaks it down by extension, size and last-modified time. - The same file saved in several places?
find_duplicateshashes contents to find real duplicates and sorts them by wasted space.
Everything is read-only — it inspects, never deletes. You decide what to clean.
Tools
file_search
Full-text search over text files in common directories:
- Default directories: Windows
D:\Code/ Desktop / Downloads / the DSH workspace; macOS and Linux~/Code/ Desktop / Downloads /~/Projects - Skipped:
.git,node_modules,__pycache__, virtual environments, build output, hidden directories, binary files - Returns: matching files, line numbers, context (marked with
→)
Parameters: query (required), paths, ext, limit (1..100, default 20), maxHitsPerFile (1..20, default 3), context (0..3, default 0).
disk_report
Directory space report:
- File count and total size
- Grouped by extension (count + bytes)
- Largest files, top N
- Most recently modified, top N
Parameters: paths (default: current directory), topN (1..50, default 10).
find_duplicates
Finds files with identical content: group by size → SHA-1 within each size group → return duplicate groups sorted by wasted space.
Parameters: paths (default: current directory), minSize (default 1, skips empty files), limit (1..500, default 50).
Examples
file_search(query="cache", limit=5, context=1)
disk_report(paths="D:\\Code", topN=10)
find_duplicates(paths="D:\\Code;D:\\Docs", minSize=1024)
Sample output (excerpt of disk_report):
{
"ok": true,
"files": 124,
"totalSize": "3.2 MB",
"byExt": [
{ "ext": ".py", "count": 60, "bytes": 2100000, "size": "2.0 MB" }
],
"largest": [{ "path": "D:\\Code\\learning-dashboard.html", "size": "20.5 KB" }]
}
Install
dsh plugin add dsh-file-tools
Or link a local checkout:
dsh plugin --profile <profile> add link:/path/to/dsh-file-tools
After installing, list dsh-file-tools under dsh.profile.bundles in the profile package.json and touch cordis.patch.yml to trigger a hot reload.
Plugin index
The repository ships a format-1 plugin index at market/index.json. In DSH, open Plugins, switch on Custom plugin indexes under Experimental plugins, then add this URL on the Discover tab:
https://cdn.jsdelivr.net/gh/li1378380/dsh-file-tools@main/market/index.json
Safety
- Read-only: no tool writes, moves or deletes anything.
- Local only: no network access, no telemetry, no third-party services.
- Zero runtime dependencies: nothing is installed besides the plugin itself.
Related plugins
No sibling plugins are published yet; this is currently the only package published under the li1378380 npm scope.
AI-generated disclosure
This plugin was written by a DSH agent and used after local testing; tests live in scripts/test.mjs.
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38608
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37289
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28947
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 10049
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6112
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4761
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.