SHarP: Saliency-based Pruning of Agent Harnesses
cs.AI
Submitted: 2026-10-03
Updated: 2026-10-03
Code: https://github.com/UCSB-NLP-Chang/SHarP
License: http://creativecommons.org/licenses/by/4.0/
The gist: Agent harnesses are systems that coordinate model calls, tool use, and task execution to help large language models complete complex tasks.
Terminology
Abstract
Agent harnesses are systems that coordinate model calls, tool use, and task execution to help large language models complete complex tasks. To meet task requirements and address failures, these systems are often iteratively refined by amending and patching their instructions, tools, and workflows, continuously increasing harness complexity. It is therefore unclear whether some resulting harness modules are redundant, introducing substantial token overhead with little, if any, performance gain. Inspired by neural network pruning, in this paper, we study harness pruning as a means of striking a better balance between task performance and token cost. We propose SHarP (Saliency-based Harness Pruning), a simple yet effective pruning strategy based on the saliency of each harness module with respect to performance and efficiency. Specifically, we first identify tools, instructions, and supporting mechanisms as components that can be individually disabled. We then estimate the saliency of each module by ablating it and assessing its task performance and token cost relative to the full set of single-module ablations. Modules with the smallest contribution to performance or largest computational overhead are subsequently pruned. Our evaluation across various harnesses on held-out validation sets reveals a surprising finding: most harnesses that we studied are highly redundant and can maintain comparable performance and efficiency even after a substantial portion of their modules are pruned. Our pruning approach and empirical findings provide new perspectives on agent harness design and optimization.
Sources
- $\tau^2$-Bench: Evaluating Conversational Agents in a Dual-Control Environment
- SNIP: Single-shot Network Pruning based on Connection Sensitivity
- Meta-Harness: End-to-End Optimization of Model Harnesses
- Pruning Filters for Efficient ConvNets
- Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
- The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Management
- RCR-Router: Efficient Role-Aware Context Routing for Multi-Agent LLM Systems with Structured Memory
- PaperQA: Retrieval-Augmented Generative Agent for Scientific Research
- Aviary: training language agents on challenging scientific tasks
- Code as Agent Harness
- Natural-Language Agent Harnesses
- HARBOR: Automated Harness Optimization
- Language agents achieve superhuman synthesis of scientific knowledge
- The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agents
- ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization
- Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
- AgentFold: Long-Horizon Web Agents with Proactive Context Management
- JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution
- Self-Harness: Harnesses That Improve Themselves
- Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems