DeepSeek Harness Plugin

li1378380/dsh-file-tools

Stars ★ 0 Downloads (30d) 636 Category Tools & Capabilities Added 2026-12-01 npm dsh-file-tools

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_search searches 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_report breaks it down by extension, size and last-modified time.
  • The same file saved in several places? find_duplicates hashes 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.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.