AI Haven
AI News

Meta Releases HyperAgents: AI Agents That Rewrite Their Own Code

Meta AI released HyperAgents, a self-modifying agent framework that allows AI systems to rewrite their own code for improved performance. The framework achieved 0.710 accuracy on paper review and 0.372 on robotics reward design.

April 3, 2026

Meta Releases HyperAgents: AI Agents That Rewrite Their Own Code

Meta AI Research has unveiled HyperAgents, a groundbreaking framework that enables AI agents to modify their own code to improve performance across tasks. Published on arXiv on March 19, 2026 (arXiv:2603.19461), HyperAgents represents a significant advancement in autonomous agent systems by integrating a task agent and a meta agent into a single, self-editable Python codebase.

The key innovation is metacognitive self-modification: the meta agent can rewrite its own improvement procedures, allowing the system to enhance not just task-solving behavior but also the mechanism that generates future improvements. This extends prior work on the Darwin Gödel Machine (DGM) by making the meta-level modification procedure itself editable.

How It Works

Unlike traditional AI systems with fixed improvement mechanisms, HyperAgents maintains a semantic graph of its codebase, configurations, tools, and logic. The modification loop works by reading code, identifying improvements through LLM-driven latent-space search, generating patches, and applying them at runtime with formal verification to ensure safety invariants.

The framework demonstrated empirical gains across multiple domains:

  • Paper review: 0.710 accuracy
  • Robotics reward design: 0.372 performance improvement
  • Coding: Significant improvements over baselines without self-improvement

Emergent Behaviors Never Programmatically Designed

Perhaps most striking are the emergent metacognitive behaviors researchers observed that were never explicitly programmed. These include persistent memory systems, performance tracking, self-diagnosis capabilities, and adaptive exploration strategies based on available compute resources.

Ablation studies revealed that both metacognitive self-modification and open-ended search are necessary for effective performance gains. Removing either mechanism resulted in stagnation, with neither configuration achieving meaningful improvements.

What This Means for AI Development

HyperAgents represents a shift toward open-ended adaptation in AI systems. The framework generalizes self-improvement by unifying the task and meta agent into a single editable program, potentially supporting self-accelerating progress on any computable task. Unlike prior systems that required domain-specific alignment, HyperAgents is domain-agnostic, applicable to coding, robotics reward design, academic paper review, and math grading.

Safety remains a consideration, with the framework incorporating formal verification of invariants before applying modifications. The research code is available via the published paper.

Source: Meta AI Research / arXivView original →