Related ToolsClaudeChatgpt

Meta Open-Sources HyperAgents, a Framework for AI That Rewrites Its Own Code

AI news: Meta Open-Sources HyperAgents, a Framework for AI That Rewrites Its Own Code

Most AI agent frameworks have a hard ceiling: a human designs the improvement loop, and the agent operates within it. Meta Research just released one that doesn't have that constraint.

HyperAgents, published on GitHub under a Creative Commons non-commercial license, is a framework for building AI agents that can rewrite not just their task-solving code, but the code that governs how they improve. The research team, spanning Meta's FAIR lab, Meta Superintelligence Labs, University of British Columbia, and NYU, calls this "metacognitive self-modification." In plain terms: the system that decides how to get better can itself get better.

How the Loop Works

Traditional self-improving AI has two pieces: a task agent that solves problems, and a meta agent that tweaks the task agent. The question nobody had a clean answer for was "who improves the meta agent?" Previous systems like Meta's own Darwin Godel Machine kept that meta-level procedure fixed and hand-written by researchers.

HyperAgents collapses both into a single editable Python program. The agent modifies its own source code, tests the new version against benchmarks, and keeps successful variants in an archive. The meta agent is part of the codebase it modifies, so over time the improvement strategy itself evolves.

The underlying LLMs powering the agents are Claude and GPT-4o, with their weights frozen. The agents aren't fine-tuning (adjusting the model's internal parameters) - they're rewriting the Python code that orchestrates how those models are used.

The Benchmark Numbers

On a polyglot coding benchmark, HyperAgents improved from a 14% pass rate to 34% on training tasks, and from 8.4% to 26.7% on held-out test problems - roughly a 3x improvement through self-modification alone. On an AI paper review task, it reached 71% accuracy, beating the AI-Scientist-v2 system's 63%. In simulated robotics, agents autonomously discovered complex behaviors like jumping that weren't in their original programming.

The more interesting result is cross-domain transfer. Agents trained on one task type achieved measurable improvement on completely novel domains, while agents with fixed meta-procedures scored approximately zero on the same transfer tests. The self-improving meta-strategies generalize.

What Emerged Without Being Programmed

The agents independently developed persistent memory systems, performance tracking, prompt templates, and compute-aware exploration strategies. Nobody told them to build these things. They emerged because the agents had the freedom to modify their own infrastructure code.

The Practical Reality

This is a research framework, not a product. It requires Docker, API keys for OpenAI, Anthropic, and Google, and runs best in sandboxed environments for good reason - the system executes model-generated code. The team's own safety warning notes that generated code "may still behave destructively due to limitations in model capability or alignment."

The CC BY-NC-SA license means commercial use is off the table without a separate agreement. With around 1,000 GitHub stars in its first week, it's attracting researcher attention but this isn't something you'd drop into a production workflow.

Still, the core finding matters: an AI system that can improve how it improves shows compounding gains that fixed-strategy systems can't match. That's the kind of result that makes the next generation of AI coding assistants and research tools meaningfully more capable than prompt engineering alone can deliver.