{"author":"lebovic","children":[],"created_at":"2026-01-23T01:48:25.000Z","created_at_i":1769132905,"id":46727420,"options":[],"parent_id":null,"points":2,"story_id":46727420,"text":"Hey HN! I built an agent sandboxing quickstart that&#x27;s heavily inspired by the APIs and UX from Claude Code on the web (claude.ai&#x2F;code).<p>It&#x27;s built as a base for quickly prototyping domain-specific custom agents. You can fork the repo, point Claude Code at it, and quickly get to a working and usable prototype.<p>I built this after collaborating with a team that&#x27;s building an agent for biology. If they used something like this as a base when they started, I think it would have sped things up at the start.<p>This is yet another agent sandboxing project, but this one is interoperable with Claude Code&#x27;s built-in session management. It does this by using the three arguments that I learned about from trying out claude.ai&#x2F;code: --replay-user-messages, --sdk-url, and --resume. The --sdk-url arg enables live interaction over a WebSocket, and the --resume arg pulls session history from a URL.<p>This starter includes persistent sessions that are interoperable with what Claude Code expects, event streaming over a WebSocket, a web app, and spawning sandboxes through Modal or a Docker host.<p>Long-lived credentials stay outside of the sandbox; it has a basic credential-injecting proxy for the Anthropic API and GitHub. The proxy limits git pushes to a session-scoped branch.<p>There&#x27;s still a gap between forking this app and charging users for a custom agent, but I think it&#x27;s a somewhat sane set of choices for quickly prototyping.<p>(I used to work at Anthropic, but this isn&#x27;t affiliated with them and was built solely with public information.)","title":"Show HN: An agent sandboxing quickstart based on Claude Code","type":"story","url":"https://github.com/lebovic/agent-quickstart"}
