An agent nuked half my Obsidian vault. How are you sandboxing your coding agents?

Reddit r/AI_Agents 新闻

摘要

An AI coding agent accidentally deleted half of an Obsidian vault, prompting a discussion on sandboxing methods to safely integrate coding agents into workflows while preserving data.

Mid-session, Claude Code was running inside my Obsidian Second Brain when it fired off a cleanup command that deleted half my notes. Only Obsidian Sync backups saved 2 years of work. I first did what everyone recommends and ran my agents in a completely different VM. The UX was terrible. You lose your conversations, config, and memory every time you switch. For day-to-day operations, I hated it. Instead of jailing the entire environment, I considered sandboxing only the computer-use tools (read, write, edit, bash) while keeping the harness on my local computer, transforming my harness into a control plane. Every tool the LLM emits gets wrapped by a sandbox executor. The tool never knows where the command runs. You keep your conversations, config, and memory, while execution stays isolated. Which means you can easily swap your execution backend: local Docker/Podman containers, or remote Modal sandboxes. By running remote sandboxes, you have some dope side effects: You can easily swap compute: Switch your sandbox from a CPU to a GPU machine for agentic inference or fine-tuning tasks. Such as renting 8xB200 on Modal to process your docs with Kimi K3. You can orchestrate a swarm of subagents with your host harness, each running in a different remote sandbox, without being limited by your own machine. Still, for ad-hoc supervised sessions, a sandbox feels like overkill. I am still running Claude Code in my Obsidian vault without sandboxing, as the friction annoys me more than the possibility of losing data. That's why I am curious: how do you sandbox your coding agents while nicely integrating them into your existing workflow?
查看原文

相似文章

四大编码代理供应商的7个沙箱逃逸漏洞

Lobsters Hottest

Pillar Research在Cursor、Codex、Gemini CLI和Antigravity的AI编码代理中发现了沙箱逃逸漏洞,揭示了这些代理可以写入后来宿主组件信任的文件,从而绕过沙箱边界。该发现凸显了为代理安全建立新威胁模型的必要性。

在沙盒中部署智能体 vs 解耦

Reddit r/AI_Agents

本文比较了在云环境中部署 AI 智能体的两种模式:直接在沙盒中部署与解耦组件。文章解释了沙盒方法因云故障而存在的局限性,并重点介绍了 Anthropic 的 Claude Managed Agent 作为解决方案,该方案将会话存储、智能体运行时和沙盒解耦,以提高弹性。