Export sessions and turns as Excel workbooks, Markdown transcripts, JSON documents or zip bundles, filtered by workspace, session dates, conversation dates and full-text search. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-data-export
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:shawlj/dsh-data-export
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Filter sessions in DeepSeek Harness by workspace, session dates and conversation dates, then export whole sessions or selected turns as Excel workbooks, Markdown transcripts, JSON data or archivable .zip session bundles.

Screenshots
Sidebar entry
The export icon at the right of the workspace header; Ctrl+E and More actions → Export data open the same dialog.
Export dialog
Shown in the banner above: two date windows and search controls across the top, the session table with expanded turns in the middle, totals and the export button at the bottom.
Cost chart
Compare cost and usage across the selected sessions, with switchable metrics and sorting.
Features
- Three entry points: the icon at the right of the sidebar workspace header,
Ctrl+E(Cmd+Eon macOS), and Session menu → Export data in the session header, which opens the dialog and selects the current session. - Two date windows: session dates match sessions whose first and last records both fall inside the window; conversation dates match turns by their start time. Both apply together, each side can be left open, and ranges are validated against each other.
- Search: filter by title or session ID; with Search content enabled, matching sessions expand to the matching turns; optionally show sessions without turns.
- Table: session rows and expandable turns (turn number, timestamps, duration, provider/model, tokens, cache hit rate, cost, tool calls); column resizing, reordering, visibility, and header/selection colours (eight light/dark preset pairs or custom values).
- Selection: tick whole sessions or individual turns, copy rows or turns from the context menu, and see totals recalculated for the current filter.
- Export configuration: enable or disable each of the four worksheets; reorder, rename or hide any field, with the configuration persisted locally.
- Cost chart: compare cost and usage across selected sessions inside the app.
- Export: Excel workbook, Markdown transcript, JSON data or
.zipsession bundle. Choose a destination first; generation then runs in the background with percentage progress in the dialog header.
Requirements
| Item | Requirement |
|---|---|
| DeepSeek Harness | >=0.2.2-rc.1 <0.3.0-0 (engines.dsh in package.json) |
| Runtime | Web client shared by the desktop app and dsh web |
| Node.js | >=20 (bundled with the host) |
Install
Install from Settings → Plugins → Discover by searching for dsh-data-export, or install dsh-data-export from the plugin market. Enable the plugin afterwards; the sidebar icon appears once it is running.
Entry points and shortcut
| Entry | Location | Behaviour |
|---|---|---|
| Sidebar icon | Right of the workspace header | Opens or closes the export dialog |
| Shortcut | Ctrl+E by default |
Opens or closes the dialog; can be re-recorded, disabled or reset in the dialog |
| Session menu | Session header → More actions → Export data | Opens the dialog and selects the current session |
Usage
1. Choose the data range
- Workspace / path: all workspaces by default; narrow the list by workspace path when needed.
- Session dates: keeps only sessions whose start and end both fall inside the window; other sessions disappear from the table and from exports.
- Conversation dates: keeps only turns whose start time falls inside the window; sessions left without turns follow the Show empty sessions switch.
- Either window can be left empty to mean unbounded; an inverted range (start after end) blocks export.
2. Select and inspect
- Tick a row's checkbox to select the whole session; double-click or use the expand arrow to inspect and select individual turns.
- The context menu copies session information from session rows and the selected turns from detail rows. Totals cover the currently visible selection.
- Changing any filter clears the selection, so exports always match what the table shows.
3. Configure the export
The gear button next to Export opens Export field settings:
- Switch worksheets with the tabs; clear Export this sheet to skip one (at least one must remain).
- Drag fields to reorder, use
↑/↓for single steps, or type a custom header name. Clearing a checkbox hides only that column and keeps the remaining order.
4. Save and track progress
Selecting Export opens the system save dialog first (defaulting to the folder used last time, remembered across restarts). Generation starts only after a destination is confirmed, and the header shows Exporting in the background N% (Ns). Cancelling sends no request; when the file picker is unavailable or the destination rejects writes, the file is downloaded to the browser download folder instead.
Export formats
Excel workbook
| Worksheet | Contents | Frozen columns | Totals row |
|---|---|---|---|
| Sessions | Workspace, state, session ID, session, created/start/end, turns, API calls, tokens and cache, total, cost | First 8 (scroll starts at I2) | SUM for numeric columns; hit rate recomputed |
| Turns | Workspace, session, turn, request summary, response (opt-in), timestamps, duration, provider, model, tokens, cost, peak, priced | First 5 | Same as above |
| Daily | Date, turns, API calls, tokens, cache, total tokens, cost, peak calls | Header row | Same as above |
| Calls | Workspace, session, time, step, request summary, turn, tool calls, provider, model, tokens, cost, peak, priced | First 6 | Same as above |
Headers render on a single line with the same background as the in-app table. Long text (requests, responses, tool calls) is written in full up to 32,000 characters per cell, then clipped with a marker. The workspace column uses the workspace alias when one is configured and the folder name otherwise.
Markdown transcript
Each session yields a heading, its time range, a token and cost summary, then every turn with the request, the response and the tool calls, suitable for archiving or sharing.
JSON data (.json)
Writes one structured document (format, formatVersion, generator, generatedAt, the query windows, totals and a session array). Each session carries the complete records: id, title, path, creation and first/last record times, token and cost totals, and every turn with the full request, full answer, usage, cost and each API call's provider, model, tool names, tool arguments and the full tool result. Suited to downstream analysis; the workbook field settings do not apply.
Session bundle (.zip)
Each session yields its raw log files and attachments, preserving the host directory layout, for archiving, backup and migration. The plugin provides no import path.
Data and privacy
| Reads | Location |
|---|---|
| Session logs | ~/.dsh/sessions/ (or the sessions/ directory of the host data directory) |
| Workspace aliases | tables.workspaces in ~/.dsh/storages/workspace.json |
| Session titles and archive state | The corresponding storage and archive records under ~/.dsh/storages/ |
| Pricing | A price table bundled with the plugin; no network access |
| Writes | Location |
|---|---|
| Exported files | Only the destination chosen in the save dialog; the browser download folder when that is rejected |
| Summary cache | ~/.dsh/cache/dsh-data-export/sessions.json, used to speed up list loading |
| UI configuration | Browser localStorage and IndexedDB (see below) |
| Network | Detail |
|---|---|
| Outbound requests | None. No session content leaves the machine |
| Local endpoint | Bound to 127.0.0.1 only and guarded by an Origin same-origin check |
Local configuration
All keys start with dsh-data-export.:
| Key | Purpose |
|---|---|
columns.v2 / widths.v1 / widths.layout |
Column visibility, widths and order |
fields.v1 / sheets.v1 |
Per-sheet field order, header names and enabled state |
palette.v1 |
Header and selection colours |
fold.v1 / dialogsize.v1 |
Filter form collapse state and dialog size |
shortcut.v1 |
Keyboard shortcut |
charts*.v1 / metric*.v1 / cards.v1 |
Chart configuration and metric cards |
handles (IndexedDB) |
Handle of the last export folder |
Limitations
- Costs are estimated from the bundled price table; missing model or usage fields render as empty or unpriced.
- Charts stay inside the app and are not written into Excel workbooks.
- Remembering the export folder relies on the File System Access API; unsupported browsers fall back to the download folder.
- Session bundles are for archiving and migration; the plugin does not import them.
Development
npm pack --dry-run # inspect the published file set
node --check client.js # syntax check
Layout: index.js (host HTTP endpoints), client.js (web client UI), lib/ (session parsing, reports and the xlsx writer), locale/, docs/, assert/.
Third-party components
The bundled zstd decompressor and its licence are listed in THIRD_PARTY_NOTICES.md.
Licence
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.