Repository navigation
Conversation
Collaborator
|
Thanks for this. The per-agent rule files this PR edits (antigravity, cline, codex, kilocode, windsurf) were removed by #3372, merged on 2026-09-07, which replaced them with a shorter awareness text that no longer asks agents to prefix every command with rtk, so the env caveat no longer has a rule to attach to. Two places still carry the old 'always prefix with rtk' wording without the env note: the Copilot instructions in src/hooks/init/copilot.rs and the legacy --claude-md block in src/hooks/init/mod.rs; a narrow PR against those files, or a comment on #1606, would be welcome. If I missed a part of this change, please comment or reopen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The existing agent instructions say to always prefix commands with
rtk, which leads agents to generate commands such asrtk env X=Y cargo test. In this order, RTK handlesenvas the command and the inner supported command does not go through its token-saving filter. RTK already passes its environment to the commands it dispatches, so the native formenv X=Y rtk cargo testpreserves the required environment while still allowing RTK to filter the inner command.env X=Y rtk <command>instead ofrtk env X=Y <command>.envcommand while ensuring the wrapped command still benefits from RTK output filtering and token savings.Resolves: #1606
Test plan
No new tests were added because this change only updates agent-facing wording, and the existing test suite does not assert the exact instructional copy.
cargo fmt --all --check && cargo clippy --all-targets && cargo testenv X=Y rtk <command>executes correctly.