dsh-failbook: A Failure Ledger Plugin for DeepSeek Harness, Auto-Clustering and Intercepting Retries

g1en-114/dsh-failbook

Tools & CapabilitiesVerified
Listed on 2026-08-19
Page last updated 2026-09-16

A DSH plugin that records tool failures, clusters by failure signature, persists across sessions, and intercepts Agent retries on repeated errors, with a Web UI panel to reduce mistakes over time.

dsh-failbook is a failure ledger plugin for DeepSeek Harness that tackles the problem of agents repeatedly retrying the same error, wasting tokens and time. It automatically records every tool call failure, clusters them by failure signature, persists the ledger across sessions, and injects a reminder to the model when the same error recurs, suggesting to stop retrying and providing a fix. The plugin also includes a Web UI panel to view top failure signatures, mute false positives, and clear the ledger, with zero-config out-of-the-box usage. Maintained by G1en-114 under the MIT license.

How to Install

install
dsh plugin --profile web add github:g1en-114/dsh-failbook
Category
Tools & Capabilities
Platform
DSH Plugin
Author
g1en-114
Distribution
Plugin

dsh-failbook Key Features

Auto record failuresSignature clusteringCross-session persistenceRetry interceptionWeb UI panel
Listed on dsh-plugin.org

dsh-failbook Repo Summary

What Does It Do?

dsh-failbook is a DSH plugin for DeepSeek Harness that automatically records every tool call failure, clusters them by failure signature, persists the ledger across sessions, and intercepts agent retries when the same error recurs. It solves the pain of agents repeatedly retrying the same error, wasting tokens and time, making the agent less error-prone over time. Core capabilities include failure signature clustering, failure-aware retry interception, a Web UI panel, and mute/exclusion controls, with zero-config out-of-the-box usage. Maintained by G1en-114 under the MIT license.

Core Features

  • Automatic failure recording: hooks into tools/post-execute to capture structured errors, non-zero exit codes, sandbox rejections, and common error texts.
  • Signature clustering: failures with the same cause (e.g., bash:command-not-found) are grouped into one bucket regardless of parameter differences.
  • Cross-session persistence: stores via the official ctx.storageDomain, surviving restarts; falls back to in-memory ledger when the service is unavailable.
  • Failure-aware retry interception: when the same signature fails ≥N times (default 2) within a recent window, injects a suggestive reminder with the failure reason and fix suggestion.
  • Web UI panel: shows top failure signatures, counts, recent window, and last time; supports muting, single deletion, and clearing.
  • Mute and exclusion: one-click mute for false-positive buckets, with excludeTools/patterns for fine-grained control.

How to Use This Plugin?

After enabling it in DSH, the plugin automatically hooks into tool execution with no extra steps. When the same failure signature recurs within the recent window and reaches the threshold, the plugin injects a reminder to the model, suggesting to stop retrying and providing a fix. You can view the failure ledger in the settings panel and adjust configs like retryGuardThreshold, reminderCooldownSec, and reminderLocale, or use mute and exclusion rules to reduce false positives.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: g1en-114/dsh-failbook. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub

DSH Plugin FAQ