DDDPG/dsh-plugins--plugins-dsh-insights ↗★ 0
dsh-insights
DSH plugin: replica of Claude Code's /insights command — cross-workspace session usage analysis powered by the global session-query corpus, with per-session LLM facet extraction (cached), 8 analysis prompts, and a self-contained interactive HTML report. Runs as a foreground /insights command in the session, orchestrated via insights_collect / insights_facet / insights_aggregate / insights_render / insights_run model tools with subagent-parallel facet fan-out.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DDDPG/dsh-plugins#543d4b046af0c67602be6d16cba7f6ed94239247&path:plugins/dsh-insights说明文档
阅读完整 README ↗dsh-insights
Replica of Claude Code's /insights for DeepSeek Harness: cross-workspace session usage analysis that writes a self-contained interactive HTML report.
Published on npm as dsh-insights@0.2.0 with a dsh.bundle.patch — one command installs and auto-mounts (takes effect on the next dsh start):
dsh plugin --profile web add dsh-insights
Local checkout (development): dsh plugin --profile web add ./plugins/dsh-insights, or ./scripts/install.sh web plugins/dsh-insights.
Usage
In any session:
/insights # analyze new sessions and generate the report
/insights --refresh # ignore facet cache; re-analyze everything
/insights --window 30 # last 30 days only (0 = all)
/insights --max 20 # analyze at most 20 new sessions this run
Loader config is optional — without it, outputs default under the harness home ($DSH_HOME/storages/insights/, else ~/.dsh/storages/insights/). To customize, add an id-targeted config patch in the profile's cordis.patch.yml (last write wins per row):
- insert:
- id: insights
name: 'dsh-insights'
config:
reportPath: !!js dshHomePath('storages/insights/report.html')
facetDir: !!js dshHomePath('storages/insights/facets')
# optional: cheaper model for facet/analysis (must be a pair)
# provider: deepseek
# model: deepseek-chat
| key | default | notes |
|---|---|---|
reportPath | $DSH_HOME/storages/insights/report.html | HTML report output path |
facetDir | $DSH_HOME/storages/insights/facets | per-session facet cache directory |
maxNewSessionsPerRun | 50 | cap on new sessions analyzed per run |
transcriptCharLimit |