rtk-ai/rtk
View on GitHubfeat: add Cline/Roo Code support via rtk init --agent cline
Open
#701 opened on Mar 18, 2026
effort-mediumenhancementgood first issue
Description
Summary
Add Cline (VS Code) support to RTK.
How Cline works
Cline uses .clinerules file in project root for custom rules, and hooks in ~/Documents/Cline/Rules/Hooks/ or .clinerules/hooks/ for scripts.
PreToolUse hooks can cancel commands but cannot rewrite them. contextModification injects text into conversation context.
Implementation
Rules-based approach (like Windsurf/Codex):
rtk init --agent clinecreates.clineruleswith RTK instructions- Optional: PreToolUse hook for tracking via
rtk gain