You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d921cc4
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add Cline/Roo Code support via rtk init --agent cline (#701) (#702)
Install RTK rules in .clinerules (project-scoped) so Cline
prefixes shell commands with rtk for token savings.
Same rules-based approach as Windsurf and Codex.
Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
**Usage**: Token-optimized CLI proxy for shell commands.
4
+
5
+
## Rule
6
+
7
+
Always prefix shell commands with `rtk` to minimize token consumption.
8
+
9
+
Examples:
10
+
11
+
```bash
12
+
rtk git status
13
+
rtk cargo test
14
+
rtk ls src/
15
+
rtk grep "pattern" src/
16
+
rtk find "*.rs".
17
+
rtk docker ps
18
+
rtk gh pr list
19
+
```
20
+
21
+
## Meta Commands
22
+
23
+
```bash
24
+
rtk gain # Show token savings
25
+
rtk gain --history # Command history with savings
26
+
rtk discover # Find missed RTK opportunities
27
+
rtk proxy <cmd># Run raw (no filtering, for debugging)
28
+
```
29
+
30
+
## Why
31
+
32
+
RTK filters and compresses command output before it reaches the LLM context, saving 60-90% tokens on common operations. Always use `rtk <cmd>` instead of raw commands.
0 commit comments