Files
rtk-ai__rtk/hooks/kilocode/rules.md
yosoyepa d0a3797ec5 feat(init): add native support for Kilo Code and Google Antigravity
Add rtk init --agent kilocode and rtk init --agent antigravity commands.

Kilo Code: installs .kilocode/rules/rtk-rules.md (project-scoped)
Google Antigravity: installs .agents/rules/antigravity-rtk-rules.md (project-scoped)

Both follow the same prompt-level guidance pattern as Cline and Windsurf,
using rules files that instruct the agent to prefix shell commands with rtk.
2026-04-08 15:37:29 -05:00

734 B

RTK - Rust Token Killer (Kilo Code)

Usage: Token-optimized CLI proxy for shell commands.

Rule

Always prefix shell commands with rtk to minimize token consumption.

Examples:

rtk git status
rtk cargo test
rtk ls src/
rtk grep "pattern" src/
rtk find "*.rs" .
rtk docker ps
rtk gh pr list

Meta Commands

rtk gain              # Show token savings
rtk gain --history    # Command history with savings
rtk discover          # Find missed RTK opportunities
rtk proxy <cmd>       # Run raw (no filtering, for debugging)

Why

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.