Skip to content

epic: agent harness training compatibility #1824

Description

@cwing-nvidia

Goal

The built-in agent harnesses shipped for evaluation (tracked in #1042) should also be usable for RL training through Gym with minimum friction — i.e. their rollouts carry everything the training pipeline needs (token IDs, logprobs, correct masking, reconstructable multi-turn trajectories), are verified against a tokenizer/model, and are documented per harness.

This is the training counterpart to the evaluation epic #1042. #1042 ensures a harness can produce scored rollouts; this epic ensures those rollouts are training-grade.

Why this matters

Evaluation only requires a harness to return a response that the verifier can score. Training additionally requires:

Acceptance Criteria

  • Each listed harness produces rollouts with token IDs + logprobs and correct loss masking for model-generated tokens
  • Multi-turn / tool-calling trajectories are losslessly reconstructable and round-trip against the training model's tokenizer
  • A training-compatibility conformance check exists and passes per harness
  • At least one end-to-end training run per harness shows the expected reward/benchmark improvement (e.g. SWE-Bench Verified score increase), per the experiment pattern in Run a model-training compatibility experiment with an agent harness #1569
  • Each harness's README documents its training-compatibility status and any caveats

Harnesses

Mirrors the eval matrix in #1042. Status here reflects training readiness, not eval.

P0

  • Claude Code
  • Codex
  • Hermes
  • OpenClaw
  • OpenCode
  • OpenHands
  • Mini-SWE-Agent
  • KiloCode
  • Terminus

P1

  • Cline
  • Goose
  • Pi
  • Copilot-CLI

Related

#1042
#1564

Metadata

Metadata

Assignees

Labels

r0.5.0Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

Status
Review WIP

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions