MisRightW/dsh-at-file ↗★ 0

dsh-at-file

在工作区用 @ 选择文件,并将其内容注入模型上下文。 适合需在提示中引用工作区文件的用户,输入 @ 即可选择并注入内容。

包名
dsh-at-file
兼容性
待验证
Harness 依赖范围
^0.1.0-rc.6
Cordis 依赖范围
^4.0.1
版本
0.1.0
许可证
MIT
最近更新
2026年8月20日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MisRightW/dsh-at-file

Usage

  1. Open a session in the web GUI and pick a workspace directory.
  2. Type @ in the composer — a Files group lists workspace files (the group title shows as file until the harness localizes it).
  3. Filter by basename (@main), path prefix (@src/m), or substring; arrow keys + Enter pick.
  4. Send the prompt. Every @path token naming a readable regular file expands host-side into an injected `` content block appended to the model request; unresolvable or oversized tokens stay plain prose.

The literal @path stays in the prompt, and the injected message is recorded on the session log with an at-file source, so the model input is reconstructable from the log.

Configuration

The host half reads a validated Config (patchable from the profile's cordis.patch.yml):

KeyDefaultMeaning
maxFiles1000Maximum index rows per list call
maxDepth8Maximum directory depth walked
maxBytes65536Per-file injection cap; larger files are not indexed
maxReferences8Maximum references expanded per pre-step
skipDirectories.git, node_modules, dist, build, out, coverage, __pycache__, .venvDirectory basenames never indexed (case-insensitive)