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
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.