Reproduce “Counterfactual Trace Auditing of LLM Agent Skills” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xiaolin Zhou, Jinbo Liu, Li Li, Ryan A. Rossi, Xiyang Hu

The paper introduces Counterfactual Trace Auditing (CTA), a framework to measure how agent skills alter Large Language Model (LLM) agent behavior by comparing paired "with skill" and "without skill" execution traces. Applied to SWE-Skills-Bench tasks with Claude Sonnet 4.5, CTA revealed a substantial evaluation gap: skills generated 696 behavioral divergences and 522 Skill Influence Pattern instances despite a near-zero average change in unit test pass rates, indicating significant behavioral shifts often unnoticed by aggregate metrics.

Key insights

  • A substantial "evaluation gap" exists: skills induce numerous behavioral changes (divergences and SIPs) in agent trajectories that are often not reflected in aggregate pass rate metrics.
  • The impact and type of skill influence vary with the agent's baseline performance, with ceiling tasks showing high behavioral change but no pass-rate gain, and mid-range tasks exhibiting recoverable gains often at high token cost.
  • Destructive patterns like Surface Anchoring are more prevalent in tasks where agents already perform well, suggesting skills can hinder rather than help in high-performance contexts.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.