I've seen folks using the VS Code workspaces concept for this. It's a bit limited but a good step in the direction I prefer.

VS Code workspaces doesn't seem to offer any protection:

https://code.visualstudio.com/docs/editing/workspaces/worksp...

Maybe you use GitHub codespaces?

No, I did mean VS Code workspaces. Now I'm going to go down this rabbit hole to better understand the boundary limits :)

I did some reading of the docs and can't see anything in VS Code workspaces that would help.