Add Windows Command Line Best Practices to AGENTS.md#7980
Merged
NachoEchevarria merged 2 commits intomasterfrom Dec 23, 2025
Merged
Add Windows Command Line Best Practices to AGENTS.md#7980NachoEchevarria merged 2 commits intomasterfrom
NachoEchevarria merged 2 commits intomasterfrom
Conversation
bouwkast
approved these changes
Dec 19, 2025
Collaborator
bouwkast
left a comment
There was a problem hiding this comment.
FWIW whenever this happened I just started a WSL instance in the terminal and ran git clean -fd
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 of changes
Added clear guidelines to AGENTS.md about avoiding
>nuland2>nulredirections on Windows, which can create literal "nul" files that are extremely difficult to delete.Reason for change
On Windows, redirecting to
nul(e.g.,command 2>nul) can create a literal file named "nul" in the current directory instead of properly redirecting to the NUL device. These files are problematic because:This issue was documented in anthropics/claude-code#4928
Implementation details
findstrwith2>nul)\\.\NULif suppression is essentialTest coverage
Other details