# rtk | rtk-ai | Knowledge Base | Instagit

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

GitHub Stars: 34k

Repository: https://github.com/rtk-ai/rtk

---

## Articles

### [RTK Verify Command for Hook Integrity: Implementation and Security Checks](/rtk-ai/rtk/rtk-verify-command-hook-integrity)

Understand the RTK verify command's purpose: secure hook integrity checks with SHA-256 hashes and inline TOML filter tests for compression rules in the rtk-ai/rtk repository.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Processes and Optimizes Ruby Tool Output for RuboCop and RSpec](/rtk-ai/rtk/rtk-process-ruby-ecosystem-tools)

RTK optimizes Ruby tool output like RuboCop and RSpec by capturing logs, parsing JSON, and generating concise summaries for efficient processing.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Integrates with GitHub CLI for Managing Pull Requests and Issues](/rtk-ai/rtk/rtk-integration-github-cli-pr-issues)

Integrate RTK with GitHub CLI to efficiently manage pull requests and issues. RTK optimizes GitHub CLI output, saving tokens and improving readability for developers.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Handles config.toml Configuration for Hooks and Tee](/rtk-ai/rtk/rtk-configuration-config.toml-hooks-tee)

Learn how RTK uses config.toml to manage hook exclusions and tee file options, ensuring flexible and safe default configurations for your projects.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Identifies Missed Token Savings Opportunities in Claude Code History](/rtk-ai/rtk/rtk-discover-missed-savings-claude-code)

Learn how RTK identifies missed token savings in Claude Code history. RTK scans logs, classifies commands, and estimates savings to reduce LLM token usage.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Manages JavaScript/TypeScript Tooling Output: tsc and eslint Handling Explained](/rtk-ai/rtk/rtk-manage-javascript-typescript-tooling)

Discover how RTK handles tsc and eslint output. Learn how it processes tooling logs with streaming, filtering, and concise summaries for efficient development.

- Tags: deep-dive
- Published: 2026-04-24

### [How RTK Optimizes Output from Python Linters: Ruff and mypy Integration](/rtk-ai/rtk/rtk-optimize-python-linter-output)

Discover how RTK optimizes Ruff and mypy Python linter output with a three-stage filter pipeline, slashing token consumption by 60-90% for efficient LLM integration.

- Tags: how-to-guide
- Published: 2026-04-24

### [RTK Docker and kubectl Log Deduplication: How Line Counts Work](/rtk-ai/rtk/rtk-deduplicate-docker-kubectl-logs)

RTK deduplicates Docker and kubectl logs with regex normalization and severity classification. See how unique messages aggregate with line counts displayed using the ×N prefix.

- Tags: how-to-guide
- Published: 2026-04-24

### [How to Add a New Command Filter to RTK: A 5-Step Implementation Guide](/rtk-ai/rtk/add-new-command-filter-rtk)

Learn to add a new command filter to RTK with this 5-step guide. Implement Rust modules, register commands, and write tests for efficiency.

- Tags: how-to-guide
- Published: 2026-04-24

### [When to Use RTK Proxy Mode Instead of Standard Filtering](/rtk-ai/rtk/rtk-proxy-mode-vs-standard-filtering)

Discover when to use RTK proxy mode over standard filtering. Ideal for unfiltered output, custom tools, exact signals, and bypassing analytics while tracking usage.

- Tags: best-practices
- Published: 2026-04-24

### [How RTK Anonymous Telemetry Works and Ensures GDPR Compliance](/rtk-ai/rtk/rtk-anonymous-telemetry-gdpr)

Learn how RTK anonymous telemetry works, collecting only aggregate metrics with opt-in consent and automated erasure for full GDPR compliance in Rust.

- Tags: deep-dive
- Published: 2026-04-24

### [RTK on Windows WSL vs Native Windows: Key Differences and Setup Guide](/rtk-ai/rtk/rtk-windows-wsl-vs-native)

Explore RTK on Windows WSL vs native Windows. Discover key differences in auto-rewrite hooks, setup, and identical filters/analytics. Get the RTK guide for your environment.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Parses and Filters AWS CLI JSON Output for Compact EC2 Listings](/rtk-ai/rtk/rtk-parse-filter-aws-cli-json)

Learn how RTK parses and filters AWS CLI JSON output for compact EC2 listings. Streamline your workflow by extracting key fields and truncating large result sets.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK's Tee System Facilitates Failure Recovery and Full-Output Retrieval](/rtk-ai/rtk/rtk-tee-system-failure-recovery)

RTK's tee system captures unfiltered command output for failure recovery and full retrieval. Access complete original logs for debugging with RTK's solution.

- Tags: internals
- Published: 2026-04-24

### [How RTK Compresses Test Output for pytest and Other Testing Frameworks](/rtk-ai/rtk/rtk-compress-test-output-pytest)

Learn how RTK compresses test output for pytest and other frameworks. RTK minimizes verbosity, captures results, and re-renders concise summaries preserving key stats and failures.

- Tags: how-to-guide
- Published: 2026-04-24

### [What Filtering Strategies RTK Employs for Common Git Commands](/rtk-ai/rtk/rtk-filtering-strategies-git-commands)

Discover RTK's efficient Git filtering strategies. Reduce token counts by 60-90% with filters applied to Git commands, ensuring sub-10ms startup.

- Tags: internals
- Published: 2026-04-24

### [RTK Integration Methods for Claude Code and Cursor AI Agents](/rtk-ai/rtk/rtk-integration-ai-agents-claude-cursor)

Learn RTK integration methods for Claude Code and Cursor AI agents. RTK intercepts tool-use events, rewrites commands, and provides expected JSON responses.

- Tags: how-to-guide
- Published: 2026-04-24

### [How to Configure Custom TOML Filters in RTK for Specific Projects](/rtk-ai/rtk/configure-custom-toml-filters-rtk)

Learn how to configure custom TOML filters in RTK for your projects. Create a filters.toml file define rules and trust it with RTK to enable runtime loading.

- Tags: how-to-guide
- Published: 2026-04-24

### [How RTK Tracks Token Savings Using SQLite in core/tracking.rs](/rtk-ai/rtk/rtk-token-savings-tracking-sqlite)

Discover how RTK tracks token savings with SQLite in core/tracking.rs. Learn about persisting command executions, calculating savings, and aggregating stats via SQL queries.

- Tags: internals
- Published: 2026-04-24

### [How RTK Handles Unrecognized Commands: The Passthrough Fallback Mechanism](/rtk-ai/rtk/rtk-fallback-unrecognized-commands)

Discover how RTK executes unrecognized commands directly via the system shell when no filter matches. Learn about the passthrough fallback mechanism and view unchanged stdout and stderr.

- Tags: internals
- Published: 2026-04-24

### [Understanding RTK's Filter Pipeline and Command Routing Architecture](/rtk-ai/rtk/rtk-filter-pipeline-command-routing-architecture)

Explore RTK's filter pipeline and command routing architecture. Learn how Clap routes commands, core::runner executes them, and a strategy-based filter pipeline processes output. Understand RTK's three-layer design for efficien...

- Tags: architecture
- Published: 2026-04-24

### [How RTK Implements the Auto-Rewrite Hook for Claude Code](/rtk-ai/rtk/how-rtk-implements-auto-rewrite-hook-claude-code)

Learn how RTK implements the auto-rewrite hook for Claude Code to intercept shell commands. Discover how RTK enables secure command execution through JSON responses and structured exit codes.

- Tags: internals
- Published: 2026-04-24

