dsh-failbook
Run the following command in DeepSeek Harness:
dsh plugin install G1en-114/dsh-failbook
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install G1en-114/dsh-failbook in your terminal, or manually add the plugin entry to cordis.patch.yml in your config directory, then restart dsh web and navigate to Settings → Failbook; source: https://github.com/G1en-114/dsh-failbook
About this plugin
One of the most expensive and frustrating failure modes in agent workflows is the same mistake retried over and over with slightly different arguments: a missing binary returns 127 again, a sandbox policy denial is hammered five times, a broken npm dependency is reinstalled N times. The built-in repeat-tool-reminder in DeepSeek Harness only catches identical-argument consecutive repeats, so as soon as the model tweaks a parameter and hits the same root cause, the guard goes blind. dsh-failbook closes that gap by clustering failures by their signature—command-not-found, sandbox EACCES, npm ERR!—regardless of how the arguments differ. Failures are persisted across sessions via ctx.storageDomain, and once a bucket crosses a configurable threshold within a rolling window, a short advisory (root cause plus a suggested fix) is injected into the next agent request, breaking the "same mistake, new parameters" loop.
The plugin ships with a Settings → Failbook panel that surfaces top failure signatures with counts, recent timestamps, and one-click mute or clear actions. Detection is deliberately conservative: only unambiguous signals (structured errors, non-zero exits ≥ 2, sandbox markers, well-known error text) are recorded, cancellations are never counted, and false-positive buckets can be muted or excluded per tool. Stored entries are truncated previews only; full command output never leaves the host, and the management API is loopback-bound. If you run long multi-step agent pipelines in DeepSeek Harness and are tired of watching the same error burn tokens in a retry loop, dsh-failbook plugs in with essentially zero configuration and no pipeline changes.
Use Cases
- Agent keeps retrying the same command-not-found error with tweaked arguments
- Teams need cross-session visibility into which tools or commands fail most often to fix environment issues
- Sandbox policy rejections trigger multiple blind retries; the guard stops the loop and suggests a fix
Best For
- Engineers running long multi-step agent pipelines in DeepSeek Harness
- Teams tired of repeated-error logs burning tokens and wanting to cut wasted retries
- Developers who want zero-config, non-intrusive failure observability for existing DSH workflows
Related Plugins
Traceable, searchable cross-session memory for AI agents that turns conversation knowledge into a typed knowledge graph and recalls relevant subgraphs instead of replaying full history, natively integrated with DeepSeek Harness.
Gives DSH AI cross-session long-term memory, to-do and skill management, plus multi-session orchestration, external AI delegation, and an infinite canvas that grows with you.
dsh-mnemon is a three-tier, pluggable, Agent-driven memory system for DeepSeek Harness, combining Runtime memory, Project Documents, and replaceable Memory Spaces with nine long-term providers.
An opinionated, zero-infrastructure file-based memory protocol: human-readable markdown files plus a bounded always-loaded index, curation discipline, and no database or embeddings.