NewsCrawler.org

RTK: a CLI proxy that cuts LLM token use by 60-90% on dev commands

cargo test on a 48-test crate: 71 lines of raw output on the left; on the right, the 11 lines the agent reads with rtk: the failing test's panic, assertion and location, the pass/fail summary, and an rtk recall line to get the full output back
rtk-ai/rtk
RTK Pro: scale AI agents, stay in control. The control layer for every AI agent in your company. Gateway: every AI call in one place, whichever provider; spend by team, person and model; budgets that warn, then stop. Shield: secrets and personal data masked before any model sees them. Policies: risky commands stopped before they run. Team catalog: skills, MCP servers and pipelines, assigned per team and project. Audit: who did what, and whether it was allowed, every action on record. Runs on each developer's machine, never a secret value leaves it, the CLI stays free and open source.
Image: github.com

RTK is a CLI[1] proxy that reduces LLM token[2] consumption by 60-90% on common development commands. It ships as a single Rust binary with zero dependencies. After installation and a restart, the agent's git status runs as rtk git status, and the agent reads a 3-line summary instead of 40 lines. The compressor covers test runs, diffs, logs and builds, supports over 100 commands and needs no configuration.

Every filter must cut at least 20% of output to ship, and RTK promises that it never blocks a command and never prints more than the original command. The rtk gain command shows the amount saved, and rtk bypass runs any command unfiltered. The README notes that a 90% cut in command output is not a 90% cut in cost.

A newer layer, pipelines, passes heavy reads to a cheaper model and compresses more than bash without breaking the prompt cache[3]. The best pipeline listed cuts total cost by 20.2% in its author's benchmark.

Read the original github.com

Sources

  • GitHub Trending

    rtk-ai/rtk

    119 stars today87,545 stars5,628 forks

First seen: Читать по-русски

Open as a page