DEV Community· 疏影·· 2 小時前AI 評分24
讓任何 AI 編碼智能體接觸電腦前,我必先設定的一件事
The First Thing I Set Up Before Any AI Coding Agent
AI 導讀
作者在讓任何 AI 編碼智能體接觸其電腦前,先把工作區映射至專用磁碟機代號,令智能體無法看見 C: 磁碟機。處理本機檔案可用 subst.scsoi.com,雲端或 WebDAV 存取則可用 drive.scsoi.com 掛載磁碟機。
正文
Before I let any AI coding agent touch my machine, I do one thing: map its workspace to a dedicated drive letter.
Why
Agents go rogue. They run rm -rf on the wrong path. They refactor config files they shouldnt touch. They read your SSH keys.
A drive letter stops all of that at the OS level.
How
- If the agent works on local files: subst.scsoi.com maps a folder to a drive letter
- If the agent needs cloud/WebDAV access: drive.scsoi.com mounts it as a drive
The agent sees a normal drive. It can read and write freely there. It cannot see your C: drive. Period.
No containers needed
Docker works but its heavy. A drive letter is instant, zero overhead, and works with every tool that accepts a path.
Set it up once. Run agents worry-free forever.
來源:DEV Community · dev.to