AI Papers: A Deep Dive podcast

Deleted Deny Rules, Unneeded Hunks, and Skills Agents Never Open

0:00
21:19
Rewind 15 seconds
Fast Forward 15 seconds
Deleted Deny Rules, Unneeded Hunks, and Skills Agents Never Open Sources covered: - When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy: https://arxiv.org/abs/2611.32195 - How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches: https://arxiv.org/abs/2611.34875 - Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate Calls: https://arxiv.org/abs/2611.31554 - MedSkill-E$^{2}$: Evaluating and Evolving Skills for Medical Agents: https://arxiv.org/abs/2611.34250 This episode was AI-generated on November 27, 2026. The script was written by an AI language model and the host voices were synthesized by Eleven Labs. The producer is not affiliated with Anthropic or Eleven Labs. A deny rule in your Claude Code settings can be quietly deleted by anything that answers permission prompts for you — no attacker code required, and the read went through in six out of six runs. From there: how to tell needed agent code from unneeded code one hunk at a time, why a quarter of partial-write crashes leave real damage behind, and why a skill file the agent never opens costs you 44 points of accuracy. Four papers from one day, each about something written down and who actually honors it. Key Takeaways: - Why a deny rule in Claude Code's user settings can be deleted by any party that answers permission prompts — and why the strict sandbox doesn't save you, because it builds its list from the same deny rules - The exact fix: move credential-protecting deny rules to the managed tier or the command line, where updates carried by an answer cannot write - How to separate needed from unneeded agent code — revert one hunk, rerun the tests — and why about 11 percent of agent code hunks are unneeded but not harmless - Why watching for repeated API calls catches only 41 percent of the harm from partial writes, and what to check at the end of a run instead - Why agents on Claude Code opened a relevant skill file only about 12 percent of the time, and the one added instruction that moved accuracy from 38 to 82 percent - Where each paper's evidence is thin: one harness, one simulated benchmark, and tasks deliberately screened to make the problem look large 00:00 - Who's allowed to edit the rulebook?: A quick refresher on what a coding harness is, and the key point that the harness — not the model — decides which tool calls run, using allow, ask, and deny rules in a plain text settings file. 02:54 - A guarantee that doesn't survive the session: Researchers show that Claude Code only inspects updates that add allow rules, so an answer carrying a deletion of a deny rule passes unchecked — and the deleted rule stays deleted into the next session. 07:03 - Move the rule before next session: The concrete mitigation — managed tier or command line — plus the survey finding that 5 of 70 prompt-relay tools can forward rule deletions, including the vendor's own Remote Control. 08:38 - Do coding agents really over-edit?: Microsoft reverts one hunk at a time across thousands of passing SWE-bench Verified patches to find out whether agents' bigger diffs actually contain unnecessary code. 10:09 - Eleven percent unneeded, nine in ten behavior-changing: About 11 percent of agent code hunks were unneeded, roughly nine in ten of those changed program behavior, and trajectory replay shows most were written at fix time — not leftover debugging. 12:15 - The clerk with the dry pen: When an agent's code crashes partway through several external writes and it reruns the block, about a quarter of confirmed partial-write episodes end with harm still in place — and both obvious safeguards fail. 16:02 - The skill file the agent never opened: Across 154 tasks and nine models, agents left to themselves scored 38 percent; told explicitly to open the skill file and follow it, 82 percent — with Claude Code opening the file only about 12 percent of the time. 20:17 - Three things to change this week: The practical wrap-up: where to put deny rules, why to check final state instead of calls, and how to test whether your skill file is actually being read. Recommended Reading: - SWE-bench: Can Language Models Resolve Real-World GitHub Issues?: The benchmark whose Verified subset supplied the 500 tasks and pass/fail tests that the hunk-reversion over-editing study depends on. (https://arxiv.org/abs/2310.06770) - AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents: The simulated app-and-database environment used to replay partial writes and snapshot state, which is why that paper's findings are both measurable and limited to one synthetic world. (https://arxiv.org/abs/2407.18901) - Identifying the Risks of LM Agents with an LM-Emulated Sandbox: ToolEmu attacks the same problem as the partial-write paper from the other direction — emulating tool side effects to surface irreversible, unasked-for actions before an agent touches a real system. (https://arxiv.org/abs/2309.15817)

More episodes from "AI Papers: A Deep Dive"