rtk-ai/rtk

feat: add Cline/Roo Code support via rtk init --agent cline

Open

#701 建立於 2026年3月18日

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)Rust (2,914 fork)batch import
area:clieffort-mediumenhancementgood first issuehelp wantedpriority:low

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

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 cline creates .clinerules with RTK instructions
  • Optional: PreToolUse hook for tracking via rtk gain

References

貢獻者指南