MeghanBao/dsh-backstory0

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.

包名
dsh-backstory
版本
0.2.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MeghanBao/dsh-backstory

Usage

The plugin registers a model-facing backstory tool, so just ask the agent in natural language:

  • "what's the backstory of src/auth.ts line 88?"
  • "explain utils/date.ts lines 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

ParamTypeNotes
pathstring (required)absolute or workspace-relative
linenumberfirst line (1-based); omit for the whole file
endLinenumberlast line; defaults to line

Whole-file reads are bounded to 400 lines.