Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 176 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ regex = "1"
lazy_static = "1.4"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
serde_yaml = "0.9"
colored = "2"
trash = "5"
dirs = "5"
rusqlite = { version = "0.31", features = ["bundled"] }
toml = "0.8"
chrono = "0.4"
thiserror = "1.0"
which = "7"
tempfile = "3"

[dev-dependencies]
Expand Down
28 changes: 28 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,34 @@ rtk gain # MUST show token savings, not "command not found"

⚠️ **WARNING**: `cargo install rtk` from crates.io might install the wrong package. Always verify with `rtk gain`.

### Windows Installation

RTK compiles natively for Windows. Download from GitHub Releases or:

```bash
cargo install --path .
```

Configure Claude Code `settings.json`:

```json
{
"hooks": {
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{
"type": "command",
"command": "rtk hook claude"
}]
}]
}
}
```

No bash, node, or bun required — `rtk hook claude` is a native Windows binary.
The exec.rs shell selection (`cfg!(windows)`) automatically uses `cmd /C` on Windows
and `sh -c` on Unix for passthrough commands.

## Project Initialization

### Recommended: Global Hook-First Setup
Expand Down
Loading
Loading