dsh-context 0.75.1 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -6
- package/lib/client.js +18 -17
- package/lib/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
[`dsh-context`](https://www.npmjs.com/package/dsh-context) provides full context lifecycle management features.
|
|
16
16
|
- **Context Insights page** — the cross-session overview as a first-level sidebar panel (beside Plugins and Automation tasks): KPI band with a 7-day token/cost usage chart, activity heatmap, aggregate composition ring, and filterable session cards that jump straight into any session.
|
|
17
|
-
- **Context tab** —
|
|
17
|
+
- **Context tab** — a UI context dashboard for DeepSeek Harness's context stats, composition, trend, events, messages, and commands.
|
|
18
18
|
- **Fleet tab** — the agent family's own page: the current agent, its parents, and every subagent as one live card each.
|
|
19
19
|
- **Context panel** — the same dashboard as a right-sidebar tab: pick **Context** on the sidebar's guide page and the panel opens beside the chat, agent network included.
|
|
20
20
|
- **`/context` command** — the slash command shows the context model for current context composition and recent context evolution.
|
|
21
21
|
|
|
22
22
|
## Install / Update
|
|
23
23
|
|
|
24
|
-
### Install on
|
|
24
|
+
### Install on DeepSeek Harness web or desktop
|
|
25
25
|
|
|
26
26
|
Fill `dsh-context` in the **Add plugin** wizard's search box, and click **Install**:
|
|
27
27
|
|
|
@@ -50,10 +50,10 @@ Five surfaces, one story — what your agent is carrying, how it got there, and
|
|
|
50
50
|
| Where | What you get |
|
|
51
51
|
| --- | --- |
|
|
52
52
|
| **Context Insights page** | Every session at a glance: usage, cost, cache hit, daily activity, and per-session context profiles — filtered by range, day, group, or search, one click to jump in. |
|
|
53
|
-
| **Context tab** | The full dashboard: stats, composition, per-request trend, events,
|
|
53
|
+
| **Context tab** | The full dashboard: stats, composition, per-request trend, events, file activity, and command executions — in every session. |
|
|
54
54
|
| **Fleet tab** | The agent network: the current agent, its parents, and every subagent, live. |
|
|
55
55
|
| **`/context` command** | A centered modal with the same composition and context browser, without leaving the chat. |
|
|
56
|
-
| **Preferences card** | Per-user defaults: the
|
|
56
|
+
| **Preferences card** | Per-user defaults: the panel entry, Insights range, trend and sort defaults, and the system prompt prefix/suffix joined around every session. |
|
|
57
57
|
|
|
58
58
|
## 🗂️ The Context Insights page
|
|
59
59
|
|
|
@@ -87,6 +87,9 @@ Open any session and click the **Context / 上下文** tab:
|
|
|
87
87
|
| **Context Browser** | What any request was *actually* assembled from. |
|
|
88
88
|
| **Context Events** | When and why the window changed. |
|
|
89
89
|
| **File Activity** | What the agent *did* to your files. |
|
|
90
|
+
| **Command Executions** | What the agent ran, how each run ended, and which programs it leaned on. |
|
|
91
|
+
|
|
92
|
+
The cost estimate follows one documented rule set: [How model pricing is mapped](docs/model-pricing-mapping.md).
|
|
90
93
|
|
|
91
94
|
The headline occupancy and composition read the **same official token-meter projections as the chat composer's context ring** (`contextPressure` / `contextBreakdown`), so the figures always match what the ring tells you — the card's percentage is that same occupancy, printed with one decimal.
|
|
92
95
|
|
|
@@ -166,16 +169,34 @@ One row per touched file — read, written, or searched — aggregated up to whi
|
|
|
166
169
|
- **Click a row** to expand its full operation log — every op jumps straight to the exact tool result in the Context browser.
|
|
167
170
|
- **Click a file name** to open its preview in the right Sidebar, exactly as the built-in Files sidebar does — the same viewer, the same tab-per-file behavior. On a harness without that column the name opens on your system as before.
|
|
168
171
|
|
|
172
|
+
### 🖥️ Command Executions — what the agent ran
|
|
173
|
+
|
|
174
|
+

|
|
175
|
+
|
|
176
|
+
Every shell and code run with its status, wall time, and step stamp, plus a session summary, attention shortcuts, and a program ranking. The ranking stays global while the search and status chips narrow the list; clicking a program drills into it and marks the row — the ranking never collapses under its own filter.
|
|
177
|
+
|
|
169
178
|
## 🚢 The Fleet tab
|
|
170
179
|
|
|
171
180
|
Open any session and click the **Fleet / 编队** tab (right of **Context**) — the agent family on a page of its own, with room for the collaboration surfaces that follow:
|
|
172
181
|
|
|
173
|
-

|
|
183
|
+
|
|
184
|
+
A one-line summary opens the page — agents and their status, live context, estimated cost, and task progress — then hands the same family to four linked surfaces: **Agent Network**, **Fleet Members**, **Tasks**, and **Agent Comms**. Picking an agent on the graph or the member board narrows the tasks and channels to that agent, so the page answers for one member at a time.
|
|
174
185
|
|
|
175
186
|
### 🕸 Agent Network — the family portrait
|
|
176
187
|
|
|
177
188
|
The current agent, its parents, and every subagent — one card per agent: its title, live context size and window occupancy, a composition bar, and how long it has run for and how many steps it has taken. Edges fan out from each parent in the lineage's color — hover a card to light its whole chain and read the full breakdown in the detail strip; click to jump into that session's own Context tab. Running agents breathe with a green pulse on their incoming edge and turn over the harness's own rolling spinner beside their title, which settles into the same green dot the header's subagent list uses once the work is done; narrow panes fold the family into tidy rows — never a horizontal scrollbar.
|
|
178
189
|
|
|
190
|
+
### 👥 Fleet Members & Tasks — who is doing what
|
|
191
|
+
|
|
192
|
+
Each roster member's card carries its role (lead or teammate), model, latest reply, run time and steps, and active task count; the family's other agents sit below in the same card shape. A card's buttons open that agent's chat in the sidebar or the whole view, search and the status chips narrow both sections, and the sort menu orders the other agents by spawn order, tokens, duration, steps, or recency. The **Tasks** board puts team tasks and subagent delegations in the same place — owner groups, status filters, and blocked-by links that light the whole prerequisite chain when you focus a task. Click a task to open its full description in place, raw or rendered, and the board scrolls it to the front under a sticky owner header.
|
|
193
|
+
|
|
194
|
+
### 📡 Agent Comms — who said what to whom
|
|
195
|
+
|
|
196
|
+
The comms card reads the family's session logs automatically — no scan step. Team relays, mailbox deliveries, and the runtime's settlement notices merge into channels: each card pairs the lead or current agent with one counterpart, labels both sides, and shows how many messages each side sent. The timeline names both parties and their roles. Clicking any message opens the full record inline below it — the session log it came from and its sequence, a notice when the runtime wrote the settlement rather than the child, the complete closing report (with its structured result or diagnostic), and participant cards that open that agent's chat in the sidebar or the whole view. Filter by message kind or text, flip the order, and the shared agent pick from the graph or member board narrows the whole hub; older history and clipped excerpts are disclosed instead of silently truncated.
|
|
197
|
+
|
|
198
|
+

|
|
199
|
+
|
|
179
200
|
The right Sidebar's **Context** panel keeps the same card inline, so the family stays one click away while you read the chat. Don't want the tab at all? Turn **Fleet tab** off in the preferences card — the card then lives on in that panel, and the Context tab's family cell opens it there whenever a Sidebar is served.
|
|
180
201
|
|
|
181
202
|
## ⌨️ `/context` command
|
|
@@ -190,7 +211,7 @@ A centered dialog opens with the **Current Composition** card and the **Context
|
|
|
190
211
|
|
|
191
212
|
## ⚙️ Settings
|
|
192
213
|
|
|
193
|
-
The **Context** preferences card holds this plugin's per-user settings — the **Context panel entry** (the **Context** conversation tab, the right Sidebar panel, both, or Hide for neither — the reply-row jump goes with it), the **Fleet** tab's own Show/Hide switch (the panel entry never gates it), the **Context Insights** default range (Today / Last 7 days / Last 30 days / All, Last 30 days unless changed; picking a preset on the page writes it back), trend granularity (Step/Turn), trend mode (Total/Delta), the trend duration curve (shown by default), tool and File Activity sort, and the Context Insights Show/Hide switch. It lives on the **Plugins** page: the sidebar **Plugins** entry → the **dsh-context** bundle's page → its **Configuration** section (the card is served by the entry's live Config form).
|
|
214
|
+
The **Context** preferences card holds this plugin's per-user settings — the **Context panel entry** (the **Context** conversation tab, the right Sidebar panel, both, or Hide for neither — the reply-row jump goes with it), the **Fleet** tab's own Show/Hide switch (the panel entry never gates it), the **Context Insights** default range (Today / Last 7 days / Last 30 days / All, Last 30 days unless changed; picking a preset on the page writes it back), trend granularity (Step/Turn), trend mode (Total/Delta), the trend duration curve (shown by default), the trend auto-overview step threshold, the Context Browser diff baseline, tool and File Activity sort, and the Context Insights Show/Hide switch. It lives on the **Plugins** page: the sidebar **Plugins** entry → the **dsh-context** bundle's page → its **Configuration** section (the card is served by the entry's live Config form).
|
|
194
215
|
|
|
195
216
|
The **System Prompt · Prefix / Suffix** rows hold free text joined at the very start / end of every session's system prompt, for all agents (subagents included) — a per-deployment persona or behavioral rule that rides the harness's own prompt assembly. Edits apply from the next turn; leave a row empty to disable it.
|
|
196
217
|
|