MeghanBao/dsh-backstory0

dsh-backstory

代码背景查询插件:结合 Git 历史与会话日志解释任意行代码的来龙去脉

AI 分析

核心用途是让 Agent 能够查询代码行的 Git 提交历史(作者、日期、提交信息)。适合需要深入理解历史代码变更原因的软件维护和重构任务。

包名
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.