Original title: SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment
Qinghua Mao, Wanying Qu, Dadi Guo, Leitao Yuan +7 · September 2026
AI agents face safety risks in their final answers and the action steps they take. Today, researchers usually try to fix safety by only tweaking the outer software wrapper, called a harnessThe system or rules that guide how an AI agent interacts with its environment., or by only training the core AI model, called the policyThe AI model's decision-making process for choosing actions.. Doing just one leaves safety gaps. To fix this, researchers created SafeEvolve. It uses safety data from past multi-step runs to improve both parts together in an ongoing loop. SafeEvolve updates the harness by changing safety prompts and skill tools so they remain easy to inspect and undo. It then trains the model in two steps: first teaching it to use the new harness tools, and then rewarding safe choices during multi-step actions. Tests show SafeEvolve beats current methods, lowering harmful actions while boosting standard performance.
You're learning to cook from a recipe book, but the kitchen conditions change every day. The recipe is a guide, but if you only follow it rigidly, you might burn the food when the stove is hotter than usual. In this paper, the recipe book is like the AI's interaction rules, and the chef's improvisation is like its decision-making. SafeEvolve lets the AI update both the recipe and its cooking style based on what actually works, making meals both safe and tasty.
AI agents can cause harm through bad responses or actions, but making them safer often reduces their usefulness. This work lets them become safer while improving at helpful tasks, which matters for anyone using or building AI systems.
The work is demonstrated only on the Qwen3.5-4B model and agentic safety benchmarks like AgentDojo. It does not address generalization to other models or real-world environments beyond the tested benchmarks.
Ask anything about this paper. Answers come from its abstract, and say so when the abstract doesn't cover your question.
SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment — Qinghua Mao, Wanying Qu, Dadi Guo et al.
Abstract licence: CC0
Explanation generated by Synthesis from the abstract — it is not the original paper. This is a preprint, so it hasn't necessarily been peer reviewed.