dfycaly98931680/dsh-trajectory-governance
Agent trajectory governance and anomaly diagnosis: rebuilds flat session logs into multi-branch trajectory trees, detects loop deadlock, invalid retry, and goal drift, alerts with cost attribution, one-click interrupt and breakpoint fork via official APIs, independent GUI tab.
Agent trajectory governance and anomaly diagnosis for DeepSeek Harness. Where the official Trajectory page is a flat raw event log, this plugin rebuilds the session/event stream into a structured, multi-branch trajectory tree with parent/child and fork/subagent lineage, keeps observation-layer snapshots (nodeId + context hash + branchId), and runs three temporal anomaly strategies — loop deadlock, invalid retry and goal drift — mounting results on tree nodes and surfacing them in an independent GUI tab. It writes only to its own SQLite store and never overwrites the official Trajectory view.
Install
dsh plugin --profile web add github:dfycaly98931680/dsh-trajectory-governanceREADME-documented GitHub install (the README pins an optional #<commit-sha>). A git install fetches sources and the package ships a prepare build, so pnpm needs an explicit allow-list — add the printed key to the profile's pnpm-workspace.yaml and re-run; alternatively install a built tarball (pnpm pack) with no build permission needed. Plugin-private SQLite storage lives at ~/.dsh-trajectory-governance/.
Compatibility
DSH Web profile (dsh web). Consume-only: it subscribes to committed session/subagent events and never intercepts, schedules or rewinds the agent.
Details
- Repo: dfycaly98931680/dsh-trajectory-governance
- Category: Tools & Capabilities
- Stars: 4
- Version: GitHub main (no npm package)
- Last push: 2026-08-16
- First seen: 2026-08-14
FAQ
- How do I install dsh-trajectory-governance?
- Run: dsh plugin --profile web add github:dfycaly98931680/dsh-trajectory-governance. A git install runs a prepare build, so allow the build key pnpm prints in your profile's pnpm-workspace.yaml and re-run — or install a pnpm pack tarball instead.
- Does it modify or roll back my agent runs?
- No. It consumes committed events only — no control-plane rollback, no kernel modification — and keeps its data in a plugin-private SQLite database under ~/.dsh-trajectory-governance/.
- What anomalies can it detect?
- Three temporal strategies: loop deadlock, invalid retry and goal drift, each reported with a confidence value and suggestions attached to the relevant trajectory-tree node.
Alternatives
zhaoolee/notes · Vladimir-Human/ru-marketplace-mcp#dsh · DDDMUC/dsh-free-search