arXiv:2611.29062 cs.CL

HyperHarness Learning to Generate Personalized Agent Harnesses from User Histories

Zhaoxuan Tan1 Jiachen Zhao1 Jingbo Yang2 Zheyuan Liu1 Chuhan Wang1 Pei Zhou3 Mengting Wan3 Meng Jiang1

1University of Notre Dame2UC Santa Barbara3Microsoft

HyperHarness learns one shared generator that writes personalized retrieval and answer-guidance code for unseen users from their histories.

Per-user optimization runs candidate evaluations for each user. HyperHarness trains a shared generator and constructs each user’s harness from their history in one pass.
Personalized execution from a shared generator. Each user receives executable code that retrieves history and guides the answering model.

One generator, personalized harnesses

Optimize the shared construction procedure on training users, then synthesize a fixed harness for each unseen user from their permitted history.

HyperHarness overview from the paper. Training updates the shared generator using task feedback across users. At deployment, the generator turns each new user’s permitted history into an executable harness for retrieval and answer guidance.
The harness assembles query-specific evidence and guidance for a frozen answering model.

Two paths to a personalized answer

Starting from the same user’s history, Meta-Harness repeatedly scores and refines candidates for that user in our evaluation. HyperHarness builds a reusable harness in one pass with a frozen generator.

Both methods start from the same user history. Meta-Harness proposes a candidate harness, runs and scores tasks, and uses the scores and traces to propose again over several rounds before it selects a harness for that user. It then restarts the search for the next user. HyperHarness gives the history to a frozen generator, which constructs the personal harness in one pass with no search at deployment. The animation is schematic and not to scale.

A new question arrives: where should I meet a friend? The user’s deployed harness runs on the question. It recalls the relevant history records, quiet cafés and outdoor seating, and skips the unrelated one. It writes answer guidance to favor quiet venues. A frozen answering model reads the question, the retrieved evidence, and the guidance, and suggests a quiet café with outdoor seating.

Reported deployment tokens per scheduled query on PersonaMemv3 with Qwen3.5-9B: 8.09 thousand for Meta-Harness and 2.07 thousand for HyperHarness, about 74 percent fewer.

Schematic timing. The cost comparison uses PersonaMemv3 with Qwen3.5-9B. HyperHarness includes one-time construction. Meta-Harness counts only test calls with its selected harness. Shared training and judging are excluded.

Results across three benchmarks

Compare HyperHarness with the strongest baseline in each answering-model setting. Scores are user-equal TEST means.

7 / 9

settings with the highest reported aggregate score

+5.95 pts

over the strongest baseline on PersonaMemv3 with Qwen3.5-9B

90.32%

fewer answer-time tokens than Long Context in a matched MemoryCD run

Benchmark

HyperHarness Strongest baseline

Deployment tokens are reported per scheduled query.

How optimization cost scales with users

Cumulative optimization tokens by user count for HyperHarness, GEPA, and Meta-Harness on MemoryCD, Mem-PAL, and PersonaMemv3. HyperHarness has an upfront training cost and grows more slowly as users are added.
Figure 6. Cumulative optimization tokens with Qwen3.5-9B and up to 200 history records per user. Diamonds mark crossovers, and dashed lines extrapolate to 500 users. Open PDF

Answer-time efficiency

In a separate matched MemoryCD run with Qwen3.5-9B, HyperHarness used fewer answer-time tokens while maintaining a similar TEST score.

Mean input and output tokens per query across answer calls. Construction, optimization, and judging are excluded.

Long Context
32,512.22
HyperHarness
3,147.28

Citation

If HyperHarness is useful for your work, please cite the arXiv paper.

BibTeX
@misc{tan2026hyperharness,
  title         = {{HyperHarness}: Learning to Generate Personalized Agent
                   Harnesses from User Histories},
  author        = {Tan, Zhaoxuan and Zhao, Jiachen and Yang, Jingbo and
                   Liu, Zheyuan and Wang, Chuhan and Zhou, Pei and
                   Wan, Mengting and Jiang, Meng},
  year          = {2026},
  eprint        = {2611.29062},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2611.29062}
}

Paper figure