Ask HN: How to limit AI coding tools access to the file system?

2 zzabc 2 4/21/2025, 12:44:30 AM
Hello HN, is there a way to prevent AI coding tools like Cursor and Claude Code from having access to the whole file system, and limit them to the project directory?

I am asking as someone who works for many clients and on their own projects on the same computer and who is still hesitating to install these tools.

Comments (2)

benoau · 11d ago
You could use a separate, limited user account for each project.

You could also confine them to containers pretty easily, VSCode has some solid extensions for SSH and container-based development.

dtagames · 10d ago
I have never seen Cursor reach outside the open repo unless you ask it to.