Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
49a094a
fix: reset SIGPIPE to default handler to avoid panic
ashwingopalsamy Apr 6, 2026
03cc790
test: add ignored test for broken-pipe crash
ashwingopalsamy Apr 6, 2026
ccf3a02
fix: address PR review comments
ashwingopalsamy Apr 13, 2026
be226d4
fix(grep): parse single-file output containing colons
F0rty-Tw0 May 23, 2026
0e3a6f4
fix(grep): NUL-separate file from line:content per review
F0rty-Tw0 May 23, 2026
2543be5
fix(hook): collapse bash line continuations before matching (#1564)
SAY-5 Apr 28, 2026
1875945
fix(pkg): rtk is Apache 2.0 and no MIT
aeppling May 25, 2026
fa11c6c
Merge pull request #2082 from rtk-ai/fix/pkg/MIT-to-apache-2
aeppling May 25, 2026
9bbc7bb
fix(docs): replace remaining MIT license references with Apache 2.0
aeppling May 25, 2026
4c099e4
Merge pull request #2084 from rtk-ai/fix/docs/mit-to-apache-remaining
aeppling May 25, 2026
6c4dfc7
fix(ls): preserve permission info as octal when -l/-la is passed
ryana-0154 May 25, 2026
53b5e79
feat: prefer short args and cleanup comments
KuSh May 25, 2026
8e04ac4
fix(grep): parse single-file output containing colons (#1554)
KuSh May 25, 2026
8fcc0dc
fix: handle GNU `--format=long` and `--format=verbose` long args
KuSh May 25, 2026
42ac86c
fix(hook): use maintainer regex suggestion for line continuation
SAY-5 May 25, 2026
0ec99de
fix(tests): use rewrite_command_no_prefixes in line-continuation tests
SAY-5 May 25, 2026
6e76f91
fix(ls): preserve permission info as octal when -l/-la is passed (#1675)
KuSh May 25, 2026
3c356b3
fix: remove remaining noise and rework comments
KuSh May 25, 2026
39f044e
fix(hook): collapse bash line continuations before matching (#1572)
KuSh May 25, 2026
e132896
fix(cicd): MIT to Apache 2.0
aeppling May 25, 2026
5a149a7
Merge pull request #2092 from rtk-ai/fix/cicd/mit-to-apache
aeppling May 25, 2026
8fb29e2
fix(hook): emit Copilot CLI-compatible hook config + strip BOM on Win…
aeppling May 25, 2026
84b703d
feat(hook): wire Copilot into uninstall, telemetry, and discover
aeppling May 25, 2026
557e57c
fix(hook): semgrep marker + regression tests for Copilot hook isolation
aeppling May 26, 2026
4b0bbf2
feat(hook): --global Copilot install + transparent rewrite via modifi…
aeppling May 26, 2026
69c10b6
fix(hook): default Copilot CLI rewrite to 'ask' to preserve permissio…
aeppling May 26, 2026
6c5e440
fix(hook): preserve Copilot CLI toolArgs metadata when rewriting command
aeppling May 26, 2026
db483e6
fix(hook): omit permissionDecision so Copilot prompts for the rewritt…
aeppling May 26, 2026
e1bb17f
fix(gh,glab): don't pre-reject view/checks/run subcommands missing th…
B-Galati May 27, 2026
f2a2e01
docs(readme): add Portuguese translation
LaraGb May 27, 2026
878af7d
Merge pull request #2128 from LaraGb/develop
aeppling May 28, 2026
852bcda
Merge branch 'develop' into master
aeppling May 28, 2026
207c82a
missing bracket
aeppling May 28, 2026
b6ecf96
missing test tag
aeppling May 28, 2026
e3ad973
fix(copilot-cli): use user-level instruction for -g
aeppling May 29, 2026
bcee6cc
fix: fmt
aeppling May 29, 2026
7853819
Update main.rs
aeppling May 29, 2026
b11f827
allow unsafe code clippy + semgrep
aeppling May 29, 2026
dd5362f
Update main.rs
aeppling May 29, 2026
26ff547
Update main.rs
aeppling May 29, 2026
acfd6c5
Merge pull request #1048 from ashwingopalsamy/master
aeppling May 29, 2026
a9a978c
Merge pull request #2101 from rtk-ai/fix/copilot-cli-hook-config-schema
aeppling May 29, 2026
3c8d29a
Merge pull request #2123 from B-Galati/fix/optional-gh-glab-id
aeppling May 29, 2026
5989ac9
fix(provider): sanatize more chars when encoding claude code project …
KuSh May 30, 2026
67a5958
doc(init): fix documentation inconsistencies arount `rtk init`
KuSh May 30, 2026
e9f42e5
Merge pull request #2173 from KuSh/supported-agents-fixes
aeppling May 31, 2026
653a209
Merge pull request #2172 from KuSh/2150-encode_project_path
aeppling May 31, 2026
83cd93e
chore(args): introduce a more generic solution for restoring double d…
KuSh May 10, 2026
508192d
fix(init): preserve settings.json symlink during atomic write
ChrisGVE May 25, 2026
f1474b4
fix(init): use fs::canonicalize for symlink resolution
ChrisGVE May 31, 2026
4128572
fix(gh): show fallback note when PR/issue body is filtered to empty
pszymkowiak May 27, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ jobs:
desc "Rust Token Killer - High-performance CLI proxy to minimize LLM token consumption"
homepage "https://www.rtk-ai.app"
version "VERSION_PLACEHOLDER"
license "MIT"
license "Apache 2.0"
if OS.mac? && Hardware::CPU.arm?
url "https://github.com/rtk-ai/rtk/releases/download/TAG_PLACEHOLDER/rtk-aarch64-apple-darwin.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.40.0"
edition = "2021"
authors = ["Patrick Szymkowiak"]
description = "Rust Token Killer - High-performance CLI proxy to minimize LLM token consumption"
license = "MIT"
license = "Apache 2.0"
homepage = "https://www.rtk-ai.app"
repository = "https://github.com/rtk-ai/rtk"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion Formula/rtk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Rtk < Formula
desc "High-performance CLI proxy to minimize LLM token consumption"
homepage "https://www.rtk-ai.app"
version "0.1.0"
license "MIT"
license "Apache-2.0"

on_macos do
on_intel do
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
<a href="README_zh.md">中文</a> &bull;
<a href="README_ja.md">日本語</a> &bull;
<a href="README_ko.md">한국어</a> &bull;
<a href="README_es.md">Espanol</a>
<a href="README_es.md">Espanol</a> &bull;
<a href="README_pt.md">Português</a>
</p>

---
Expand Down Expand Up @@ -106,10 +107,11 @@ rtk init -g # Claude Code / Copilot (default)
rtk init -g --gemini # Gemini CLI
rtk init -g --codex # Codex (OpenAI)
rtk init -g --agent cursor # Cursor
rtk init --agent windsurf # Windsurf
rtk init -g --agent windsurf # Windsurf
rtk init --agent cline # Cline / Roo Code
rtk init --agent kilocode # Kilo Code
rtk init --agent antigravity # Google Antigravity
rtk init -g --agent pi # Pi
rtk init --agent hermes # Hermes

# 2. Restart your AI tool, then test
Expand Down Expand Up @@ -351,7 +353,7 @@ rtk git status

## Supported AI Tools

RTK supports 13 AI coding tools. Each integration rewrites shell commands to `rtk` equivalents for 60-90% token savings where the agent supports command interception.
RTK supports 14 AI coding tools. Each integration rewrites shell commands to `rtk` equivalents for 60-90% token savings where the agent supports command interception.

| Tool | Install | Method |
|------|---------|--------|
Expand All @@ -361,10 +363,11 @@ RTK supports 13 AI coding tools. Each integration rewrites shell commands to `rt
| **Cursor** | `rtk init -g --agent cursor` | preToolUse hook (hooks.json) |
| **Gemini CLI** | `rtk init -g --gemini` | BeforeTool hook |
| **Codex** | `rtk init -g --codex` | AGENTS.md + RTK.md instructions |
| **Windsurf** | `rtk init --agent windsurf` | .windsurfrules (project-scoped) |
| **Windsurf** | `rtk init -g --agent windsurf` | .windsurfrules (project-scoped) |
| **Cline / Roo Code** | `rtk init --agent cline` | .clinerules (project-scoped) |
| **OpenCode** | `rtk init -g --opencode` | Plugin TS (tool.execute.before) |
| **OpenClaw** | `openclaw plugins install ./openclaw` | Plugin TS (before_tool_call) |
| **Pi** | `rtk init -g --agent pi` (global) | TypeScript extension (tool_call) |
| **Hermes** | `rtk init --agent hermes` | Python plugin adapter (terminal command mutation via `rtk rewrite`) |
| **Mistral Vibe** | Planned ([#800](https://github.com/rtk-ai/rtk/issues/800)) | Blocked on upstream |
| **Kilo Code** | `rtk init --agent kilocode` | .kilocode/rules/rtk-rules.md (project-scoped) |
Expand Down
4 changes: 2 additions & 2 deletions README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1478373640461488159?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>
Expand Down Expand Up @@ -158,7 +158,7 @@ Unete a la comunidad en [Discord](https://discord.gg/RySmvNF5kF).

## Licencia

Licencia MIT - ver [LICENSE](LICENSE) para detalles.
Licencia Apache 2.0 - ver [LICENSE](LICENSE) para detalles.

## Descargo de responsabilidad

Expand Down
4 changes: 2 additions & 2 deletions README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1478373640461488159?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>
Expand Down Expand Up @@ -195,7 +195,7 @@ Rejoignez la communaute sur [Discord](https://discord.gg/RySmvNF5kF).

## Licence

Licence MIT - voir [LICENSE](LICENSE) pour les details.
Licence Apache 2.0 - voir [LICENSE](LICENSE) pour les details.

## Avertissement

Expand Down
4 changes: 2 additions & 2 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1478373640461488159?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>
Expand Down Expand Up @@ -157,7 +157,7 @@ rtk discover # 見逃した節約機会を発見

## ライセンス

MIT ライセンス - 詳細は [LICENSE](LICENSE) を参照。
Apache 2.0 ライセンス - 詳細は [LICENSE](LICENSE) を参照。

## 免責事項

Expand Down
4 changes: 2 additions & 2 deletions README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1478373640461488159?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>
Expand Down Expand Up @@ -157,7 +157,7 @@ rtk discover # 놓친 절약 기회 발견

## 라이선스

MIT 라이선스 - 자세한 내용은 [LICENSE](LICENSE)를 참조하세요.
Apache 2.0 라이선스 - 자세한 내용은 [LICENSE](LICENSE)를 참조하세요.

## 면책 조항

Expand Down
166 changes: 166 additions & 0 deletions README_pt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<p align="center">
<img src="https://avatars.githubusercontent.com/u/258253854?v=4" alt="RTK - Rust Token Killer" width="500">
</p>

<p align="center">
<strong>Proxy CLI de alta performance que reduz o consumo de tokens LLM em 60-90%</strong>
</p>

<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1470188214710046894?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>

<p align="center">
<a href="https://www.rtk-ai.app">Site</a> &bull;
<a href="#instalacao">Instalar</a> &bull;
<a href="https://www.rtk-ai.app/guide/troubleshooting">Solução de problemas</a> &bull;
<a href="docs/contributing/ARCHITECTURE.md">Arquitetura</a> &bull;
<a href="https://discord.gg/RySmvNF5kF">Discord</a>
</p>

<p align="center">
<a href="README.md">English</a> &bull;
<a href="README_fr.md">Francais</a> &bull;
<a href="README_zh.md">中文</a> &bull;
<a href="README_ja.md">日本語</a> &bull;
<a href="README_ko.md">한국어</a> &bull;
<a href="README_es.md">Espanol</a> &bull;
<a href="README_pt.md">Português</a>
</p>

---

rtk filtra e comprime saídas de comandos antes de chegarem ao contexto do seu LLM. Binário Rust único, zero dependências, overhead inferior a 10ms.

## Economia de tokens (sessão de 30 min no Claude Code)

| Operação | Frequência | Padrão | rtk | Economia |
|-----------|------------|----------|-----|--------|
| `ls` / `tree` | 10x | 2,000 | 400 | -80% |
| `cat` / `read` | 20x | 40,000 | 12,000 | -70% |
| `grep` / `rg` | 8x | 16,000 | 3,200 | -80% |
| `git status` | 10x | 3,000 | 600 | -80% |
| `cargo test` / `npm test` | 5x | 25,000 | 2,500 | -90% |
| **Total** | | **~118,000** | **~23,900** | **-80%** |

## Instalacao

### Homebrew (recomendado)

```bash
brew install rtk
```

### Instalação rápida (Linux/macOS)

```bash
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
```

### Cargo

```bash
cargo install --git https://github.com/rtk-ai/rtk
```

### Verificação

```bash
rtk --version # Deve exibir "rtk 0.28.2"
rtk gain # Deve exibir estatísticas de economia
```

## Inicio rapido

```bash
# 1. Instalar hook para Claude Code (recomendado)
rtk init --global

# 2. Reiniciar Claude Code, depois testar
git status # Reescrito automaticamente para rtk git status
```

## Como funciona

```
Sem rtk: Com rtk:

Claude --git status--> shell --> git Claude --git status--> RTK --> git
^ | ^ | |
| ~2,000 tokens (bruto) | | ~200 tokens | filtro |
+-----------------------------------+ +------- (filtrado) ---+----------+
```

Quatro estratégias:

1. **Filtragem inteligente** - Elimina ruído (comentários, espaços, boilerplate)
2. **Agrupamento** - Agrega itens similares (arquivos por diretório, erros por tipo)
3. **Truncamento** - Mantém contexto relevante, elimina redundância
4. **Deduplicação** - Colapsa linhas de log repetidas com contadores

## Comandos

### Arquivos
```bash
rtk ls . # Árvore de diretórios otimizada
rtk read file.rs # Leitura inteligente
rtk find "*.rs" . # Resultados compactos
rtk grep "pattern" . # Busca agrupada por arquivo
```

### Git
```bash
rtk git status # Status compacto
rtk git log -n 10 # Commits em uma linha
rtk git diff # Diff condensado
rtk git push # -> "ok main"
```

### Tests
```bash
rtk jest # Jest compacto
rtk vitest # Vitest compacto
rtk pytest # Tests Python (-90%)
rtk go test # Tests Go (-90%)
rtk cargo test # Tests Rust (-90%)
rtk test <cmd> # Só falhas (-90%)
```

### Build & Lint
```bash
rtk lint # ESLint agrupado por regra
rtk tsc # Erros TypeScript agrupados
rtk cargo build # Build Cargo (-80%)
rtk ruff check # Lint Python (-80%)
```

### Análises
```bash
rtk gain # Estatísticas de economia
rtk gain --graph # Gráfico ASCII (30 dias)
rtk discover # Descobrir economias perdidas
```

## Documentação

- **[INSTALL.md](INSTALL.md)** - Guia de instalação detalhado
- **[ARCHITECTURE.md](docs/contributing/ARCHITECTURE.md)** - Arquitetura técnica
- **[CONTRIBUTING.md](CONTRIBUTING.md)** - Guia de contribuição

## Contribuir

Contribuições são bem-vindas. Abra uma issue ou PR no [GitHub](https://github.com/rtk-ai/rtk).

Junte-se à comunidade no [Discord](https://discord.gg/RySmvNF5kF).

## Licença

Apache License 2.0 - veja [LICENSE](LICENSE) para detalhes.

## Aviso Legal

Veja [DISCLAIMER.md](DISCLAIMER.md).
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center">
<a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a>
<a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1478373640461488159?label=Discord&logo=discord" alt="Discord"></a>
<a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a>
</p>
Expand Down Expand Up @@ -165,7 +165,7 @@ rtk discover # 发现遗漏的节省机会

## 许可证

MIT 许可证 - 详见 [LICENSE](LICENSE)。
Apache 2.0 许可证 - 详见 [LICENSE](LICENSE)。

## 免责声明

Expand Down
27 changes: 20 additions & 7 deletions docs/guide/getting-started/supported-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Agent runs "cargo test"
|-------|-----------------|---------------------------|
| Claude Code | Shell hook (`PreToolUse`) | Yes |
| VS Code Copilot Chat | Shell hook (`PreToolUse`) | Yes |
| GitHub Copilot CLI | Shell hook (deny-with-suggestion) | No (agent retries) |
| GitHub Copilot CLI | Shell hook (`preToolUse` `modifiedArgs`) | Yes |
| Cursor | Shell hook (`preToolUse`) | Yes |
| Gemini CLI | Rust binary (`BeforeTool`) | Yes |
| OpenCode | TypeScript plugin (`tool.execute.before`) | Yes |
Expand Down Expand Up @@ -61,17 +61,29 @@ rtk init --show # shows hook status
### Cursor

```bash
rtk init --global --cursor
rtk init --global --agent cursor
```

Restart Cursor. The hook uses `preToolUse` with Cursor's `updated_input` format.

### VS Code Copilot Chat
### GitHub Copilot (VS Code Chat + CLI)

```bash
rtk init --global --copilot
rtk init --copilot # project-scoped (.github/hooks/)
rtk init --global --copilot # user-scoped (~/.copilot/hooks/, respects $COPILOT_HOME)
```

Project-scoped writes `.github/hooks/rtk-rewrite.json` (both hosts get transparent rewrite — VS Code Chat via `updatedInput`, Copilot CLI via `modifiedArgs`) plus the RTK block in `.github/copilot-instructions.md`. User-scoped writes the same hook config to `~/.copilot/hooks/rtk-rewrite.json` and the RTK block to `~/.copilot/copilot-instructions.md` (both respect `$COPILOT_HOME` if set).

Uninstall:

```bash
rtk init --uninstall --copilot
rtk init --uninstall --global --copilot
```

Removes only RTK's hook file (and, for project, the RTK block in `copilot-instructions.md`). Other files in `.github/hooks/` or `~/.copilot/hooks/` and your own instruction content are untouched.

### Gemini CLI

```bash
Expand Down Expand Up @@ -128,21 +140,22 @@ The plugin fails open. If `rtk` is missing at load time, the hook is not registe
### Cline / Roo Code

```bash
rtk init --cline # creates .clinerules in current project
rtk init --agent cline # creates .clinerules in current project
```

Cline reads `.clinerules` as custom instructions. RTK adds guidance telling Cline to prefer `rtk <cmd>` over raw commands.

### Windsurf

```bash
rtk init --windsurf # creates .windsurfrules in current project
rtk init --global --agent windsurf # creates .windsurfrules in current project
```

### Codex CLI

```bash
rtk init --codex # creates AGENTS.md or patches existing one
rtk init --codex # project-scoped (AGENTS.md)
rtk init --global --codex # user-global (~/.codex/AGENTS.md)
```

### Kilo Code
Expand Down
Loading
Loading