github bowenliang123/dsh-context v0.65.0

latest release: v0.66.0
one day ago

Install / Update

Install the dsh-context plugin on DeepSeek Harness with released NPM package:

dsh plugin --profile web add dsh-context@latest

Update the dsh-context plugin:

dsh plugin --profile web update dsh-context@latest

What's New

image image

The Context Stats panel is rebuilt — a session flow diagram, a new Agent Network ledger, and several more stat cards that help both daily use and debugging read the session at a glance.

Features

  • Context Stats card rebuilt as a session flow diagram
    • The six-cell grid becomes a left-to-right flow: the Input / Output source cards (human inputs plus the whole session's file reads, writes, searches, and image reads; Context Events broken down by kind) feed the highlighted Current Session node (turns / steps / subagents), which drains into the two effect cards — connected by measured bezier ribbons that flip to a top-to-bottom stack on narrow panes.
    • Tool Calls lists the three most-called tools with an overflow pill; Cost carries the family figure and, when a subagent subtree reports, the this-agent / subagents split.
  • New Agent Network cost card
    • The flow's cost node is a three-row team ledger: the family's billed tokens and estimated cost in the header, then one row per scope — the current agent, and the whole subagent subtree with its session count — each pairing its billed tokens with the estimated cost.
    • The card shares its name with the big Agent Network card at the tab's foot (one i18n key, so the two can never drift), and clicking it scrolls the foot card into view.
image
  • Session cache-hit and output speed on the cards
    • The token card's title row gains the session's cache-hit share — the harness chat line's own reads-over-billed formula; the timing card's throughput chip now reads 输出速度 N tok/s (zh) / TPS N tok/s (en) with the expansion on the tooltip.
  • Find-in-text on the rich text detail cards
    • A ctrl+f-style lens scoped to one section: debounced query, in-place highlights (capped at 500 with a "+" counter), Enter / Shift+Enter or chevrons cycling the active match, Escape to fold — and the copyable source stays byte-identical.
  • Occupancy percent at one decimal
    • The context occupancy reading now mirrors the kernel's own derivation on a 0.1 grid — a 101.6k / 1.0M session reads 10.2% instead of 10%; the Agent Network rings read the same helper.
  • Insights: every card aggregates at the team scope (#120)
    • Each session card folds its whole subagent subtree into its billed tokens and estimated cost; the KPI band, last-7-days usage chart, heatmap, composition split, and the token sort all read the same family scope — with nothing counted twice, since subagent-origin sessions never list.
    • The card stats are renamed to "Total Tokens / Total Est. Cost"(Token 总用量 / 总预估费用),matching the Context tab's scope, so the same label no longer means two different numbers.
  • Insights dashboard spans the pane's full width
    • The 960px content cap is gone; the dashboard uses the whole pane.

Fixes

  • Host cold reads gated through one shared FIFO with a heap high-water mark (#121)
    • A large session's cold backfill, with a projection cache that never evicted, could push the host heap to 2.6–3 GB and FATAL; every cold read now serializes through one shared FIFO gate with a heap high-water mark.
  • The /context modal docks between both shell sidebars
    • With the right Sidebar open, the mask was inset on the left sidebar alone and the dialog's right half slid underneath it; the mask now parses the frame template's trailing track (clamped) and the card resolves its width against the backdrop.
  • Reveal scrolls through the ancestor that actually scrolls
    • On layouts where an outer container scrolls (the web app's conversation scroller), the Agent Network jump and the chat→context reveal silently no-op'd; the walk now requires scrollHeight > clientHeight, so the first ancestor that can actually move takes the rect delta.
  • Insights usage chart day labels aligned
    • The chart's day labels line up with the columns again, and the title gets its breathing room.

Changes

  • The Context Stats board's cache-hit cell is dropped — the same reading now lives on the token card's title corner.

Commits

  • chore: release v0.65.0 (65d1c77)
  • fix(client): dock the /context modal between both shell sidebars (a28116e)
  • fix(client): reveal through the ancestor that actually scrolls (fb0592f)
  • feat(context): name the team card after its foot namesake and jump to it (39dc891)
  • fix(host): gate every cold read through one shared FIFO with a heap high-water mark (#121) (dcd7fff)
  • feat(insights): rename the card stats to Token 总用量 / 总预估费用 (a4bbcf4)
  • feat(insights): read every card and aggregate at the team scope (ef8e1d2)
  • feat(context): rebuild the cost card as the Agent Team ledger (3dc892c)
  • feat(context): rebuild the Context Stats card as a session flow diagram (c4ad2e8)
  • docs: enhance AGENTS.md with detailed coverage report example (168051d)
  • feat(browser): find-in-text bar for the rich text detail cards (3aed1bd)
  • feat(insights): drop the 960px content cap, span the pane's full width (199bdbc)
  • feat(context): read the occupancy percent at one decimal, off the kernel's own value (fbb0030)
  • docs: streamline AGENTS.md, merge one-liner sections and cut redundancy (eb22c55)
  • docs: update AGENTS.md with improved coding guidelines and pre-commit checks (6b45579)
  • refactor(stats): drop the cache-hit cell from the Context Stats card (984f31c)
  • feat(stats): session cache-hit on the token card, plain rate figure on the timing card (ef72a7b)
  • fix(insights): align the usage chart's day labels and uncramp the title (33f6145)
  • ci: auto-close issues whose title matches a blocked pattern (a4c2b67)

v0.64.0...v0.65.0 · 19 commits

Contributors

Don't miss a new dsh-context release

NewReleases is sending notifications on new releases.