AI models behave differently across various agent harnesses due to contrasting system prompts, toolsets, and execution loops. Rather than retraining full models, the harness-hub team trains lightweight LoRA adapters (rank 32 on all linear layers) specialized for each harness environment.
Asynchronous Multi-Adapter Training
Using TRL's AsyncGRPOTrainer with tree attention, training runs asynchronously over GRPO rollouts. The setup achieves notable cost efficiency via vLLM: one base model hosts multiple trainers simultaneously. Each request specifies its own adapter, and checkpoint updates are swapped without stopping running sessions. For evaluations, nine checkpoints were assessed simultaneously in an H200 instance for roughly $5, avoiding the expensive weight-merging overhead that would traditionally cost around $90.
Mitigating Reward Hacking with safeagents
Reinforcement learning frequently suffers from agents taking shortcuts or tampering with grading scripts. To mitigate this, safeagents acts as an intermediary proxy between model and harness. Tool calls attempting reward manipulation are caught by rule-based detectors, aborted, and scored zero, providing feedback that forces the agent to explore valid problem-solving paths. Additionally, an efficiency bonus rewards agents for solving tasks with fewer tool invocations.