acceptodds
Published as a conference paper at NeurIPS 2026

Agent MechSuits : Mechanistic Subspace Safety Steering for Multi-Turn CLI Agents

Weidi Luo, Qiming Zhang, Mingyu Jin, Jie Cai, Yihao Quan, Chaowei Xiao, Jingcheng Niu, Zhen Xiang

Abstract

Command-Line Interface (CLI) agents based on large language models (LLMs) demonstrate remarkable autonomous capabilities, but they also introduce significant safety and misuse risks during multi-turn interactions with external environments. Existing safety mechanisms mainly rely on external guardrails, which have a limited ability to perform fine-grained behavioral control during execution. Meanwhile, recent mechanistic interpretability methods for LLM safety are mostly confined to single-turn or jailbreak-style QA settings, limiting their ability to capture the evolving risk dynamics of multi-turn agent execution. In this paper, we investigate the safety of multi-turn CLI agents from an internal perspective. We propose Agent MechSuits (Mechanistic Subspace Intervention and Steering), a white-box defense framework that performs runtime safety detection and representation-level mitigation for CLI agents. Unlike conventional agent guardrails, Agent MechSuits detect harmful execution states from step-level hidden representations and mitigate unsafe behavior by intervening in a 10-dimensional subspace within a single layer. To support this research, we introduce the Mechanistic Agent Safety (MAS) benchmark, comprising comprehensively annotated multi-turn execution trajectories across 194 tasks using LLaMA-3.1-8B, Qwen-2.5-7B, and Gemma-2-9B. Extensive experiments show that Agent MechSuits achieves strong safety detection performance, supports lookahead risk anticipation, and substantially reduces harmful agent actions, establishing a foundation for applying mechanistic interpretability to dynamic LLM agent safety.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Top 24%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.67 over 3 reviews, above 76% of the others.
Reviewer_eDdVOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes Agent MechSuits (Mechanistic Subspace Intervention and Steering), a white-box defense framework for Command Line Interface agents to perform safety checks and apply runtime mitigations at the level of model representations. The method uses a linear probe in order to evaluate MechSuits, and use it to identify 10 subdimensions in residual stream to perform an intervention on a single intermediate level. To evaluate MechSuits, the authors create Mechanistic Agent Safety (MAS), a benchmark with annotated multi-turn agentic trajectories that measures safety per each step in trajectory. The paper provides first proof of concept results on how to apply mech interpretability research to online LLM safety by showing that MechSuits provides strong detection rates and, when mitigation is performed, reduces the risk of harmful actions, although at the price of the model's utility. Additionally, the paper provides weak preliminary evidence that hidden states can anticipate future harmful steps.

Strengths and weaknesses

Strengths:

  1. This paper is among the first to apply mechanistic/activation-based safety monitoring and representation-level steering to multi-turn CLI agents, combining step-level hidden-state probing, runtime detection, and internal mitigation in an executable command-line environment. Prior work has studied activation-based safety monitoring or steering mostly in single-turn/jailbreak-style LLM settings.
  2. The proposed benchmark, MAS, is annotated at each step in the trajectory, making it possible to evaluate per step safety.
  3. Paper is well-written, contributions are clearly specified, and all definitions are given using proper notation.
  4. Baselines are diverse and cover multiple defense paradigms, including LLM judges, external guardrails, prompt-level reminders, and representation-engineering methods.
  5. The paper is transparent about limitations. It reports collapse rates, acknowledges sparse lookahead data, discusses label ambiguity, and notes that prompt-injection detection does not generalize reliably. This is good for positioning the empirical claims of the paper.

Weaknesses:

  1. The main weakness of the paper for me is incomplete utility evaluation. Utility is considered during steering selection and indirectly evaluated via collapse rate, but the paper does not seem to provide a comprehensive external utility evaluation such as benign task success rate. The authors notice that improved safety comes with a non-negligible generation-quality trade-off as measured in collapse rate, so this would be very important to directly measure the utility, as otherwise half of the results dedicated to steering are less reliable.
  2. The proposed method is evaluated on the benchmark authors create, somewhat weakening the result; there is no independent external benchmark or held-out benchmark family to strengthen it.
  3. No statistical significance or confidence intervals are reported, which is not good considering the small scale of some experiments.
  4. Not fully clear which parts of MechSuite matter: I would expect ablations over number of steering dimensions, target layer, signed vs unsigned steering vector, random dimensions, random direction, full probe direction, fixed alpha vs adaptive alpha, and last-token-only vs all-token intervention. These would clarify what parts of MechSuits matter.
Questions

Thank you for your work. I will consider increasing my score if the following is addressed:

  1. Full utility evaluations, not just collapse rate.
  2. Evaluating on at least one external bench, not only MAS. Or at the very least, have a held-out benchmark family.
  3. Confidence intervals are added to all experiments.
  4. Ablations over at least some of these: number of steering dimensions, target layer, signed vs unsigned steering vector, random dimensions, random direction, full probe direction, fixed alpha vs adaptive alpha, and last-token-only vs all-token intervention.
Limitations

yes

Paper formatting concerns

n/a

Final justification

See my response to the authors. Summary:

Overall, my main concern (weakness 1) was addressed. I'm at the edge between weak accept and accept at the moment, with the only remaining concern being large confidence intervals. As rebuttal deadline is almost over and it's not realistic to ask you to increase the sample size in 2 days, I will lean towards increasing my score to 5, and and strongly encourage you to improve your experiment for the final version of the paper.

Reviewer_LpxpOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper studies safety risks in multi-turn CLI agents, where harmful behavior may emerge during execution rather than from the initial instruction alone. The authors propose Agent MechSuits, a white-box framework that uses step-level hidden representations to detect harmful execution states with a linear probe and applies representation-level steering to mitigate unsafe actions. The paper also introduces the MAS benchmark with annotated CLI-agent trajectories and evaluates the method on several open-weight models, showing strong detection performance and reduced harmful actions through internal steering.

Strengths and weaknesses

Strengths

  1. Important problem. The paper studies safety risks in multi-turn CLI agents, where harmful behavior may emerge during execution rather than from the initial prompt alone.

  2. Useful benchmark. The proposed MAS benchmark provides step-level annotated CLI-agent trajectories, which are more suitable for evaluating dynamic agent safety than single-turn jailbreak benchmarks.

  3. Promising empirical results. The experiments show that hidden representations contain safety-relevant signals, and the proposed method achieves strong detection results across multiple open-weight models.

Weaknesses

  1. Limited technical novelty. The main components, including linear probing, safety-related hidden dimensions, and activation steering, are largely adapted from existing representation-based safety methods.

  2. Insufficient justification of steering design. Choices such as top-10 dimensions, one target layer, broadcast steering, and LLM-based search for steering strength require stronger ablations.

  3. Utility and robustness concerns. Although the method reduces ASR, it also increases the collapse rate, and the prompt-injection stress test suggests that the detector may not generalize well under distribution shift.

Questions
  1. Novelty and positioning. Could the authors better clarify how Agent MechSuits differs from prior representation-based safety methods such as linear probing and activation steering? This would help assess whether the main contribution is methodological novelty or mainly the new multi-turn CLI-agent setting.

  2. Steering ablation. The steering design depends on choices such as top-10 dimensions, one target layer, broadcast steering, and adaptive strength search. Could the authors provide lightweight ablations to show that the mitigation effect is robust rather than mainly due to tuning?

  3. Utility and robustness. Although the method reduces ASR, it also increases collapse rate, and the prompt-injection test suggests limited detector generalization. Could the authors provide more analysis of benign-task utility, collapse cases, and the detection-control gap under distribution shift?

Limitations

Partially. The authors acknowledge some important limitations, such as steering-induced quality trade-offs. However, the limitations discussion could further address generalization beyond MAS, the detector's weakness under prompt-injection distribution shift, and the increased collapse rate after intervention.

Paper formatting concerns

I did not notice any major formatting or anonymity concerns.

Final justification

I am raising my score from Borderline Reject to Borderline Accept. The rebuttal clarifies that the contribution lies mainly in applying representation-based safety methods to multi-turn CLI agents, rather than introducing new probing or steering techniques. The added steering ablations and benign-task results substantially address my concerns about tuning sensitivity and utility preservation.

Reviewer_gCohOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

This paper introduces the Agent MechSuits algorithm multi-step agents at the command line. The purpose of the new technique is to generalize beyond guardrails that focus on a single step LLM, where input is fed in and output is produced without any intermediate actions or observations. The method consists of two steps: first, a linear probe for harmful intermediate representations is trained and applied at inference time; then, when harmful states are detected, the LLM is steered away from that behavior. Empirical results show solid performance for both detection and steering.

Along with the model and algorithm, the paper also introduces a new benchmark dataset, Mechanistic Agent Safety (MAS), with annotated multi-task trajectories across 194 different tasks.

Strengths and weaknesses

The primary strengths of this paper are the clarity of the paper and the quality of the work. The technique itself is clearly laid out and described, the diagrams are helpful for understanding how the technique works, and the empirical results generally support the conclusions in the paper. The release of the benchmark dataset is also a great contribution from the paper and much appreciated.

In terms of weaknesses, my only complaint is on the paper’s claims of the originality or novelty of the work. I acknowledge that this may just be a point that I am misunderstanding, so I am very open to clarification from the authors. It is clearer to me how the steering part of the paper is distinct from single step LLMs, but it is unclear to me how the detection step of the algorithm is actually different from what one would do when applying a mechanistic interpretability technique to a single step LLM. As far as I can tell, the probe itself only takes the hidden state as input before determining the harmfulness. While it’s true that this hidden state is the product of the trajectory and therefore likely contains more or different information than the hidden state of a single step LLM, it’s unclear to me how or when the algorithm is actually using the full information about the trajectory, if at all. I raise this because there is a lot of motivation early on in the paper for how we need to generalize beyond the single step setting, but then when the probing and detection step is introduced, it does not seem as though the algorithm actually does anything different than what one would do in a single step approach (which is train a probe to identify harmful hidden states). Clarification on this would be appreciated.

Overall, however, my concerns are more about framing and claims of novelty than the actual results. The paper does show that it is able to detect and steer away from harmful executions in this multi-turn CLI setting, and that in itself is an excellent contribution to the literature. On top of that, the new benchmark will be very useful in encouraging future work on the problem.

Questions

My questions are based on the weaknesses that I described above.

  1. Does the detection probe incorporate information about the trajectory beyond what is contained in the hidden state?

  2. In the steering stage, an LLM judge scores candidate actions. Is that judge somehow fine-tuned for the task?

  3. How much computational overhead does the probing and steering process add to an agent’s normal runtime? The paper mentions that the probing is “lightweight” but I was wondering if there had been any quantification of the difference.

Limitations

There is a limitations section in the appendix, but limitations are not discussed in the main text. I suggest that the authors move at least some of the discussion of limitations to the main text.

Paper formatting concerns

None

Final justification

Thank you to the authors for their responses to my comments. I am glad to see some quantification of the computational overhead and more explicit discussion of the limitations. I will maintain my positive score.

Comments on the paper

1 comment
Meta-review

Summary of claims.

The paper proposes Agent MechSuits, a white-box defense for multi-turn CLI agents. A linear probe on step-level hidden states detects harmful execution states, and a 10-dimensional single-layer intervention steers the agent away from them, with steering strength chosen per step by an LLM-judge search. It contributes a new benchmark MAS—comprised of 194 tasks with step-annotated trajectories on three open-weight models—and reports improvements on it.

Strengths.

  • Reviewer gCoh: "The primary strengths of this paper are the clarity of the paper and the quality of the work... The release of the benchmark dataset is also a great contribution from the paper and much appreciated." Reviewer eDdV highlights that this is "among the first to apply mechanistic/activation-based safety monitoring and representation-level steering to multi-turn CLI agents." Reviewer Lpxp agrees the benchmark is "more suitable for evaluating dynamic agent safety than single-turn jailbreak benchmarks," improving upon the status quo.

Weaknesses.

  • Reviewer eDdV's main concern is particularly salient: "the paper does not seem to provide a comprehensive external utility evaluation such as benign task success rate... otherwise half of the results dedicated to steering are less reliable."
  • There are also some novelty questions. E.g., Reviewer gCoh's question: "it is unclear to me how the detection step of the algorithm is actually different from what one would do when applying a mechanistic interpretability technique to a single step LLM..."
  • Reviewer eDdV rightly raises a major weakness around confidence intervals. This is particularly salient when sample sizes (number of trajectories are very small between ~14-50 trajectories per model). Beyond confidence intervals, authors should consider a power analysis to ensure that the analysis is well-powered. Though reviewer eDdV currently rates the paper leaning positively, the issues they raise are significant.
  • Beyond what the reviewers raised (and perhaps to be corrected by authors if this is incorrect), but it appears that it appears that the lookahead claim rests on evaluation sets with no hard negative examples? So the metric appears to be more like recall than accuracy and perhaps would be less impressive on precision.

(d) What could change the outcome.

Reviewers suggest a number of improvements that require improving the rigor of the empirical results. On top of these, ensuring sample sizes are sufficient and that claims of accuracy are correct (as opposed to recall if there are no hard negatives in the set) will improve the paper. But this will require significant improvements on the empirical results to improve the paper and satisfy reviewers.


Update: After a back-and-forth with reviewers, most of the above concerns appear to have been addressed and all reviewers lean toward acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.