TACT: Mitigating Overthinking and Overacting in Coding Agents via Activation Steering
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 2 more
Abstract (arXiv)
When language model agents tackle complex software engineering tasks, they often degrade over long trajectories, which we define as *agent drift*. We focus on two recurring failure modes *overthinking* and *overacting*, i.e., where the agent repeatedly reasons over information it already has, and where it issues tool calls without integrating recent observations or acquiring new evidence. In this paper, we introduce TACT (Think-Act Calibration via activation Steering), to detect and mitigate agent drift in the residual stream before it surfaces as a behavioral failure. In specific, we label trajectory steps as overthinking, overacting, or calibrated, and find that their hidden states can separate linearly along two *drift axes*, pointing from calibrated behavior toward each failure mode (AUC ≈ 0.9). To mitigate agent drift, we project each step's activation onto these axes at test time and pull drifted ones back toward the calibrated region. Experiments show that TACT outperforms unsteered baselines across SWE-bench Verified, Terminal-Bench 2.0, and CLAW-Eval, lifting average resolve rate by +5.8 pp on Qwen3.5-27B and +4.8 pp on Gemma-4-26B-A4B-it while cutting steps-to-resolve by up to 26%. These gains frame agent drift as a steerable direction in the residual stream, and position TACT as a viable handle for reliable long-horizon agents.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 48 of its 57 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
48 of 57 references.
Closest ancestors · 3
Same direction, newest first
- 2026Why Reasoning Fails to Plan: A Planning-Centric Analysis of Long-Horizon Decision Making in LLM Agents29 Jan
- 2025What-If Analysis of Large Language Models: Explore the Game World Using Proactive Thinking5 Sep
- 2025Agent-R: Training Language Model Agents to Reflect via Iterative Self-Training20 Jan
Other references · 45
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2025s1: Simple test-time scalingcited by 1,341
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
33 more
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,195
- 2023GAIA: a benchmark for General AI Assistantscited by 1,128
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2023Steering Language Models With Activation Engineeringcited by 922
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024Scaling and evaluating sparse autoencoderscited by 553
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 238
- 2024Programming Refusal with Conditional Activation Steeringcited by 206
- 2025Survey on Evaluation of LLM-based Agentscited by 204
- 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 152
- 2025Where LLM Agents Fail and How They can Learn From Failurescited by 133
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?cited by 95
- 2026The Assistant Axis: Situating and Stabilizing the Default Persona of Language Modelscited by 90
- 2025A Survey on Sparse Autoencoders: Interpreting the Internal Mechanisms of Large Language Modelscited by 76
- 2026Claw-Eval: Towards Trustworthy Evaluation of Autonomous Agentscited by 64
- 2025Does Thinking More always Help? Mirage of Test-Time Scaling in Reasoning Modelscited by 53
- 2025Don't Overthink It: A Survey of Efficient R1-style Large Reasoning Modelscited by 37
- 2025Meta-Reasoner: Dynamic Guidance for Optimized Inference-time Reasoning in Large Language Modelscited by 33
- 2026Agent Drift: Quantifying Behavioral Degradation in Multi-Agent LLM Systems Over Extended Interactionscited by 28
- 2025Position: Agent Should Invoke External Tools ONLY When Epistemically Necessarycited by 22
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025ReCAP: Recursive Context-Aware Reasoning and Planning for Large Language Model Agentscited by 13
- 2025Test-Time Scaling in Reasoning Models Is Not Effective for Knowledge-Intensive Tasks Yetcited by 11
- 2025Enhancing LLM Steering through Sparse Autoencoder-Based Vector Refinementcited by 10
- 2026Conversation for Non-verifiable Learning: Self-Evolving LLMs through Meta-Evaluationcited by 6
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026From Chatbot to Digital Colleague: The Paradigm Shift Toward Persistent Autonomous AIcited by 6
- 2026A Few Neurons Reveal When LLMs Misuse Tools: Sparse Detection and Selective Steering for Reliable Tool Usecited by 3
- 2026Latent Programming Horizons in Coding Agentscited by 1
- 2026Absorbed in Inertia: Activation Analysis for Computer-Use Agentscited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstentioncited by 0
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstention5 Oct 2026
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026Absorbed in Inertia: Activation Analysis for Computer-Use Agents29 Sep 2026
- 2026A Few Neurons Reveal When LLMs Misuse Tools: Sparse Detection and Selective Steering for Reliable Tool Use31 Jul 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2026From Chatbot to Digital Colleague: The Paradigm Shift Toward Persistent Autonomous AI12 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure
- 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code
- 2026Strained Coherence: A Pre-Failure Signal in Coding Agent Execution Trajectories
- 2026AgentProcessBench: Diagnosing Step-Level Process Quality in Tool-Using Agents
- 2026Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
- 2026Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories
- 2026Beyond the 'Diff': Addressing Agentic Entropy in Agentic Software Development