DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Session Insights — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

dsh-session-insights

Session Insights

Local-first, evidence-backed session retrospectives for DeepSeek Harness

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:GreenLv/dsh-session-insights#f70a5b802c7bdb9112ac1915a1e09786f3a788b1
READMECompatibilityVersions

Compatibility and provenance

Session Insights is published as dsh-session-insights and currently resolves to version 0.4.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/20/2026

Versions

0.4.0stable
9/20/2026
0.3.2stable
9/11/2026
0.3.0stable
8/25/2026
Show 1 more versionCollapse versions
0.2.0stable
8/21/2026

Related plugins

Loading related plugins…

Latest
0.4.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Contextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)

README

dsh-session-insights

简体中文 | Introduction | Changelog

Run /session-insights to turn DeepSeek Harness session history into a local workflow review. The Bundle reads sessions through DSH's sessionQuery service and writes a self-contained HTML dashboard plus companion JSON.

It helps answer questions such as:

  • What kinds of work am I doing with DSH?
  • Which projects and workflows take the most effort?
  • Where do tool failures, retries, or unfinished work appear?
  • Which practices are working, and what should I try next?

This is behavioral review, not telemetry. It is not a live monitor, a billing calculator, or a claim that it can judge the quality of your work.

Scattered session trails pass through an analysis lens and resolve into structured evidence cards and a clear report

What you get

The dashboard brings several views of the same evidence together:

ViewWhat it helps you understand
Overview and time comparisonSessions, task families, token usage, and changes between two periods
Work and workflow breakdownProjects, roles, representative workflows, and completion evidence
Usage patternsDaily active-time trends, session types, top tools, skill and plugin/MCP usage, file types, and local active hours
Wins and frictionEvidence-backed strengths plus failures, retries, and other signals worth investigating
RecommendationsDSH workflow suggestions tied to measured evidence, with prompts you can copy

Deterministic retrospective dashboard overview (synthetic data)

The HTML file contains its own styles and data, so you can keep it locally and open it without a server. A machine-readable JSON report is written beside it.

Install the Bundle

The 0.4.0 Bundle requires DeepSeek Harness and Node.js 20+ (or the host's stricter Node requirement), without Python. The optional file-log CLI still requires Python 3.11+.

DSH compatibility: The package targets 0.1.5-rc.2. Automated tests cover the new runtime; native-host acceptance is pending. See DSH compatibility.

Install the published Bundle into a DSH profile, then start that profile:

dsh plugin --profile web add dsh-session-insights
dsh web

To install from a reviewed source checkout instead:

git clone https://github.com/GreenLv/dsh-session-insights.git
cd dsh-session-insights
dsh plugin --profile web add .
dsh web

Then run this in the DSH composer:

/session-insights --days 30 --locale en

The command prepares bounded semantic batches, queues the current DSH agent to analyze them serially, and writes the final HTML/JSON under $DSH_HOME/insights/runs/<run-id>. Add --deterministic to skip the model-assisted stage. The command name intentionally differs from /insights, so this Bundle can coexist with dsh-insights.

The npm package has no install or build lifecycle script. The registry command installs the published Bundle; dsh plugin ... add . installs the current local checkout.

Availability

  • Install the published Bundle from npm.
  • Download versioned artifacts from GitHub Releases.
  • Find the public directory entry on dsh.pub.
  • Other verified community listings are recorded in the distribution ledger.

Permissions and dependencies

The Bundle analyzes sessionQuery snapshots in a Node.js worker. It does not start Python or a shell, and the worker receives an empty environment and no inherited Node startup arguments. DSH_SESSION_INSIGHTS_PYTHON, PYTHONPATH and Python startup files no longer affect native analysis. The optional Python CLI remains a separate workflow.

CapabilityScope
Sessions and filesReads selected snapshots in memory. Writes reports, bounded evidence and validated model outputs into marked directories under $DSH_HOME/insights/runs. It does not persist raw snapshots or create a shared semantic cache.
Path protectionRequires a direct, marked run directory; checks every artifact path and rejects links and special files. Batch IDs must belong to the run manifest. New directories/files use owner-only POSIX modes; Windows access follows the parent ACL.
Environment and credentialsThe host uses DSH_HOME or the OS home directory to locate storage. No interpreter discovery, environment forwarding, separate API key or credential-store calls are used by native analysis. Session content can still contain secrets; redaction is not a disclosure guarantee.
Network and modelsDeterministic analysis runs offline. The default semantic workflow sends bounded, sanitized evidence through the current DSH agent to its configured model provider, with that provider's data handling and costs. Use --deterministic to skip it.

The Bundle requires Node.js 20+ (or the host DSH's stricter requirement) and DSH's commands, tools and sessionQuery services. Native analysis has no additional npm runtime dependencies. Missing services, worker failure, unsafe paths or invalid semantic output stop the affected operation. Model output is validated before writing; a rejected replacement preserves any previously valid result. Explicit fallback produces a deterministic report marked as degraded.

A run accepts at most 2,000 selected snapshots and 64 MiB of serialized snapshot input. Reduce --days or filter --project when that limit is exceeded. Existing Python runs cannot be resumed by the native implementation: finish them through the CLI or start a new run. Native runs retain their own validated outputs for resumption, but do not reuse a cross-run semantic cache. Deterministic summary wording has been refreshed; the report schema and dashboard remain shared with the CLI.

Retention and cleanup

Reports and evidence remain on disk until explicitly deleted. Ask the agent to call session_insights_cleanup with a run's workdir to preview its files and bytes, then request deletion of that specific run to use confirm: true. Cleanup removes the whole marked run, including its report, and cannot be undone. It refuses unmarked legacy directories and linked entries. Other runs, source logs and the optional CLI's shared caches are preserved. Review old CLI artifacts separately before removing them.

The optional CLI still requires Python 3.11+ and zstandard>=0.23,<1 for compressed logs; jsonschema>=4.23,<5 is used only by development tests. Its bootstrap installer runs pip and manages its own skill/runtime directories. See Security Policy for the separate boundaries and STORE policy limits.

Privacy modes

Deterministic reports run offline. In native mode, complete raw snapshots are analyzed in memory and are not copied into the run directory. Choose how much session content the report and optional model stage may retain:

ModeReport contentSemantic analysis
redacted (default)Keeps bounded excerpts after anonymizing identity and paths and filtering secretsUses bounded, redacted evidence in the default semantic workflow; --deterministic skips it
metricsOmits excerpts and keeps aggregate measurementsDisabled; no semantic batches are created
localKeeps bounded local paths and text after secret filteringExplicit opt-in for a trusted local destination and configured model provider

The tool itself does not add an upload channel. If you use the optional semantic workflow, bounded evidence cleaned according to --analysis-privacy is analyzed by the model provider currently configured in DSH.

Reports are refused inside $DSH_HOME/sessions, so generated files cannot be mixed into the source log tree.

Native command

/session-insights [--days N] [--project PATH] [--privacy MODE]
  [--analysis-privacy MODE] [--analysis-depth LEVEL]
  [--locale zh-CN|en] [--deterministic] [--resume] [--no-open]

Project filters use the host operating system's path syntax. On Windows, pass a native path such as /session-insights --project C:/path/to/project; a POSIX-rooted path such as /path/to/project is rejected instead of silently matching no sessions.

The semantic workflow is the default. Invalid model output gets one repair opportunity and can then fall back explicitly to the deterministic report. The current session is counted for coverage but excluded from recommendations as meta-analysis.

Compatible CLI and Skill workflow

The v0.1 file-log CLI and Skill remain available for automation and environments that do not mount the Bundle:

DSH_HOME="${DSH_HOME:-$HOME/.dsh}"
python3 scripts/bootstrap.py install --dsh-home "$DSH_HOME"
CLI="$DSH_HOME/tools/dsh-session-insights/venv/bin/dsh-session-insights"

# Review the last 30 days and open an English dashboard
"$CLI" report --dsh-home "$DSH_HOME" --days 30 --locale en \
  --format html --output ./dsh-insights.html --open

# Limit the report to one project on macOS or Linux
"$CLI" report --dsh-home "$DSH_HOME" \
  --project /path/to/project --format html --output ./project-insights.html

# Produce aggregate metrics without excerpts or semantic batches
"$CLI" report --dsh-home "$DSH_HOME" --privacy metrics \
  --format json --output ./dsh-metrics.json

# Check the installation
"$CLI" doctor --dsh-home "$DSH_HOME"

The Windows PowerShell equivalent uses the managed Windows launcher and a Windows-native project path:

$Cli = Join-Path $env:DSH_HOME 'tools\dsh-session-insights\venv\Scripts\dsh-session-insights.exe'
& $Cli report --dsh-home $env:DSH_HOME --project 'C:\path\to\project' --format html --output .\project-insights.html

To remove only this project's managed directories:

python3 scripts/bootstrap.py uninstall --dsh-home "$DSH_HOME"

The installer manages only:

  • $DSH_HOME/skills/dsh-session-insights
  • $DSH_HOME/tools/dsh-session-insights

It refuses symbolic-link targets, overlapping roots, and existing unmarked directories. It does not overwrite another Skill.

Manual semantic review

The native command orchestrates semantic review by default. The CLI exposes each phase for debugging or automation:

dsh-session-insights semantic prepare --dsh-home "$DSH_HOME" --days 30 --workdir /safe/workdir
dsh-session-insights semantic validate-batch --workdir /safe/workdir --batch batch-001
dsh-session-insights semantic prepare-aggregate --workdir /safe/workdir
dsh-session-insights semantic validate-aggregate --workdir /safe/workdir
dsh-session-insights semantic finalize --workdir /safe/workdir --output report.html

Each model-produced JSON file is validated before it can enter the final report. Unknown evidence IDs, prohibited completion claims, malformed enums, and privacy leakage fail closed. If the semantic stage cannot finish, finalize --fallback records the degradation and preserves the deterministic report.

Current scope and limitations

  • Native input is the trusted DSH sessionQuery service; CLI compatibility input is the current session-log generation under $DSH_HOME/sessions — session.jsonl.zstd for generation 0, session.vN.jsonl.zstd for generation N, and the plaintext .jsonl forms when a home is configured without compression.
  • Output follows dsh-session-insights/1.
  • Token counts are deduplicated per (turn, step) and are usage measurements, not billing or quota figures.
  • The Dashboard and semantic prompt contract support zh-CN and en from the same report schema.
  • Reports infer patterns from available evidence; they do not prove intent, quality, task acceptance, or security.

Exact package, CI, native macOS, and focused native Windows evidence is kept in the v0.2.0 release acceptance record. Deterministic slash dispatch and rendered English DOM remain unverified natively on Windows. The historical v0.1 CLI/Skill evidence remains in the v0.1.0 acceptance record. Historical released-runtime compatibility evidence and its platform limits are recorded in the 0.1.5-rc.2 acceptance record.

DSH compatibility

We support only the explicitly verified minimum baseline or the latest DSH version after verification. We do not maintain historical DSH releases, promise compatibility across intervening versions, or treat a new release as supported before validation. Users on older hosts should upgrade to the verified baseline.

The package declares 0.1.5-rc.2 as its current DSH requirement. This exact range is also what DSH plugin markets display and enforce during installation.

ScopeDSH versionStatus
Package target0.1.5-rc.2Exact dependency requirement retained from 0.3.2
Source and automated tests0.1.5-rc.2New Node runtime covered by macOS, Linux and Windows CI
Native host acceptance of 0.4.00.1.5-rc.2Pending

0.4.0 retains generation 0–3 session-log support and replaces the native Python bridge with Node.js. The earlier macOS native workflow results apply to the Python implementation in 0.3.1/0.3.2. See native migration checks for the new runtime's test scope and remaining host checks.

Session log generations

One logical session can hold several immutable log generations. The reader selects exactly one, using the canonical filename rather than file timestamps.

SituationBehavior
Several canonical generations in one session directoryThe highest version wins; the session is counted once, and a migrated session is never summed twice
Generation 0 only (session.jsonl[.zstd])Read the retained log format; this does not imply support for an older DSH host
Noncanonical names (temporary, uppercase, leading-zero, .v0, session.lock)Never selected; an in-flight write cannot be mistaken for a committed generation
Newer than the supported generationReported and skipped, with a warning; the session is not silently reported from an older generation
Corrupt or undecompressable current generationReported as unreadable; the reader does not fall back to an older generation
Both compression encodings in one directoryReported as ambiguous; the session is not read
Several project directories claim one session idEach session directory is counted independently

Tool and usage counts retain historical events, while semantic evidence excludes replaced messages. DSH derives an ordered model-visible conversation (the surface) from its event log. Replacement endpoints refer to positions in that conversation, not a numeric range of event sequence numbers.

EventBehavior
system/messageCounted as system content; never user work, never excerpted, never leaked into titles or semantic evidence
user/message with source.kind == "user"A direct human prompt: counts as user work and may seed the title
user/message with any other source.kindSynthetic injected context (plugin, goal, skill catalog, subagent report, …): counted separately, excluded from user work and semantic evidence
assistant/attemptCounted as an attempt that committed no visible reply; never materialized as an assistant message, and its token usage is reported unavailable rather than estimated
assistant/messageCarries its step usage; usage is deduplicated per (turn, step) so a stream field cannot double-count
surfaceOp: "append"Normal surface growth
surfaceOp: {op: "replace", startSeq, endSeq}Compacted conversation leaves the semantic summary; historical tool and token event statistics are retained
session/end-seed with data.inherited: trueRecords the fork cut; untagged markers establish nothing
Unknown event typeCounted in coverage.unknown_record_types and reported, never silently ignored

npm download history

Cumulative npm download growth for dsh-session-insights

The cumulative chart is generated daily from the npm Downloads API. npm download counts measure registry requests; they are not counts of unique users or confirmed installations. The workflow can also be run manually if GitHub delays or disables a scheduled run.

Development and project docs

python3 -m pip install -e '.[dev]'
python3 -m unittest discover -s tests -v
python3 scripts/build_native_rules.py --check
npm test
python3 scripts/build_fixture.py --check
python3 scripts/audit_public_tree.py --root .
  • Changelog
  • Security policy
  • Contributing
  • Distribution notes

The test fixture is fully synthetic and reproducibly compressed.

License

MIT