1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! RTK (Rust Token Killer) integration module
//!
//! This module provides token-saving functionality by filtering and compressing
//! bash command outputs before they reach the LLM context. It wraps the `rtk`
//! CLI binary to achieve 60-90% token savings on common development commands.
//!
//! # Features
//! - Command rewriting via `rtk rewrite`
//! - Stats extraction (git diff, cargo build, etc.)
//! - Error-only mode for test runs
//! - Output grouping and deduplication
//! - Structure-only mode for JSON/data files
//!
//! # Usage
//! Enable with the `rtk` feature flag:
//! ```bash
//! cargo run --features rtk
//! ```
pub use ;
pub use ;