dsh-early-stop-guard

Keeps a DSH agent turn open when the model ends it by narrating work it has not done: on agent/turn-stopping the guard replays the turn log and classifies the trailing message with regexes — in the default mode wait / ask / done / gray end the turn with no model call, and only a promise of pending work reaches the judge — then has a judge chain of four dialect kinds (System One three-question noul, OpenAI-compatible, OpenAI Decisions, or the session LLM) rule on whether the turn is really over, and steers the same turn with agent.steer when it is not.

Overview

Keeps a DSH agent turn open when the model ends it by narrating work it has not done: on agent/turn-stopping the guard replays the turn log and classifies the trailing message with regexes — in the default mode wait / ask / done / gray end the turn with no model call, and only a promise of pending work reaches the judge — then has a judge chain of four dialect kinds (System One three-question noul, OpenAI-compatible, OpenAI Decisions, or the session LLM) rule on whether the turn is really over, and steers the same turn with agent.steer when it is not.

Installation

Install from GitHub

dsh plugin --profile web add github:pf-sjtu/dsh-early-stop-guard

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.