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 withClaudeAgno
- 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.
Source: HN · Mar 10, 2026
Five of these in your inbox every morning
The best things people got an AI agent to do, each with the prompt to try it.
More like this
- Claude
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.
- Custom agent
Add agentic forgetting to an agent's memory
Someone implemented a rudimentary version of Tim Kellogg's agentic forgetting approach and reports it works impressively even in its simplest form.
Hand narrow code changes to Devin for pull requests
A team used Devin for a month on small fixes like chart formatting and API edge cases, with tests and PRs; a complex full-stack task went poorly.
Migrate toolchain, architecture and site design with Claude Code
A developer had Claude Code switch a monorepo to oxlint/oxfmt, restructure the architecture and redesign a site, validating in a loop; the redesign took days instead of weeks.
Build and deploy a Game of Life simulation site
In a vendor launch demo, Devin built an interactive Game of Life website, added requested features step by step, and deployed it to Netlify.
Resolve a Slack-reported issue with a coding agent
A Codex agent resolved an issue passed to it in about 40 minutes, and an ops agent verified the fix back in Slack.