falling-ts/dsh-start-command
Runs one configured shell command before a turn's model request, only for your own prompts and only when no other agent is running.
A UserPromptSubmit hook for DSH: it registers a waterfall listener on agent/pre-step — the same extension point the official Claude Code bridge maps that hook onto, and the last point before request derivation — and runs one shell command before the turn reaches the model. The ordering detail matters: it delegates through next() first, so a listener further down that rejects the step still wins and your command never runs. The intended uses are the chores that should already have happened: git pull, npm ci, a cache refresh, a timestamped manifest. Failure behaviour is documented rather than silent, and the repo ships an exploration probe for the pre-step seam.
Install
dsh plugin --profile web add github:falling-ts/dsh-start-commandThe GitHub form, because the README documents the repo as the install source rather than a published release. The package declares dsh.bundle.patch, which activates the patch layer, and dsh.client ships the browser half that adds a Start command section to Settings — one text input, a Save button and a state line. A local checkout installs with dsh plugin --profile web add /path/to/dsh-start-command. Config lives in the falling-ts-start-command namespace, editable from the Start command row in Settings or from the profile's cordis.patch.yml.
Compatibility
Harness >=0.2.1-rc.1, with peer ranges @deepseek-ai/cordis >=4.0.5, @deepseek-ai/schemastery >=3.18.5 and @deepseek-ai/dsh-* >=0.2.1-rc.1. All of this must hold or the command is skipped: a command has to be configured (a blank value skips everything with no side effects), you must have submitted the prompt, and no other agent may be running — read from the live agent registry. The README is explicit that command output is never put into the model request; it goes to the Host log only, so if you want the model to see something, the command should write a file and you should point the model at it.
Details
- Repo: falling-ts/dsh-start-command
- Category: Workflow & Automation
- Stars: 0
- Version: github (no npm release)
Alternatives
snailium/dsh-command-context-trim · shengsheng90/DSH-taskboard · KanoNoUta/dsh-captain