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
RTK is not being configured properly with global initialization for VS Code + Copilot #2216
I've run rtk init -g --copilot in my home directory (in WSL), and the coding agents are not using the tool. I know this because I tell an agent in VS Code chat to run a terminal command, and the report generated by rtk gain is not updated.
There are a few evidences that point to this issue:
the output that I get from rtk init -g --copilot reads
[ok] Added Copilot instructions to ./.github/copilot-instructions.md
Works with VS Code Copilot Chat (transparent rewrite)
and Copilot CLI (deny-with-suggestion).
Restart your IDE or Copilot CLI session to activate.
So despite the user passing the global -g flag, the log says the installation was "project-scoped", which is strange.
the default directories where VS Code searches for instructions and hooks are ~/.copilot, not ~/.github, which is the one created by rtk.
even by moving the created files "rtk-rewrite.json" and "copilot-instructions.md" to the directories "/.copilot/hooks" and "/.copilot/instructions", the functionality still does not work. I can see that VS Code register the hook and the instruction, but the coding agent still does not preface terminal commands with rtk (as evidenced by the rtk gain report).
by running rtk init -g --copilot --dry-run, the output doesn't show which operations would have been done.
the documentation in the project README gives inconsistent instructions for initializing rtk for VS Code. In one code snippet, it says that the user should run rtk init -g for either claude code or copilot (although it doesn't specify if this works for copilot with VS Code). However, in other points of the documentation, it instructs the user to run rtk init -g --copilot.
All these evidences point to the conclusion that integration with VS Code + copilot is not being properly supported.
Workaround: by the way, I have managed to make rtk work by moving the two files to ~/.copilot (as described in item 3 above) and replacing the first line of the instructions file by the following lines:
rtk init -g --copilot incorrectly installs project-scoped instead of global, uses wrong VS Code directories (~/.github instead of ~/.copilot), and has inconsistent README docs; recommend fixing global init path logic and updating documentation.
Triaged automatically by wshm · This is an automated analysis, not a human review.
This appears to be already fixed in the current develop branch. Copilot global init issue was fixed by commit e3ad973 (merged to develop via PR #2101). Please verify on latest develop and close if confirmed.
The global install half of this is fixed by PR #2101, shipped in v0.42.3: rtk init -g --copilot now writes ~/.copilot/copilot-instructions.md and ~/.copilot/hooks/rtk-rewrite.json, reports the install as user-scoped, and --dry-run lists the files it would write. That part reproduces on the current build. The VS Code Copilot Chat side could not be exercised here, so this is labeled resolved-pending-close rather than closed; please comment if VS Code still ignores the hook on the latest version.
Removing the resolved-pending-close label, because only part of this is fixed. The global install half did land in v0.42.3 (#2101): rtk init -g --copilot now writes ~/.copilot/copilot-instructions.md and ~/.copilot/hooks/rtk-rewrite.json, reports the install as user-scoped rather than project-scoped, and --dry-run lists both files. What you reported for VS Code Copilot Chat is still true on the current code: the generated instructions file has no applyTo: "**" front matter, which is exactly the block you had to add by hand, and rtk's own output describes the global install as applying to Copilot CLI sessions while the README advertises the same command for VS Code. Keeping this open for that part.
Activity
pszymkowiak commentedon Jun 2, 2026
🔍 Automated Triage
bughighSummary
rtk init -g --copilot incorrectly installs project-scoped instead of global, uses wrong VS Code directories (~/.github instead of ~/.copilot), and has inconsistent README docs; recommend fixing global init path logic and updating documentation.
Triaged automatically by wshm · This is an automated analysis, not a human review.
mikeangstadt commentedon Jun 2, 2026
This appears to be already fixed in the current
developbranch. Copilot global init issue was fixed by commit e3ad973 (merged to develop via PR #2101). Please verify on latestdevelopand close if confirmed.dograt commentedon Jun 14, 2026
Has this fix made it into a tagged release yet?
KuSh commentedon Sep 13, 2026
The global install half of this is fixed by PR #2101, shipped in v0.42.3:
rtk init -g --copilotnow writes ~/.copilot/copilot-instructions.md and ~/.copilot/hooks/rtk-rewrite.json, reports the install as user-scoped, and--dry-runlists the files it would write. That part reproduces on the current build. The VS Code Copilot Chat side could not be exercised here, so this is labeled resolved-pending-close rather than closed; please comment if VS Code still ignores the hook on the latest version.KuSh commentedon Sep 19, 2026
Removing the resolved-pending-close label, because only part of this is fixed. The global install half did land in v0.42.3 (#2101):
rtk init -g --copilotnow writes ~/.copilot/copilot-instructions.md and ~/.copilot/hooks/rtk-rewrite.json, reports the install as user-scoped rather than project-scoped, and --dry-run lists both files. What you reported for VS Code Copilot Chat is still true on the current code: the generated instructions file has noapplyTo: "**"front matter, which is exactly the block you had to add by hand, and rtk's own output describes the global install as applying to Copilot CLI sessions while the README advertises the same command for VS Code. Keeping this open for that part.