SafeEvolve Improves AI Agent Safety Through Co-Evolution

Qinghua Mao, Wanying Qu, Dadi Guo, Leitao Yuan, Qingyu Liu, Yu Li, Guanxu Chen, Yanwei Fu, Xi Lin, Xia Hu, Dongrui Liu· September 3, 2026 View original

Key takeaways

  • SafeEvolve co-evolves AI agent harnesses and policies for improved safety alignment.
  • It uses on-policy safety experience to drive continuous updates.
  • Harness updates are auditable and reversible, enhancing control.
  • The framework achieves a stronger safety-utility tradeoff than existing methods.

Who benefits

Autonomous VehiclesHealthcareFinancial ServicesCybersecurityRobotics

Summary

SafeEvolve is an experience-driven framework that enhances AI agent safety by continually co-evolving both the agent's harness (external controls) and its policy (internal behavior) based on on-policy trajectory safety experience. This approach leads to a stronger safety-utility tradeoff compared to existing methods.

The performance and safety of Large Language Model (LLM)-based agents are determined by both the underlying model and the "harness" that governs its interaction with the environment. This dual dependency exposes agents to safety risks, not just in their final responses but also throughout multi-step execution trajectories. Current safety alignment methods often focus on either external harness updates or internal policy optimization in isolation, failing to fully integrate runtime control with intrinsic safety. SafeEvolve proposes an innovative solution: an experience-driven, self-evolving framework for agent safety alignment. It operates on a continuous loop where safety experiences gathered from completed on-policy trajectories drive the co-evolution of both the agent's harness and its policy. On the harness side, SafeEvolve translates trajectory-level safety evidence into bounded, component-level updates for safety prompts and hierarchical skills, producing auditable and reversible harness artifacts. Concurrently, on the policy side, SafeEvolve employs a two-stage Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) paradigm. SFT first bootstraps the policy to actively utilize the evolved harness artifacts, while harness-augmented RL further refines autonomous safety behaviors during multi-step exploration using verifier-decomposed rewards. This co-evolutionary process effectively converts safety experience into an improved runtime harness and enhanced policy behavior. Experiments on agentic safety benchmarks demonstrate that SafeEvolve achieves a superior safety-utility tradeoff, for instance, reducing Attack Success Rate (ASR) by 3x on AgentDojo for Qwen3.5-4B while also improving benign utility.

Why it matters

For professionals deploying AI agents in sensitive or critical applications, SafeEvolve offers a robust framework to continuously improve safety alignment and mitigate risks, ensuring agents operate reliably and ethically while maintaining utility.

How to implement this in your domain

  1. 1Implement a system to collect and analyze safety-related experiences from your AI agent's operational trajectories.
  2. 2Develop a mechanism to translate trajectory-level safety evidence into granular updates for agent harnesses (e.g., safety prompts, skill definitions).
  3. 3Integrate a two-stage SFT-RL pipeline to co-evolve the agent's policy, ensuring it actively leverages updated harness artifacts.
  4. 4Utilize verifier-decomposed rewards in the RL stage to shape autonomous safety behaviors during exploration.
  5. 5Establish auditable and reversible processes for harness updates to maintain control and transparency over safety modifications.

Original post by Qinghua Mao, Wanying Qu, Dadi Guo, Leitao Yuan, Qingyu Liu, Yu Li, Guanxu Chen, Yanwei Fu, Xi Lin, Xia Hu, Dongrui Liu

"arXiv:2609.02786v1 Announce Type: new Abstract: The performance of LLM-based agents is jointly shaped by the base model and the harness used when interacting with the environment. This exposes them to safety risks in both harmful final responses and multi-step execution trajector…"

View on X

Originally posted by Qinghua Mao, Wanying Qu, Dadi Guo, Leitao Yuan, Qingyu Liu, Yu Li, Guanxu Chen, Yanwei Fu, Xi Lin, Xia Hu, Dongrui Liu on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses