-
Notifications
You must be signed in to change notification settings - Fork 675
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
The hook rtk hook copilot is implemented and works for both VS Code Copilot Chat and Copilot CLI. However, there is no automated setup — users must manually create the required files.
The README documents rtk init -g as supporting Copilot, but in reality it only installs the Claude Code hook. AgentTarget enum has Claude, Cursor, Windsurf, Cline — but not Copilot.
Proposal
Add rtk init -g --agent copilot that:
- Creates
.github/hooks/rtk-rewrite.json— PreToolUse hook config pointing tortk hook copilot - Creates/patches
.github/copilot-instructions.md— prompt-level RTK awareness - Verifies
rtkbinary is in PATH
Files to modify
src/main.rs— addCopilottoAgentTargetenumsrc/init.rs— addrun_copilot_mode()functionhooks/copilot-rtk-awareness.md— template for instructions (already exists)
References
- Hook implementation:
src/hook_cmd.rs(run_copilot, detect_format) - VS Code hooks spec: https://code.visualstudio.com/docs/copilot/copilot-extensibility-overview
- Existing patterns:
run_cursor_mode(),run_windsurf_mode(),run_cline_mode()insrc/init.rs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request