r/PiCodingAgent • • Sep 18 '26

Question Sandbox on Windows

Heard a lot about Pi and wanted to try it out. For Unix environments there seem to be quite a few options for OS-level sandboxing. For pure Windows though I can't find much that actually enforces it.

Are there any options I'm missing?

I mostly want to use Pi for C#/.NET development. I could set up WSL2 but I'd rather avoid that.

Codex supports Windows Sandbox for isolation on Windows. Has anyone tried getting something like that working with Pi?

1 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Abject-Kitchen3198 Sep 18 '26

Tried npm with that setup?

2

u/repolevedd Sep 18 '26

Not until you asked. I don’t use npm, so I tested it with Bun on the Excalidraw repo.

From WSL on a Windows-mounted drive:

1347 packages installed [228.96s]
bun install --no-cache  5.10s user 27.65s system 14% cpu 3:48.98 total

Inside WSL:

1347 packages installed [11.31s]
bun install --no-cache  2.58s user 5.79s system 73% cpu 11.334 total

The difference is obviously huge. Not sure when we’d need this, but good to know.

I also tested copying large files back and forth, and there was no difference. The speeds matched what I get from my drives.

1

u/Abject-Kitchen3198 Sep 19 '26

Probably operations involving large number of file operations. Coding agents were choking on find/grep on larger folders mapped from Windows. Everything works great inside WSL, so I'm recently trying to run Linux version of IDE inside WSL. Works well so far.