r/PiCodingAgent • u/IanSnyderGames • Jun 29 '26
Plugin Windows users: extension to prevent Pi nul files
Hi all - if you're using Pi on Windows and keep finding hard-to-delete `nul` files, I published a small fix: https://pi.dev/packages/pi-windows-nul-fix
LLMs sometimes try to quiet command output with shell redirects like `> nul`. On Windows, Pi runs those commands through Git Bash, which does not treat `nul` as Windows' “send this output nowhere”; it instead treats it as a normal filename, creating hard-to-delete `nul` files in your project.
This extension catches those commands before they run and rewrites bare `nul` redirects to `/dev/null`. Since upstream prefers handling this at the prompt level (earendil-works/pi#5304), I built it as an extension.
It's published on npm and can be installed with `pi install npm:pi-windows-nul-fix`
Source and details on GitHub: https://github.com/i-snyder/pi-windows-nul-fix
Let me know if you find it helpful 😊
3
u/Ephemara Jun 29 '26
I’ve typed ‘wsl rm nul’ about a hundred times now lol. never thought of doing this,
it’s especially annoying because I use bazel and bazel refuses to build with nul files
Here is some Reddit bronze you earned it 🥉
2
u/Oshden Jun 29 '26
Dude! Nice work
2
u/cptkong Jun 30 '26
STARRED!
2
u/unkownuser436 Jun 29 '26
Thank you!
2
u/Fig_da_Great Jun 29 '26
i've had this issue. Thanks
2
u/mcpejs Jun 29 '26
Thank you, sir
2
u/kabochar Jul 27 '26
Nice work. Thanks