Google EnvHarness Enables Self-Evolving Agents to Learn in Dynamic Environments

Google researchers have introduced EnvHarness, an open-source framework designed to dynamically adapt agent-training environments based on an agent’s weaknesses. This innovative approach allows for the enhancement of learning effectiveness and efficiency without necessitating changes to the agent, the environment, or the evaluation system.
Typically, self-evolving agents enhance their capabilities by rewriting prompts and acquiring new skills, but they seldom adjust the environments in which they function. This limitation can lead to stagnation in learning, as agents may stop benefiting from a static benchmark once they can solve the tasks presented to them.
Challenges in Environment Generation
Creating adaptive environments can be costly, often requiring domain-specific pipelines and relying on expensive or unreliable verification methods. Despite these investments, the environments often remain static. To address this challenge, the researchers developed EnvHarness, which acts as a programmable layer of plug-in components that can modify a static environment without altering its fundamental structure or evaluation system.
EnvHarness wraps an existing environment using its standard `reset()` and `step()` interface and offers three types of composable components: **setup**, which customizes the environment’s initial state; **rule**, which constrains state transitions based on the agent’s actions; and **link**, which customizes the observations presented to the agent.
Continuous Co-Evolution with EnvRigger
The framework also features EnvRigger, which automatically adapts the environment to a specific agent by analyzing its behavior, identifying recurring weaknesses, generating targeted modifications, and validating these changes through new interactions. This iterative process enables continuous co-evolution between the agent and its environment, leading to significant performance improvements that scale with the number of customized tasks.
According to the researchers’ findings, adding the EnvHarness layer resulted in enhanced agent performance across various benchmarks, including WebArena, SWE-bench Verified, and ALFWorld, without altering the core logic of the agents. The study involved several models, such as Gemini 3.1 Flash-Lite, Qwen3.6 27B, Gemini 3.5 Flash, and Claude Sonnet 4.6, which exhibited performance gains ranging from 2.9 to 3.7 percentage points.
Conclusion and Industry Impact
The researchers concluded that EnvHarness consistently delivers performance improvements where static environments fall short, generalizes across different domains through a domain-agnostic interface, and enhances efficiency by correcting unproductive behaviors. Asif Razzaq, founder and CEO at Marketechpost, highlighted on LinkedIn that EnvHarness effectively integrates with existing environments while preserving original tasks and human-built verifiers.
Source: InfoQ