potentialpaper

Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:39 UTC · 48ea961e6ef1 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "R1co80WXfa"
- }
- ],
- "title": "Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives",
- "authors": [],
- "abstract": "Agent harnesses govern how large language models (LLMs) gather context, invoke tools, verify results, preserve state, and terminate, largely affecting agent performance.\nHowever, the value of each harness mechanism can differ across heterogeneous tasks: a mechanism that improves one task may impose overhead or context distraction on another, leading to the suboptimality of a global harness.\nWe characterize this suboptimality as a mismatch induced by fixed mechanism choices, motivating task-specific harness construction.\nNonetheless, generating harness code for each task introduces generation and debugging costs, with execution risks that can compound as more mechanisms are generated.\nTo address those challenges, we introduce **Harness Primitives**, reusable harness mechanisms with clear application scope and composition contract mined from failed task trajectories.\nBased on Harness Primitives, we propose **STITCH**, a framework that **S**elects suitable primitives given **T**ask **I**nformation and compiles them into **T**ask-spe**C**ific **H**arnesses at test time.\nThis separation enables task-specific harnesses without generating or repairing mechanism code at test time.\nExtensive experiments demonstrate that STITCH not only improves harness adaptability and robustness, but also scales with the primitive library size, boosting task success rates by up to 12 points over fixed harness baselines, surpassing human-designed harnesses like Codex CLI while maintaining a minimal test-time harness composition overhead of only 2.7\\%, 638 times more efficient than generating task-specific harnesses from scratch. \nUltimately, our work demonstrates that building task-adaptive harnesses can be beneficial for completing diverse tasks and that building reusable primitives can be a promising path towards this goal.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "1f65d3b8-220e-41ab-a178-06d91a52e580"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives",
+ "authors": [],
+ "abstract": "Agent harnesses govern how large language models (LLMs) gather context, invoke tools, verify results, preserve state, and terminate, largely affecting agent performance.\nHowever, the value of each harness mechanism can differ across heterogeneous tasks: a mechanism that improves one task may impose overhead or context distraction on another, leading to the suboptimality of a global harness.\nWe characterize this suboptimality as a mismatch induced by fixed mechanism choices, motivating task-specific harness construction.\nNonetheless, generating harness code for each task introduces generation and debugging costs, with execution risks that can compound as more mechanisms are generated.\nTo address those challenges, we introduce **Harness Primitives**, reusable harness mechanisms with clear application scope and composition contract mined from failed task trajectories.\nBased on Harness Primitives, we propose **STITCH**, a framework that **S**elects suitable primitives given **T**ask **I**nformation and compiles them into **T**ask-spe**C**ific **H**arnesses at test time.\nThis separation enables task-specific harnesses without generating or repairing mechanism code at test time.\nExtensive experiments demonstrate that STITCH not only improves harness adaptability and robustness, but also scales with the primitive library size, boosting task success rates by up to 12 points over fixed harness baselines, surpassing human-designed harnesses like Codex CLI while maintaining a minimal test-time harness composition overhead of only 2.7\\%, 638 times more efficient than generating task-specific harnesses from scratch. \nUltimately, our work demonstrates that building task-adaptive harnesses can be beneficial for completing diverse tasks and that building reusable primitives can be a promising path towards this goal.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}