dsh-at-file
在工作区用 @ 选择文件,并将其内容注入模型上下文。 适合需在提示中引用工作区文件的用户,输入 @ 即可选择并注入内容。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MisRightW/dsh-at-file說明文件
閱讀完整 README ↗Usage
- Open a session in the web GUI and pick a workspace directory.
- Type
@in the composer — a Files group lists workspace files (the group title shows asfileuntil the harness localizes it). - Filter by basename (
@main), path prefix (@src/m), or substring; arrow keys + Enter pick. - Send the prompt. Every
@pathtoken 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):
| Key | Default | Meaning |
|---|---|---|
maxFiles | 1000 | Maximum index rows per list call |
maxDepth | 8 | Maximum directory depth walked |
maxBytes | 65536 | Per-file injection cap; larger files are not indexed |
maxReferences | 8 | Maximum references expanded per pre-step |
skipDirectories | .git, node_modules, dist, build, out, coverage, __pycache__, .venv | Directory basenames never indexed (case-insensitive) |