Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
129104e388 |
@@ -88,7 +88,7 @@ Download from [releases](https://github.com/rtk-ai/rtk/releases):
|
||||
- Linux: `rtk-x86_64-unknown-linux-musl.tar.gz` / `rtk-aarch64-unknown-linux-gnu.tar.gz`
|
||||
- Windows: `rtk-x86_64-pc-windows-msvc.zip`
|
||||
|
||||
> **Windows users**: Extract the zip and place `rtk.exe` somewhere in your PATH (e.g. `C:\Users\<you>\.local\bin`). Run RTK from **Command Prompt**, **PowerShell**, or **Windows Terminal** — do not double-click the `.exe` (it will flash and close). For the best experience, use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) where the full hook system works natively. See [Windows setup](#windows) below for details.
|
||||
> **Windows users**: Extract the zip and place `rtk.exe` somewhere in your PATH (e.g. `C:\Users\<you>\.local\bin`). Run RTK from **Command Prompt**, **PowerShell**, or **Windows Terminal** — do not double-click the `.exe` (it will flash and close). The full hook system works natively on Windows (and in [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)). See [Windows setup](#windows) below for details.
|
||||
|
||||
### Verify Installation
|
||||
|
||||
@@ -329,11 +329,26 @@ After install, **restart Claude Code**.
|
||||
|
||||
## Windows
|
||||
|
||||
RTK works on Windows with some limitations. The auto-rewrite hook (`rtk-rewrite.sh`) requires a Unix shell, so on native Windows RTK falls back to **CLAUDE.md injection mode** — your AI assistant receives RTK instructions but commands are not rewritten automatically.
|
||||
RTK works fully on native Windows. Since **v0.37.2** the auto-rewrite hook runs as a **native binary command** (`rtk hook claude`) — no Unix shell, bash, or jq required — so commands are rewritten transparently on Command Prompt, PowerShell, and Windows Terminal, just like on Linux and macOS.
|
||||
|
||||
### Recommended: WSL (full support)
|
||||
### Native Windows
|
||||
|
||||
For the best experience, use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) (Windows Subsystem for Linux). Inside WSL, RTK works exactly like Linux — full hook support, auto-rewrite, everything:
|
||||
```powershell
|
||||
# 1. Download and extract rtk-x86_64-pc-windows-msvc.zip from releases
|
||||
# 2. Add rtk.exe to your PATH (e.g. C:\Users\<you>\.local\bin)
|
||||
# 3. Initialize — installs the native binary hook
|
||||
rtk init -g
|
||||
```
|
||||
|
||||
**Upgrading from an older install?** If you set RTK up before v0.37.2 you may still have the legacy `rtk-rewrite.sh` shell hook (which does need a Unix shell). Re-run `rtk init -g` to migrate to the native binary hook.
|
||||
|
||||
**Prerequisites**: some filters shell out to [ripgrep](https://github.com/BurntSushi/ripgrep) (`rg`). Install it and keep it on your PATH (e.g. `winget install BurntSushi.ripgrep.MSVC`) to avoid `Binary 'rg' not found on PATH` warnings.
|
||||
|
||||
**Important**: Do not double-click `rtk.exe` — it is a CLI tool that prints usage and exits immediately. Always run it from a terminal (Command Prompt, PowerShell, or Windows Terminal).
|
||||
|
||||
### WSL
|
||||
|
||||
[WSL](https://learn.microsoft.com/en-us/windows/wsl/install) also works and behaves exactly like Linux:
|
||||
|
||||
```bash
|
||||
# Inside WSL
|
||||
@@ -341,27 +356,11 @@ curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/instal
|
||||
rtk init -g
|
||||
```
|
||||
|
||||
### Native Windows (limited support)
|
||||
|
||||
On native Windows (cmd.exe / PowerShell), RTK filters work but the hook does not auto-rewrite commands:
|
||||
|
||||
```powershell
|
||||
# 1. Download and extract rtk-x86_64-pc-windows-msvc.zip from releases
|
||||
# 2. Add rtk.exe to your PATH
|
||||
# 3. Initialize (falls back to CLAUDE.md injection)
|
||||
rtk init -g
|
||||
# 4. Use rtk explicitly
|
||||
rtk cargo test
|
||||
rtk git status
|
||||
```
|
||||
|
||||
**Important**: Do not double-click `rtk.exe` — it is a CLI tool that prints usage and exits immediately. Always run it from a terminal (Command Prompt, PowerShell, or Windows Terminal).
|
||||
|
||||
| Feature | WSL | Native Windows |
|
||||
|---------|-----|----------------|
|
||||
| Feature | Native Windows | WSL |
|
||||
|---------|----------------|-----|
|
||||
| Filters (cargo, git, etc.) | Full | Full |
|
||||
| Auto-rewrite hook | Yes | No (CLAUDE.md fallback) |
|
||||
| `rtk init -g` | Hook mode | CLAUDE.md mode |
|
||||
| Auto-rewrite hook | Yes (native binary) | Yes |
|
||||
| `rtk init -g` | Hook mode | Hook mode |
|
||||
| `rtk gain` / analytics | Full | Full |
|
||||
|
||||
## Supported AI Tools
|
||||
@@ -370,7 +369,7 @@ RTK supports 14 AI coding tools. Each integration rewrites shell commands to `rt
|
||||
|
||||
| Tool | Install | Method |
|
||||
|------|---------|--------|
|
||||
| **Claude Code** | `rtk init -g` | PreToolUse hook (bash) |
|
||||
| **Claude Code** | `rtk init -g` | PreToolUse hook (native binary) |
|
||||
| **GitHub Copilot (VS Code)** | `rtk init -g --copilot` | PreToolUse hook — transparent rewrite |
|
||||
| **GitHub Copilot CLI** | `rtk init -g --copilot` | PreToolUse deny-with-suggestion (CLI limitation) |
|
||||
| **Cursor** | `rtk init -g --agent cursor` | preToolUse hook (hooks.json) |
|
||||
|
||||
Reference in new issue
Block a user