Let an agent extend its own code inside a Docker sandbox
An agent built on Claude and Agno implements capabilities in its own source code in Docker, with changes validated, committed, or rolled back; it reached 21+ capabilities. ·
Done withClaude
- What they did
- Miguel, built on Claude and the Agno framework, runs inside Docker with the project mounted read-only and only its own code directory writable. A host-side runner snapshots git, gives the agent its source plus the next capability, then validates changes with AST, JSON schema and import checks. It commits on success and rolls back on failure.
- How it went
- It finished all 10 seed capabilities, wrote its own checklist, and reached 21+ capabilities. A consolidation batch cut code by 10% and the system prompt by 63%. It still sometimes makes questionable decisions.
- Worth knowing
- Each improvement batch costs roughly a few euros in Claude API calls, and the agent can exhaust its context by reading six or more of its own files before writing any code.
Try it yourself with Claude Code
Help me set up a Docker sandbox where an agent can add new capabilities to its own source code in [repo path]. Each change should run the tests, be committed if they pass, and be rolled back if they fail, with a log of what happened. Finish by having it add [first capability, e.g. a web search tool] and show me the commit and test results; pause before any change that touches files outside the sandbox.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: HN · Mar 10, 2026
Related use cases
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Flag risks in a 50-page contract before signing
The poster uploaded a 50-page contract and Claude flagged an auto-renewal near the end and a liability term they would have missed.
Build and install Android apps on a phone remotely with Claude Code
A dev runs Claude Code on a build VM, directs it from the phone Claude app to build Android apps, then installs them onto their phone over the network via adb.
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Build and deploy a meeting app from a prompt
A user had Replit Agent create a meeting app with dashboard, logic and analytics, and deploy it live without manual code changes.
Triage AWS costs with a slimmer MCP server
Author rebuilt an AWS cost-triage MCP server from 15 tools to 4, cutting a question from 7 tool calls to 2 with schemas 88% smaller.
Custom agent
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.