The first automated red-teaming agent for code agents assembled a tailored jailbreak toolbox and exposed previously unknown risks in Cursor and Codeium
AspireAI community · arXiv (cs.SE) - ICLR 2026
Static safety benchmarks and manual red-teaming miss real-world risky scenarios in code agents, including boundary conditions produced by combining different jailbreak tools. RedCodeAgent is the first automated red-teaming agent built for this, using an adaptive memory module over existing jailbreak knowledge to pick the most effective tools and tool combinations into a tailored toolbox per query, and evaluating in simulated sandbox environments so execution results are checked rather than judged from static code alone. Across multiple state-of-the-art code agents, risky scenarios and programming languages it consistently beat existing red-teaming methods with higher attack success and lower rejection rates, and it was then validated on the real assistants Cursor and Codeium, exposing previously unidentified security risks, with code and data released. The limitation: the work demonstrates an attack rather than a defence, and its own numbers come from attacking the models and tools available at the time.
Read the story and explore more from the AspireAI community.
Two sparse-autoencoder analyses have resisted scaling: matching semantically similar features across layers, and compressing large feature circuits into interpretable supernodes. This paper argues both are the same underlying problem, estimating semantic distances between SAE features that sit on different activation manifolds. Its representation treats each feature not as a single decoder vector but as an activation-weighted distribution over the hidden states expressing it, projects those distributions into a shared reference space, and compares them with Wasserstein distance. The representation is proved invariant to activation rescaling and stable under perturbation, and recovers true matches under finite-sample margin conditions. Empirically it outperformed decoder-vector and LLM-based baselines and captured subtle functional distinctions between related features, and it compressed large feature circuits into interpretable supernodes automatically. The limitation is that this is interpretability tooling: the paper demonstrates better feature matching and circuit compression, not that downstream interpretability claims become more accurate.