DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Tool List Dir — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@rh854lkjd/dsh-tool-list-dir

Tool List Dir

用于 DeepSeek Harness 的目录列表工具

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @rh854lkjd/dsh-tool-list-dir@0.3.3
README兼容性版本

兼容性与来源证明

Tool List Dir 以 @rh854lkjd/dsh-tool-list-dir 发布,当前版本为 0.3.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/10/16

版本

0.3.3stable
2026/10/3
0.3.2stable
2026/10/3
0.2.7stable
2026/10/2
查看其余 7 个版本收起版本
0.2.6stable
2026/9/29
0.2.5stable
2026/9/11
0.2.4stable
2026/9/5
0.2.3stable
2026/8/20
0.2.2stable
2026/8/20
0.2.1stable
2026/8/20
0.2.0stable
2026/8/20

相关插件

正在加载相关插件…

最新版
0.3.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
34.7 kB
文件数
9
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
34
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

README

dsh-tool-list-dir

Version 0.3.3

中文

A lightweight, read-only directory listing tool for dsh-user-approval.

一个轻量级、只读的目录列表工具,专为 dsh-user-approval 设计。

Features

  • Smart Sorting: Directories first, then files, alphabetically within each group — sorted before truncation, so the shown subset is always the directories-first head
  • Item Filtering: Optional ignore glob patterns omit matching items, and the result reports how many were hidden
  • Statistics: Shows total count, files, and directories
  • Truncation: Limits output to 100 items by default (configurable)
  • Type & Size Info: Displays item type (DIR/FILE) and file sizes
  • System Prompt Guidance: Includes usage guidance for the model

Installation

From NPM (Recommended)

dsh plugin --profile web add @rh854lkjd/dsh-tool-list-dir

From GitHub

dsh plugin --profile web add github:R-LEI2536/dsh-tool-list-dir

Configuration

Custom Configuration

You can customize the tool behavior in your agent preset or cordis.patch.yml:

- id: tool-list-dir
  name: @rh854lkjd/dsh-tool-list-dir
  config:
    # Custom system prompt guidance order (default: 1350)
    order: 1350
    
    # Custom guidance text for the model
    guidance: |
      Use list_directory to browse project structures.
      Results show file sizes and types.
      Sorted by type and name.
    
    # Maximum items before truncation (1-1000, default: 100)
    maxEntries: 200

Disable the Tool

- id: tool-list-dir
  name: @rh854lkjd/dsh-tool-list-dir
  disabled: true

Configuration Options

OptionTypeDefaultDescription
ordernumber1350Order of the system prompt guidance section. Default 1350 sits inside DSH 0.1.5's tool description band (1000-2900), between TOOL_EDIT (1300) and TOOL_GLOB (1400). Higher values appear later in the prompt.
guidancestring(see default)Custom guidance text shown to the model. Use this to provide context-specific instructions.
maxEntriesnumber100Maximum number of items to return. Range: 1-1000. Larger directories are truncated.

Default Guidance Text

Use the list_directory tool — not shell commands like ls — to browse directory structures. When truncated use glob to find files by name pattern, or grep to search file contents. Use this for understanding project layouts.

Tool Parameters

These are per-call arguments, not plugin configuration.

ParameterTypeRequiredDescription
pathstringyesDirectory to list, resolved against the session working directory. Relative paths are allowed.
ignorestring[]noGlob patterns matched against item basenames. * and ? are the only wildcards; every other character is literal. Matching items are omitted.
{ "path": "src", "ignore": ["*.test.ts", "node_modules"] }

ignore mirrors qwen-code's list_directory semantics, so a pattern means the same thing in both harnesses.

Tool Output

JSON Structure (for the model)

{
  "path": "/home/user/project",
  "entries": [
    { "name": "src", "type": "directory" },
    { "name": "package.json", "type": "file", "size": 1234 },
    { "name": "README.md", "type": "file", "size": 5678 }
  ],
  "stats": {
    "total": 3,
    "files": 2,
    "directories": 1,
    "others": 0
  }
}

When truncated (more than maxEntries):

{
  "path": "/home/user/large-project",
  "entries": [ /* first 100 items */ ],
  "stats": {
    "total": 500,
    "files": 450,
    "directories": 50,
    "others": 0
  },
  "truncated": {
    "shown": 100,
    "total": 500,
    "remaining": 400
  }
}

When items were filtered (an ignore pattern matched):

{
  "path": "/home/user/project",
  "entries": [
    { "name": "src", "type": "directory" },
    { "name": "package.json", "type": "file", "size": 1234 }
  ],
  "stats": {
    "total": 2,
    "files": 1,
    "directories": 1,
    "others": 0
  },
  "ignored": 3
}

ignored is absent when nothing was filtered, and stats always describes the entries actually returned — stats.total equals the length of entries after filtering (before truncation).

Rendered Output (user-visible)

Small directory:

Listed 3 items in /home/user/project:
──────────────────────────────────────────────────
DIR               src/
FILE      1234 B  package.json
FILE      5678 B  README.md
──────────────────────────────────────────────────
Total: 3 items (1 directory, 2 files)

With ignore (3 items filtered out):

Listed 2 items in /home/user/project:
──────────────────────────────────────────────────
DIR               src/
FILE      1234 B  package.json
──────────────────────────────────────────────────
[3 items hidden by ignore patterns]

Total: 2 items (1 directory, 1 file)

Large directory (truncated):

Listed 150 items in /home/user/large-project:
──────────────────────────────────────────────────
DIR               src/
DIR               tests/
FILE       100 B  file000.ts
FILE       101 B  file001.ts
... (first 100 items)
──────────────────────────────────────────────────
[50 items truncated, showing first 100 of 150 total]

Total: 150 items (2 directories, 148 files)

Note that the shown items are the sorted head of the listing, so directories always appear before the truncation cut.

Empty directory — an empty listing gets one sentence instead of a separator-framed block with no body:

Directory /home/user/empty is empty.

Empty result, but not an empty directory — when ignore hid every item, the output says so instead of claiming the directory is empty:

Directory /home/user/project is not empty. The ignore patterns hid 5 items.

These two cases are deliberately distinct. Without the second wording the model would conclude the directory holds nothing, when in fact the caller's own ignore patterns removed everything.

Dependencies

  • @deepseek-ai/cordis: Plugin framework
  • @deepseek-ai/dsh-tools: Tool definition utilities
  • @deepseek-ai/dsh-fs: Filesystem service
  • @deepseek-ai/dsh-system-prompt: System prompt utilities
  • @deepseek-ai/schemastery: Configuration schema validation

License

MIT

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Vision Toolkit@anionex/dsh-vision-toolkit面向 Harness 原生集成的 DeepSeek 与 agent-vision-toolkit:图像问答、OCR、定位、UI 还原、像素差异、Artifacts 和 Web UI。Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互/代理跳转),选择远程工作区,使用 22 个 rw_* 工具操作该工作区(包括 rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward),具备冲突感知的镜像 syBridge@wenbin_wb/dsh-bridgeDSH 远程连接/远程控制插件(remote control):手机扫码即可在移动端/公网继续用 DeepSeek Harness,人不在电脑前也能接着干。一键局域网二维码、Cloudflare 公网隧道、自建隧道与微信 / QQ / 飞书 / Telegram Bot(多工作区/会话持久化/媒体/卡片审批/流式输出),无需自己搭公网服务器。