MisRightW/dsh-at-file ↗★ 0

dsh-at-file

Workspace file references for DeepSeek Harness: pick a file with '@' and inject its content into the model context 适合需在提示中引用工作区文件的用户,输入 @ 即可选择并注入内容。

パッケージ
dsh-at-file
互換性
未検証
Harness ピア範囲
^0.1.0-rc.6
Cordis ピア範囲
^4.0.1
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/20

同名パッケージの別リポジトリ

インストール

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

ドキュメント

README 全文を読む ↗

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)