Repository navigation
feat(dsh): add DeepSeek Harness adapter - #80
Open
zhiganovsasha wants to merge 1 commit into
Open
zhiganovsasha wants to merge 1 commit into
zhiganovsasha wants to merge 1 commit into
Conversation
DeepSeek Harness (DSH) desktop app stores sessions under ~/.dsh: - ~/.dsh/sessions/<munged-cwd>/session-<uuid>/session.v4.jsonl.zstd — full zstd-compressed JSONL event log - ~/.dsh/storages/session_projcache/sessions/session-<uuid>.json — metadata projection (title, working directory, model, token totals) The adapter: - lists sessions from the event logs plus the metadata projection, including sessions whose log was pruned (metadata-only) - decompresses the event log with the pure-JS fzstd decoder (no native bindings) and builds messages from user/message and assistant/message events (text, reasoning, tool-call with argument keys), appending tool/result previews inline by call id - tracks the active model from request/header and model/selection events and attaches it to assistant messages - attaches session-level token usage totals (uncached input, output, cache read/write) to the last assistant message since the event log has no per-message usage Verified on DSH desktop 0.2.1-rc.5 (macOS): 17 sessions with full message, model and token history appear in the dashboard.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an adapter for the DeepSeek Harness (DSH) desktop app, a local-first coding agent that was not covered by any existing editor adapter.
DSH stores sessions under
~/.dsh:~/.dsh/sessions/<munged-cwd>/session-<uuid>/session.v4.jsonl.zstd— full zstd-compressed JSONL event log~/.dsh/storages/session_projcache/sessions/session-<uuid>.json— metadata projection (title, working directory, model, token totals)How
sessionStats)fzstddecoder (zero native bindings, ~10 KB) and builds messages fromuser/messageandassistant/messageevents (text, reasoning, tool-call with argument keys), appendingtool/resultpreviews inline by call idrequest/headerandmodel/selectionevents and attaches it to assistant messagesTesting
Verified on DSH desktop 0.2.1-rc.5 (macOS): 17 sessions with full message, model and token history appear in the dashboard.
Notes
fzstd ^0.1.1(pure JS, no native build step — unlikebetter-sqlite3there is nothing to compile)