dsh-rtk-minimal

Rewrites bash tool calls through `rtk rewrite` on the `tools/execute` hook, so it applies to any provider route. Zero dependencies and no build step: a single ESM module that adopts exit codes 0 and 3, runs the original command otherwise (no equivalent, deny rule, missing rtk, spawn failure), restores the original arguments after dispatch, and honors `RTK_PREFIX_ONLY` for direct `rtk <cmd>` prefixing and `DSH_RTK_BIN` to pin the binary.

Overview

Rewrites bash tool calls through `rtk rewrite` on the `tools/execute` hook, so it applies to any provider route. Zero dependencies and no build step: a single ESM module that adopts exit codes 0 and 3, runs the original command otherwise (no equivalent, deny rule, missing rtk, spawn failure), restores the original arguments after dispatch, and honors `RTK_PREFIX_ONLY` for direct `rtk <cmd>` prefixing and `DSH_RTK_BIN` to pin the binary.

Installation

Install from GitHub

dsh plugin --profile web add github:paranoidPhantom/dsh-rtk-minimal

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.