
TL;DR
A new arXiv benchmark ran 6,560 sandboxed runs across Claude Code, Codex, OpenClaw, and Hermes with five LLMs. 68% of runs triggered unsafe signals, and 66% of all runs were unsafe yet still passed completion checks. Task completion does not prove an agent ran safely.
A new paper, "AgentS4D: Benchmarking Runtime Risks across the Execution Lifecycle of LLM-Based Workspace Agents," published on arXiv on July 31, does something few agent benchmarks have done before: it evaluates complete harness-model configurations in a sandboxed environment and separates the question "did the task complete" from the question "did the agent run safely."
The benchmark builds 328 risk-injected cases from 76 executable Workspace-Bench tasks, then runs every case across all 20 combinations of four harnesses (Claude Code, Codex, OpenClaw, and Hermes) and five LLM backends (GPT-5.5, Gemini 3.1 Pro, DeepSeek-V4-Pro, MiniMax-M3, and Qwen3.7-Plus). That is 6,560 runs, each judged twice: once for task completion and once for safety, with evidence organized across seven lifecycle checkpoints.
The case design space is the part worth reading closely. AgentS4D tracks six risk-entry sources, meaning the places where adversarial content can reach the agent: the user's message itself, an uploaded resource, webpage or URL content, an external skill bundle, preloaded memory and historical state, and an MCP or tool-protocol service. Those carriers combine with six induction strategies and nine target harms, so a case is defined by where the payload enters, how it is designed to influence the agent, and which harm it targets.
The headline results are blunt. Across all 6,560 runs:
The completion-vs-safety split is the paper's central finding, and it holds across every configuration. The unsafe share of completed runs exceeds 50% in 19 of the 20 harness-model pairs. The most extreme example is Hermes with DeepSeek-V4-Pro: the highest task completion rate in the grid at 98.48%, with 89.78% of those completed runs carrying unsafe verdicts. A green build here tells you almost nothing about runtime safety.
Two secondary findings matter for how teams evaluate agents:
The lifecycle evidence adds another layer. Of the unsafe runs, 97.74% showed evidence at two or more checkpoints and 86.73% at three or more, with four checkpoints the most common pattern (37.44%). Anomalies in assessment and planning stages co-occurred with observable unsafe actions or effects 1.55 times more often than chance. Notably, 818 unsafe runs had no evidence at the result-delivery checkpoint, and 810 of those still completed the task. The bad behavior happened during tool execution, external interaction, or state updates - none of which a final-output review sees.
From the archive
Jul 31, 2026 • 11 min read
Jul 31, 2026 • 9 min read
Jul 31, 2026 • 10 min read
Jul 31, 2026 • 7 min read
This is the first benchmark I have seen that treats an agent harness as part of the security perimeter rather than a neutral executor. The practical takeaways for developers are concrete:
The single most useful sentence in the paper is its conclusion that "task completion cannot establish runtime safety." That reframes a lot of agent product marketing, which tends to advertise pass rates on agentic benchmarks. Pass rates measure whether agents can finish work; they say nothing about whether the work was done within the safety boundaries you intended.
The harness-model interaction result is the quietest and most disruptive finding. Teams standardize on one harness and one model and assume a safe configuration. AgentS4D suggests safety is a grid, not a point: 20 pairs, all with meaningful unsafe rates, and no way to predict a pair's behavior from either component alone. If you use agents with any autonomy, the defensible position is defense in depth: sandboxed execution environments (we compared the options in where your agent should run code), least-privilege tool grants, and approval boundaries that treat every tool call as a potential payload delivery - because approval fatigue is exactly how the 66% completes anyway.
No code or dataset was released with the paper yet, so treat the specific rates as a research result rather than a ranking of your tooling. The framework, though, is portable: six entry sources, nine harms, seven checkpoints is a workable checklist for anyone auditing their own agent stack.
Read next
Prompt injection, sandbox escapes, and hallucinated dependencies are now documented, patched, CVE-numbered realities. Here is the threat model for agent-written code and the defenses worth adopting this week, ranked by effort.
13 min readHow Claude Code, Cursor, Codex, GitHub Copilot, Aider, and Windsurf handle permissions, sandboxing, credential protection, and prompt injection. A structured comparison for engineering teams evaluating agent security.
10 min readBefore an AI agent gets tools, files, APIs, MCP servers, or deployment access, decide what it can read, write, call, log, and roll back.
8 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Anthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolOpenAI's open-source terminal coding agent built in Rust. Runs locally, reads your repo, edits files, and executes comma...
View ToolOpen-source terminal coding agent from Moonshot AI. Powered by Kimi K2.5 (1T params, 32B active). 256K context window. A...
View ToolOpenAI's coding agent for terminal, cloud, IDE, GitHub, Slack, and Linear workflows. Reads repos, edits files, runs comm...
View ToolEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppCompare AI coding agents on reproducible tasks with scored, shareable runs.
View AppSpec out AI agents, run them overnight, wake up to a verified GitHub repo.
View AppConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-developmentDeep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI Agents
Buzz by Block: Open-Source Slack-Style Collaboration for Humans + AI Agents (Demo & Setup) Check out Arcade: https://arcade.dev.plug.dev/xiDRwlA Repo: https://github.com/block/buzz The video introd...

Build Anything with Vercel, the Agentic Infrastructure Stack Check out Vercel: https://vercel.plug.dev/cwBLgfW The video shows a behind-the-scenes walkthrough of how the creator rapidly builds and d...

The video reviews OpenAI’s newly released GPT 5.4, highlighting access tiers (GPT 5.4 Thinking in ChatGPT Plus/Teams/Pro/Enterprise and GPT 5.4 in the $200/month tier) and API availability. It covers

Prompt injection, sandbox escapes, and hallucinated dependencies are now documented, patched, CVE-numbered realities. He...

How Claude Code, Cursor, Codex, GitHub Copilot, Aider, and Windsurf handle permissions, sandboxing, credential protectio...

Before an AI agent gets tools, files, APIs, MCP servers, or deployment access, decide what it can read, write, call, log...

A builder's guide to picking a code-execution sandbox for AI agents - E2B, Daytona, Modal, Cloudflare Sandbox, and Verce...

Manual approval prompts stop protecting users when coding agents ask too often. The better pattern is risk-aware autonom...

A controlled ablation across Claude Code and Codex, 17 real tasks, and 288 evaluated runs finds context-injection strate...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.