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)