Repository navigation
Conversation
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.
Summary
Adds
entire-agent-dsh, an external agent integration for DeepSeek Harness (DSH).DSH has no repository-local hook command. The integration pairs with the
@sredevopsorg/dsh-entireHost plugin: the plugin reads
.entire/dsh-hooks.jsonand forwards lifecycleevents to
entire hooks dsh <hook>.entire-agent-dshresolves the native DSHsession log (
$DSH_HOME/sessions/<project>/<session>/session.vN.jsonl.zstd),decodes its concatenated Zstandard frames, and materializes a normalized JSONL
cache for Entire.
What it implements
session-start,turn-start,turn-end,compaction,session-end,subagent-start,subagent-end(the last two declared for forwardcompatibility; the host bridge does not emit them yet). Marker installation is
idempotent and rewrites stale hook sets.
injections excluded), modified files (
write,edit,str_replace_editor,apply_patch), summaries, and per-call token usage.results and per-call usage/model.
$DSH_HOME/entire/sessions/, withtolerant zstd decoding, symlink-resolved lookup/containment, and safe filenames
for unsafe/Windows-device session IDs.
entire session resumere-frames a restored transcript into DSH'snative store (rewriting header
id/cwdto the current physical checkout)when no native generation exists. Existing live generations are never
overwritten.
Verification
gofmt,go vet,golangci-lint— clean.go test ./...— pass (unit tests cover paths, zstd/torn tails, hooks,analyzers, compact format, symlinked checkouts, native restore).
external-agents-tests verify— all suites pass: hooks, mandatory, optional,subagent, transcript.
scripts/verify-dsh.shagainst Entire CLI 0.12.2 — creates a session,checkpoint, compact transcript, token usage, and
Entire-Checkpointtrailer.Dependency
github.com/klauspost/compress(BSD-3-Clause) for Zstandard decoding; adoc/dependency_decisions.ymlentry is included. The Entire CLI already uses thesame package.
Known limitations / follow-ups
the session workspace; start DSH at the repository root. The plugin also
resolves
entire/entire-agent-dshfrom the HostPATH.turn-startonly for human/user/prompt sources.Scheduled/webhook/team turns need a companion change in
dsh-pluginsto widenthe source-kind set.
session-enddepends onsession/disposed, which long-lived Web Hosts may notemit.
--resume; interactive resume remains opening thesession in
dsh web.read-transcriptcall.This is a new-agent integration; happy to adjust naming, capability choices, or
test wiring to match maintainer preferences.