dsh-rtk

Compresses shell output before the model sees it via the local `rtk` CLI: the master switch follows rtk readiness unless set, `prefix` shadows `bash` per agent and asks `rtk rewrite` for an equivalent command, and the opt-in `pipe` form filters a finished result through `rtk pipe`; compound commands are rewritten segment by segment, small or low-gain output passes through, and a guard refuses an empty result, success claimed over failures, a dropped commit hash and `+N more` folded listings, with stderr and the exit marker reattached; every failure falls back to the original command and output, and a settings card reports command counts, saved tokens and a per-filter chart via the official Typert Remote namespace. Requires `rtk` 1.0+ on `PATH`; without it the plugin loads and compresses nothing.

Overview

Compresses shell output before the model sees it via the local `rtk` CLI: the master switch follows rtk readiness unless set, `prefix` shadows `bash` per agent and asks `rtk rewrite` for an equivalent command, and the opt-in `pipe` form filters a finished result through `rtk pipe`; compound commands are rewritten segment by segment, small or low-gain output passes through, and a guard refuses an empty result, success claimed over failures, a dropped commit hash and `+N more` folded listings, with stderr and the exit marker reattached; every failure falls back to the original command and output, and a settings card reports command counts, saved tokens and a per-filter chart via the official Typert Remote namespace. Requires `rtk` 1.0+ on `PATH`; without it the plugin loads and compresses nothing.

Installation

Install from npm

dsh plugin --profile web add @jayyuen66/dsh-rtk

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:JayYuen666/dsh-rtk

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.

Installation notes

  • May run terminal commands