mlsanityData to 14 Oct 2026

SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Time

arXiv 2609.36580 ↗First posted 29 Sep 2026cs.AIcited by 1

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

LLM agents deployed in real-world environments continually encounter new tasks and safety risks, while execution feedback typically becomes available only after each task is completed. However, existing self-evolving approaches commonly rely on multiple rounds of optimization over fixed and repeatedly accessible task distributions, fundamentally differing from test-time adaptation in real-world deployment, where only experience accumulated from past tasks can be used to improve safety decisions on future unseen tasks. To address this limitation, we propose SafeCoEvo, a test-time Harness-Guard co-evolution framework for LLM agent safety that enables the external safety system to continually adapt from accumulated runtime experience. SafeCoEvo jointly improves two complementary safety capabilities at different timescales: S-Harness rapidly externalizes recent runtime experience into updatable explicit safety knowledge that can promptly influence subsequent tasks, while GuardVPO internalizes accumulated runtime safety experience over a longer timescale into parametric risk-judgment capabilities. By combining short-term rapid adaptation with long-term capability consolidation, SafeCoEvo continually improves the agent's safety capabilities, reducing the unsafe outcome rate by 10.05% while improving the task success rate by 12.15% over the strongest baseline, thereby achieving simultaneous gains in safety and task utility.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 37 of its 61 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

37 of 61 references.

Closest ancestors · 13

Same direction, newest first

  1. 2026EvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents5 Sep
  2. 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment2 Sep
  3. 2026SHE: Trajectory-driven Safety Harness Evolution for LLM Agents10 Aug
  4. 2026AgentDoG 1.5: A Lightweight and Scalable Alignment Framework for AI Agent Safety and Security28 May
  5. 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment15 Apr
  6. 2026AgentDoG: A Diagnostic Guardrail Framework for AI Agent Safety and Security26 Jan
  7. 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
  8. 2025Progent: Securing AI Agents with Privilege Control16 Apr
  9. 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
  10. 2025G-Safeguard: A Topology-Guided Security Lens and Treatment on LLM-based Multi-agent Systems16 Feb
  11. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  12. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
1 more
  1. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct

Other references · 24

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  5. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
  6. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  7. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
  8. 2024AFlow: Automating Agentic Workflow Generationcited by 432
  9. 2024Automated Design of Agentic Systemscited by 407
  10. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 398
  11. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
  12. 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 284
12 more
  1. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
  2. 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 163
  3. 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 59
  4. 2026HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundrycited by 47
  5. 2024R2-Guard: Robust Reasoning Enabled LLM Guardrail via Knowledge-Enhanced Logical Reasoningcited by 43
  6. 2025DynaGuard: A Dynamic Guardian Model With User-Defined Policiescited by 19
  7. 2025Poly-Guard: Massive Multi-Domain Safety Policy-Grounded Guardrail Datasetcited by 14
  8. 2025Conformal Arbitrage: Risk-Controlled Balancing of Competing Objectives in Language Modelscited by 12
  9. 2026TAME: A Trustworthy Test-Time Evolution of Agent Memory with Systematic Benchmarkingcited by 10
  10. 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
  11. 2026SingGuard: A Policy-Adaptive Multimodal LLM Guardrail with Dynamic Reasoningcited by 6
  12. 2026Grounding Generative Planners in Verifiable Logic: A Hybrid Architecture for Trustworthy Embodied AIcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Practice Makes Unsafe: Skill Misevolution in Self-Improving LLM Agents
  2. 2026Safety Testing LLM Agents at Scale: From Risk Discovery to Evidence-Grounded Verification
  3. 2026HARDE: Optimizing Agent Harnesses for Runtime Risk Detection and Execution Control
  4. 2026Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents
  5. 2026TTHE: Test-Time Harness Evolution
  6. 2026On-Policy Self-Evolution via Failure Trajectories for Agentic Safety Alignment
  7. 2026HarnessForge: Joint Harness and Policy Evolution for Adaptive Agent Systems
  8. 2025AdvEvo-MARL: Shaping Internalized Safety through Adversarial Co-Evolution in Multi-Agent Reinforcement Learning