dsh-context Context Insights
See exactly what your DeepSeek Harness agent's context window carries — composition, evolution, cost and multi-agent collaboration — without leaving the chat.
- Source repo
- bowenliang123/dsh-context
- Stars
- ★ 5.5k
- Last updated
- today
- FARS reviewed
- Nov 24, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 59/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specific
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A long session is degrading: switch Context Timeline to Delta mode to see how much each compaction reclaimed and which category keeps growing.
- Not a fit if
- Teams not running DeepSeek Harness — the plugin only runs inside dsh
- Users pinned to a dsh release older than 0.2.0-rc.2
- Organizations wanting one dashboard across several agent platforms
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-24
- Source review
- 59/100 · Major gaps
What does this agent do, and when should you use it?
dsh-context is an Apache-2.0 context-insight plugin for DeepSeek Harness, distributed as the npm package dsh-context and installed into an existing dsh instance. It turns Harness's own session data into readable surfaces: a first-class Context Insights page in the sidebar, Context and Fleet tabs on every session, a right-sidebar Context panel, and a /context slash-command modal — all sharing one composition model and context browser. Figures come from Harness's official token-metering projection (contextPressure / contextBreakdown), so occupancy and composition match the ring chart beside the chat input one decimal at a time; cost is estimated from models.dev price lists, with DeepSeek's peak/off-peak split called out separately. Beyond usage, it reconstructs per-request composition, compaction and injection events, file activity and command executions from the persistent session logs, while writing only compact per-session summaries into the projection cache so long sessions stay cheap. The Fleet tab puts the current agent, its parent and every child agent on one network graph and one collaboration timeline with tasks, delegation records and event logs.
The plugin reads dsh's projection cache and persistent session logs. Only a compact summary per session (composition, counts, cost/timing, model info) goes into the cache; heavy per-event detail — surface text, request breakdowns, file operations, command programs, spans — is re-aggregated in segments from the logs when the relevant card opens. Metering uses Harness's official contextPressure / contextBreakdown projection, and cost is estimated against models.dev pricing. On top of that it renders five kinds of output:
- Context Insights page (a first-class sidebar panel next to Plugins and Automation tasks): a KPI bar (billed tokens, estimated cost, cache hit rate, turns, scoped to today / 7 days / 30 days), a 7-day paired bar chart, an 8-week activity heatmap, clickable skill-loading / tool-call / command-execution ledgers, a Context Composition split, and session cards with composition rings.
- Context tab on any session: Context Stats, Token Stats, Timing Stats, Current Context, Context Timeline (Step/Turn × Total/Delta, event flags, overview mode, and provider-reported Actual Prompt / Output / Cache once a step is pinned), Context Browser (seven collapsible categories, tool source chips, Raw/Markdown toggle, image and file attachment cards, DNA flat mode), Context Events, File Activity and Command Executions.
- Fleet tab: an Agent Network graph, cross-agent collaboration swimlanes, collaboration tasks with blocked-by chains, and an event-inspection stream.
- Right-sidebar Context panel and the /context command modal, reusing the same composition bar and browser.
- Preferences card: per-user defaults for panel entry point, timeline granularity and mode, default time range and ordering, plus System Prompt Prefix / Suffix free text spliced onto the start and end of every session's system prompt, sub-agents included.
File activity folds native tools, the Minimal preset's str_replace_editor and nested calls inside PTC run_code into the same per-tool rows; tool-definition source chips are monitored live through tools.register(), distinguishing tool-*, dsh-*, mcp:<server> and the exact registering plugin.
- A long session is degrading: switch Context Timeline to Delta mode to see how much each compaction reclaimed and which category keeps growing.
- Budget owners reconciling daily spend can read billed tokens, estimated cost and cache hit rate off the KPI bar over 7 or 30 days.
- Someone hunting prompt bloat sorts tool definitions by size in Context Browser to find which plugin or MCP server contributes the most schema.
- Debugging a multi-agent flow: the Fleet tab's Agent Network and collaboration swimlanes show what a child agent was delegated and what it reported back.
- Reviewing what an agent actually did to a repo: File Activity gives per-file read/write/search rows with added/removed line counts, and Command Executions lists every program run.
- Teams wanting consistent behaviour add a System Prompt Prefix / Suffix once in the Preferences card and have it apply to every session and sub-agent.
How do you install or deploy this agent?
dsh-context ships as the npm package dsh-context and installs into an existing DeepSeek Harness instance. Requirement: @deepseek-ai/dsh 0.2.0-rc.2 or newer (the 0.2.0 and 0.2.1 lines were verified on their rc.2 builds, the 0.2.2 line on rc.1 and rc.3).
Install with the dsh CLI:
dsh plugin --profile web add dsh-contextUpdate an existing install:
dsh plugin --profile web update dsh-context@latestThen start the Web UI — no build step and no restart required:
dsh webAlternatively, in the DeepSeek Harness web or desktop app open the Add plugin wizard, type dsh-context into the search box and click Install. The plugin needs no extra API key; cost estimation reuses the model pricing and account information dsh already has.
How do you use this agent?
Once installed there are five entry points telling the same story — what the agent is carrying, how it got there, and how it is spent.
- Click Context Insights in the sidebar panel list (the same level as Plugins and Automation tasks) for the cross-session overview: KPI bar, 7-day chart, activity heatmap, already-executed ledger tiles and session cards. Clicking a time-range preset writes it back to your saved preference.
- Open any session and pick the Context tab for composition, timeline, events, file activity and command executions. Pinning a step on the timeline reveals the provider-reported Actual Prompt / Output / Cache next to the estimate.
- Pick the Fleet tab for the agent family: network graph, collaboration swimlanes, collaboration tasks and event inspection.
- To stay in the chat, run the slash command:
/context- To change defaults, go to Plugins → dsh-context → Configuration and use the Context preferences card: panel entry point (Context tab / right Sidebar / both / hidden), the Fleet tab's own toggle, default Insights time range, timeline granularity and mode, ordering options, and the System Prompt Prefix / Suffix fields. Changes apply from the next turn; leave a Prefix/Suffix line empty to disable it.
The UI is available in Simplified Chinese, English, Japanese, Spanish, French, German, Russian and Portuguese, though switching languages requires dsh 0.2.2+.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Numbers line up with the harness itself: occupancy and composition read contextPressure / contextBreakdown, so they match the ring chart next to the chat input rather than computing a parallel figure.
- Cache-conscious design — only compact per-session summaries enter the projection cache, while heavy per-event detail is loaded from persistent logs in segments on demand.
- The Context Timeline's event flags plus Step/Turn × Total/Delta views are direct evidence for pinpointing which step and which category changed during debugging.
- File Activity covers native tools, the Minimal preset's str_replace_editor and nested PTC run_code calls, with per-purpose counts and estimated added/removed lines.
- The Fleet tab converges parent and child agents, tasks, delegations and messages onto one timeline instead of forcing you through raw logs.
- Zero-build, no-restart install via a single
dsh plugin add, and an eight-language UI.
- Hard-bound to DeepSeek Harness: it cannot run outside dsh and offers no path into Claude Code, Codex or other agent runtimes.
- Version-sensitive — it requires a pre-release dsh line (0.2.0-rc.2 and up), and language switching needs 0.2.2+, with older builds limited to Chinese and English.
- Category breakdowns use dsh's fixed-density heuristic; exact provider figures appear only for a pinned step.
- Cost estimates depend on the models.dev price list, and only DeepSeek distinguishes peak/off-peak billing (peak at 2×), so other models get coarser estimates.
- The feature surface is broad (insights page, two tabs, sidebar panel, modal, preferences), so new users need a little time to learn which entry point to use when.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| dsh-context Context Insights This agent | 59 · Major gaps | Agent plugin / skillFree + model costs | ★ 5.5k | today | TypeScript | — |
| DeterminFlow | 73 · Some gaps | Desktop appFree + model costs | ★ 981 | 2mo ago | Python | — |
| LeanCTX Context Intelligence | 69 · Some gaps | CLIFree + model costs | ★ 4k | today | Rust | Codex · Claude Code · OpenAI API · Claude API |
| EGC — One Brain for Every AI Coding Agent | 76 · Good | CLIFree | ★ 70 | today | JavaScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The plugin works through dsh slots/locale/sessionProjections/configForms injection points and shows no filesystem or arbitrary network access, so least_privilege scores 2; however the System Prompt Prefix/Suffix setting is spliced into every agent's system prompt (including subagents), a deployment-level behavior change with no confirmation step, so user_confirmation is 2. The README states only compact summaries go into the projection cache while detail is reloaded from persistent logs, giving data_flow_transparency 2. The plugin reads and displays session messages, tool outputs, attachments and account balance with no documented redaction or masking, so sensitive_data_handling is deducted to 1. The only runtime dependency is zod, but peerDependencies use complex rc ranges and no lockfile or audit evidence is present, so dependency_security is 1. External effects are balance/pricing lookups and prompt injection, both documented and configurable, so external_effects is 2. Rollback is limited to clearing settings or uninstalling, so rollback is 1. The README cites sources for the DeepSeek Harness recommendation, pricing mapping and tool attribution, so source_attribution is 2.
The code is coherent and provides fallback definitions for older dsh releases, with a compatibility doc as single source of truth, so self_consistency is 2. peerDependencies point at several @deepseek-ai packages with rc version ranges and no lockfile or audit evidence in the repo, so dependency_availability is 1. refreshCostDependents in src/client/index.ts swallows errors with an empty catch, and user-facing failure messaging is limited, so failure_messages is 1.
The README details five entry points, settings and multi-language support for dsh users, so audience_and_scenarios is 2. Capability boundaries are set by the compatibility doc, estimate-vs-actual notes and cache notes, so capability_boundaries is 2. The /context command, tabs, sidebar and settings toggles give clear triggers, so trigger_precision is 2. Environment requirements (node 22.19+, dsh 0.2.0-rc.2+, web platform) are stated in package.json and README, so environment_fit is 2.
The README is well structured with a docs directory and screenshots, so information_architecture is 2. Install wizard and dsh CLI commands are clear, so install_notes is 2. Package name, exports and version are stable, so naming_stability is 2. There are videos, screenshots and usage tables but no standalone FAQ, so examples_and_faq is 2. Compatibility, estimation and caching limitations are documented, so known_limitations is 2. A full Apache-2.0 LICENSE text is present, so license is 3. package.json carries a version but there is no CHANGELOG in the repo, so versioning_changelog is 1. Author and repository are visible but publisher identity is unverified, so maintenance_responsibility is 1.
Dashboards, timeline, context browser and the /context modal provide actionable context insight, so output_usability is 2. The plugin adds real value for dsh users understanding context composition and multi-agent collaboration, so marginal_value is 2. Summary caching and on-demand loading control overhead, and the README documents cost estimation, so cost_benefit is 2.
The README gives links or doc pointers for the official recommendation, pricing mapping and tool attribution claims, so claim_traceability is 2. README, package.json, tests and docs agree on version, compatibility and feature descriptions, so cross_source_corroboration is 2. The docs explicitly separate estimated values from provider-reported actuals, so fact_inference_separation is 2.
- The System Prompt Prefix/Suffix is spliced into every agent's system prompt (including subagents), a deployment-level behavior change that should be scoped before enabling.
- The plugin reads and displays session messages, tool outputs, attachments and DeepSeek account/API balance with no documented redaction; assess for sensitive environments.
- Publisher identity is unverified and the repo has no lockfile or dependency audit evidence; dependency security needs independent review.
- src/client/index.ts contains empty catch blocks that swallow errors, so users may not get clear failure feedback.
- There is no CHANGELOG in the repo; version history must be inferred from package.json and the compatibility doc.
FAQ
Are the token numbers exact or estimated?
Does it send my session contents anywhere?
Which dsh versions are supported?
Can I turn parts of the UI off?
Do I need extra credentials or a build step to install it?
dsh plugin --profile web add dsh-context pulls it from npm with no build and no restart; the plugin reuses dsh's existing model configuration and account information for cost estimation.Is dsh-context Context Insights free?
Is dsh-context Context Insights open source?
Is dsh-context Context Insights safe to use?
Is dsh-context Context Insights still maintained?
Who makes dsh-context Context Insights?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.