DeepSeek Harness plugin

dsh-trajectory-persistence

DeepSeek Harness (dsh) plugin: persist session trajectories to S3/OSS (JSONL) and OTel GenAI spans (OTLP).

Jump to install

Source facts

Repository
aws-cnug-o11y/dsh-trajectory-persistence
Latest update
Aug 18, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-21

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/aws-cnug-o11y/dsh-trajectory-persistence
Plugin: dsh-trajectory-persistence
Author: aws-cnug-o11y

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-trajectory-persistence

![npm](https://www.npmjs.com/package/dsh-trajectory-persistence) ![docs](https://aws-cnug-o11y.github.io/dsh-trajectory-persistence/) ![license](./LICENSE) ![CI](https://github.com/aws-cnug-o11y/dsh-trajectory-persistence/actions/workflows/ci.yml)

Trajectory persistence plugin for the DeepSeek Harness (dsh). Observe-only: it never writes to a session — it persists every session's trajectory to two independently toggleable sinks:

  • S3 sink — archive the raw trajectory to S3 / OSS / MinIO. Two modes:

ship tails the official jsonl backend's on-disk artifact read-only and uploads byte-faithful zstd frame segments + manifest, restorable on another machine with the bundled sync-down CLI; push (legacy, default) buffers the live event stream and uploads JSONL part files with batch, backoff retry, and a local dead-letter directory.

  • OTel GenAI sink — spans following the

OpenTelemetry GenAI semantic conventions (turn / model-call / tool tree with token usage and error status), exported over OTLP HTTP/protobuf to Jaeger, an OTel Collector, Langfuse, or SigV4-signed straight to AWS CloudWatch / Bedrock AgentCore Observability — no collector required.

Extras: settings hot-reload with per-sink rebuild, /trajectory-status slash command, sync-down restore with no-overwrite / prefix-append / conflict-refuse semantics.

Install

dsh plugin --profile web add dsh-trajectory-persistence

All sinks default to disabled. Enable what you need in $DSH_HOME/settings.yaml (applies live, no restart):

trajectory-persistence:
  sinks:
    s3:
      enabled: true
      mode: ship
      bucket: my-trajectory-bucket
      region: us-east-1          # credentials: AWS default provider chain
    otel:
      enabled: true
      url: http://localhost:4318/v1/traces

Move a session to another machine:

# machine B, dsh not running — restores sessions from the bucket into the local root
dsh-trajectory-persistence sync-down --bucket my-trajectory-bucket --region us-east-1
dsh resume <session>

Documentation

Full guides live on the documentation site:

Compatibility

The DeepSeek Harness is in developer preview with no compatibility guarantees. This plugin was built and verified against monorepo commit 47f9438 (master as of 2026-08-14, @deepseek-ai/dsh-session@0.1.0-rc.6) and requires Node.js ≥ 22.

Development

pnpm install
pnpm build      # tsc -> lib/
pnpm test       # vitest (140 cases)

See Development for the source layout and how to run the plugin from a checkout with --patch.

License

[MIT](./LICENSE)