dsh-plugin-loud-failure: Turn silent tool failures into loud failures
# Foreword Fellow developers running agents have likely encountered this kind of failure: a tool call with an exit code of 0 and seemingly normal output, causing the model to proceed based on this, only to reconstruct the truth—that the initial call had actually failed—after a few steps. `pandoc` might lose a glyph but only issue a warning while still generating the PDF; pipes can swallow Python tracebacks, leaving the exit code to be provided by `tail`; or chaining commands with `;` can obscure a "command not found" error amidst a stream of normal output. The exit code indicates success, the model interprets it as success, and errors propagate downstream. While reviewing session logs afterwards can certainly reveal the cause, a more opportune moment is precisely when the failure occurs. The philosophy of DSH is that everything is a plugin; a `tool` hook is left on the tool execution chain.
Read More