dsh-backstory
Ask any line of code its backstory: what it does, and why it's here — grounded in git history and the agent's own session log.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MeghanBao/dsh-backstory说明文档
阅读完整 README ↗Usage
The plugin registers a model-facing backstory tool, so just ask the agent
in natural language:
- "what's the backstory of
src/auth.tsline 88?" - "explain
utils/date.tslines 10–40 and why each part is there"
The tool returns each line with the commit that last touched it (author, date, message); the agent narrates what the code does and uses the commit messages for why. Outside a git repo it degrades gracefully to source-only.
Tool: backstory
| Param | Type | Notes |
|---|---|---|
path | string (required) | absolute or workspace-relative |
line | number | first line (1-based); omit for the whole file |
endLine | number | last line; defaults to line |
Whole-file reads are bounded to 400 lines.