Preface¶
In agent development, console logs often fail to reliably distinguish retries from steps, cancelled turns from errors, or superficial rewrites from second tool results. The community plugin dsh-agent-observability for DeepSeek Harness provides event-based, privacy-first agent observability and reliability analysis.
Core Features¶
- Trace Reconstruction: Reconstruct traces of Session → Turn → Step → Model settlement → Tool call/result from committed session evidence.
- Reliability Analysis: Compute reliability metrics, detect bounded observable patterns, and reference exact event sequence numbers.
- Export and Evaluation: Export failed cases for subsequent evaluation.
- Privacy-First: Collects metadata only by default; the plugin itself does not send any telemetry data.
Installation and Enablement¶
Before installation, ensure you have Node.js (^22.19.0 || >=24), pnpm, and a tested version of DeepSeek Harness.
Install using the officially provided pre-built tarball:
dsh plugin --profile web add ./beibeihk-dsh-agent-observability-0.1.0.tgz
Confirm the plugin is enabled after installation:
dsh --profile web --dump-config
Typical Usage¶
- Run the Harness Web interface:
dsh web. - Submit the command
/observewithin a session. This command returns metrics and findings without consuming a model turn. - Reports are exported automatically. The default path is
$DSH_HOME/profiles/web/observability/<hashed-session-id>/. - Open
report.htmlin that directory locally to view the results. Files includetrace.json,summary.json,eval.jsonl, etc.
Demo and Verification¶
Run a keyless, reproducible demo:
npm run demo
Applicable Scenarios and Notes¶
This plugin is suitable for developers who require structured analysis of agent execution traces. Please note the following when using it:
- Permissions: The plugin runs with the permissions of the current DSH process.
- Privacy Configuration: Defaults to metadata mode. To capture content, set
captureContent: true. Reasoning blocks and embedded assistant streams are always excluded. - Resource Limits: Memory is bounded by
maxSessions(64),maxEvents(100,000), andmaxContentBytes(16 KiB). - No Official Affiliation: The plugin is community-maintained and is not officially affiliated with or endorsed by the main project.
Summary¶
By reconstructing event traces and detecting reliability patterns, this plugin solves the difficulty of distinguishing complex interaction states within logs. Coupled with a no-telemetry design, it provides a lightweight, privacy-friendly tool for agent reliability analysis.