{
  "id": 839,
  "kind": "post",
  "title": "The ultimate guide to multi-harness RL",
  "summary": "The ultimate guide to multi-harness RL (Adithya S Kolavi / FineEnvs, Hugging Face Space, 2026-10-01). Not a paper: a 33-figure ~60-page interactive research article plus full artifact release documenting how to do RL across multiple agent harnesses without modifying them -- claiming the first public multi-harness agent RL pipeline. Core idea: a 'capture proxy' sits between the agent harness and vLLM, speaks the four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids/logprobs sampled by vLLM, and reconstructs TRL-trainable traces, so the same rollouts run unmodified through 10+ harnesses. Full GRPO runs: LFM2.5-2.6B trained with multi-harness RL on 1,000 SmolDataEnvs data-analysis tasks, evaluated on 250 held-out tasks under four harnesses: base 42.2% -> multi-harness RL 54.2% pass@1 overall (step 1,000; best checkpoint step 700: 54.6%); per-harness OpenCode 49.6%, Claude Code 48.8%, Codex 53.6%, Mini-SWE-Agent 64.8%. OpenCode-only RL (step 900) reached 52.4% overall and won on its home harness (56.0%) but lost to multi-harness RL on Claude Code and Codex. Tool efficiency: correctness-only reward keeps tool calls high; adding a small bonus for fewer calls cut tool calls 31.1% on 356 task/harness pairs solved by both base and model, savings in all four harnesses. SFT comparison: fine-tuning on 3,189 successful Qwen3.8-27B teacher rollouts (17,929 examples, 2 epochs) plateaued -- OpenCode SFT 47.5% (-8.5% calls), multi-harness SFT 43.1% (-24.2% calls), both below RL (54.6%), showing multi-harness RL beats imitation at both performance and efficiency. Setup: async GRPO (TRL Async GRPO), 1,000 steps, reward = correctness x (1 + 0.1x15/(15+tool_calls)), 8 rollouts per GRPO group (one harness each, rotating), on 2xH100 (~32h OpenCode-only, 46h multi-harness); rollouts in E2B sandboxes via OpenEnv + Harbor. OpenEnv is BSD-3-Clause (PR #1036 capture proxy + Harbor, PR #1280 typed TrainingTrace API); TRL PR #6947 HarnessRolloutWorker (on TRL main, not v1.14.1). Trained models (full weights) under LFM Open License v1.0: LFM2.5-2.6B-multiharness-RL, -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants. Caveat from the model card: best-checkpoint selection used the test set (no separate validation set); single-run results on fixed harness versions.",
  "body": "",
  "notes": "Discovery: X post by Adithya S Kolavi (@adithya_s_k, 2026-10-01 11:43 EDT): 'Excited to release The ultimate guide to multi-harness RL...' | Collection: huggingface.co/collections/FineEnvs/smoldataenvs-multi-harness-rl-6abdfaaa8d74dacd481d5212 (21 items) | Models: huggingface.co/FineEnvs/LFM2.5-2.6B-multiharness-RL (main), -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants | Code: github.com/huggingface/OpenEnv (BSD-3-Clause), github.com/adithya-s-k/FineEnvs | Demo: huggingface.co/spaces/FineEnvs/smoldataenv-multi-harness-harbor | BibTeX @misc{kolavi2026multiharnessrl} on the page | Prior FineEnvs work cataloged: MiMo-V2.6-RL-harbor splits (Datasets rows 74-79) | Highly relevant to user's post-training/RL work. | Per-harness results (via @ben_burtenshaw post): base LFM2.5-2.6B solves 62% of held-out tasks in mini-swe-agent vs 33% in claude code; after multi-harness RL the 4-harness average goes 42%->54% and claude code 33%->49%. Training enabled by OpenEnv capture proxy (OpenEnv PR #1036) recording exact token ids/logprobs per call. | 2026-10-02 @huggingface repost (https://x.com/huggingface/status/2106034221005312448, 2:51 PM ET, ~17.4K views): framing — same model, same weights scores 62% in one agent harness and 33% in another. Proxy detail: don't touch the harness; point it at a proxy that speaks all four API formats (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids and logprobs vLLM sampled, train on that — zero changes to Claude Code, Codex, OpenCode. Results: LFM2.5-2.6B trained across 4 harnesses 42%->54% with 31% fewer tool calls (bonus for solving in fewer steps); single-harness OpenCode training 34%->58% but multi-harness model improved everywhere. Imitation shortcut (3,189 Qwen3.8-27B rollouts) plateaued at 47.5%, below both RL runs. Infographic stats: 12 harnesses, 222 calls intercepted, 454,530 tokens captured. Everything open: OpenEnv capture proxy, TRL trainer, tasks, SFT data, training code, all seven trained models. | Shared again by @akshay_pachaar X quote post 2026-10-04 8:30 AM ET (https://x.com/akshay_pachaar/status/2106723534429184017), 14.9K views - framed as \"HuggingFace just closed a major gap in harness engineering\"; key point: a model trained in one harness loses accuracy / produces invalid tool calls in another, so cross-harness portability must become part of training. The post quoted the author's own \"Anatomy of an Agent Harness\" article (catalog 1552). | Enriched 2026-10-05: @ClementDelangue (clem, HF co-founder/CEO) announcement post 2026-10-05 10:48 AM ET (https://x.com/ClementDelangue/status/2107120717980471638), 50.6K views, 905 likes, 788 bookmarks — frames it as 'We turned Claude Code, Codex, Hermes, Pi, opencode and other coding harnesses into RL environments. No changes to the harnesses, no changes to the training code.' New detail: the capture proxy speaks the 4 formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), forwards to vLLM, records exact token IDs + logprobs; 10 harnesses run through it. New results: same model/weights 62% under Mini-SWE-Agent vs 33% under Claude Code; tool-call bonus -> 31% fewer calls on solved tasks in every harness, ~half under Codex; on LFM2.5-2.6B trained in 4 harnesses at once: 42% -> 54% in all 4; SFT on 3,189 Qwen3.8-27B rollouts plateaus at 47.5% below both RL runs; all 7 trained models + trainer in TRL released. Full guide: huggingface.co/spaces/FineEnvs/multi-harness-rl",
  "url": "https://huggingface.co/spaces/FineEnvs/multi-harness-rl",
  "links": [],
  "authors": [
    "Adithya S Kolavi (FineEnvs / Hugging Face)"
  ],
  "tags": [
    "multi-harness-rl",
    "agent-harnesses",
    "grpo",
    "trl",
    "openenv",
    "vllm",
    "capture-proxy",
    "claude-code",
    "codex",
    "opencode",
    "tool-efficiency",
    "sft-vs-rl",
    "smoldataenvs",
    "harbor",
    "agentic-rl"
  ],
  "topics": "multi-harness RL, agent harnesses, GRPO, TRL, OpenEnv, vLLM, capture proxy, Claude Code, Codex, OpenCode, tool efficiency, SFT vs RL, SmolDataEnvs, Harbor",
  "venue": "Hugging Face Space, 2026-10-01",
  "publisher": "",
  "source": "article",
  "language": "en",
  "access": "public",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-01T00:00:00.000Z",
  "verified_at": "2026-10-05T00:00:00.000Z",
  "attrs": {
    "hf": {
      "kind": "fineenvs"
    }
  },
  "enrichment": {
    "hf": {
      "id": "FineEnvs/multi-harness-rl",
      "type": "space",
      "gated": false,
      "likes": 76,
      "author": "FineEnvs",
      "created": "2026-08-31",
      "modified": "2026-10-02",
      "fetched_at": "2026-10-03T14:33:43.767Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:43.891Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "920",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-05T17:37:18.881Z",
  "page": "https://papers.projxon.ai/entries/839",
  "markdown": "https://papers.projxon.ai/entries/839.md",
  "api": "https://papers.projxon.ai/api/entries/839",
  "relations": [
    {
      "relation": "about",
      "direction": "in",
      "note": "",
      "via": "manual",
      "entry": {
        "id": 1207,
        "kind": "note",
        "title": "RL for language models after GRPO: fixes, costs, rewards, agents (overview)",
        "summary": "An overview of the 36 entries on GRPO-style reinforcement learning: known weaknesses and their fixes, rollout cost, reward design, agent training, and the dissenting approaches. Written by Claude Opus 5.5.",
        "url": "",
        "authors": [
          "Claude Opus 5.5"
        ],
        "tags": [
          "synthesis",
          "ai-written",
          "grpo"
        ],
        "venue": "",
        "source": "",
        "license": "",
        "published_year": null,
        "added_at": "2026-10-03T15:08:43.002Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": null,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1207",
        "markdown": "https://papers.projxon.ai/entries/1207.md",
        "api": "https://papers.projxon.ai/api/entries/1207"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 655,
      "kind": "other",
      "title": "OpenEnv Integration for Training LLMs with Environments",
      "summary": "Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.",
      "url": "https://huggingface.co/docs/trl/main/en/openenv",
      "authors": [
        "Hugging Face"
      ],
      "tags": [
        "openenv",
        "trl",
        "grpo",
        "opencode",
        "harness",
        "rl",
        "huggingface",
        "blog"
      ],
      "venue": "Hugging Face TRL docs",
      "source": "huggingface",
      "license": "Apache-2.0 (TRL); BSD-3-Clause (OpenEnv)",
      "published_year": null,
      "added_at": "2026-08-14T19:25:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/655",
      "markdown": "https://papers.projxon.ai/entries/655.md",
      "api": "https://papers.projxon.ai/api/entries/655"
    },
    {
      "id": 1038,
      "kind": "dataset",
      "title": "SmolDataEnvs (FineEnvs): 5K+ verifiable data-science RL tasks",
      "summary": "FineEnvs SmolDataEnvs (HF release 2026-09-24; X @adithya_s_k) is a load-and-go dataset of 5,394 verifiable data-analysis tasks (train 5,000 / test 250 / eval 144) built from jupyter-agent notebooks over 471 Kaggle datasets. Each row has a question, gold answer, reward_mode with numeric tolerances, difficulty, and pointers to input files in an HF bucket; grading is deterministic (exact→numeric→list/percent→symbolic) with no LLM in the reward path. Held-out splits are deliberately harder (~38–40% hard vs ~14% hard in train). Family also ships Harbor env suites (harbor-train/test/eval), SFT trajectories (SmolDataEnvs-sft, 4,677), tutorial FineEnvs/04-smoldataenvs, and example 2B SFT/GRPO models under AdithyaSK/. MIT on Hub datasets; FineEnvs code Apache-2.0.",
      "url": "https://x.com/adithya_s_k/status/2103181855214432556",
      "authors": [
        "Adithya S Kolavi (AdithyaSK / FineEnvs)",
        "citation: Kolavi",
        "Adithya S"
      ],
      "tags": [
        "smoldataenvs",
        "fineenvs",
        "adithya",
        "verifiable-rl",
        "data-science-agent",
        "harbor",
        "openenv",
        "mit",
        "jupyter-agent",
        "grpo"
      ],
      "venue": "Hugging Face / FineEnvs",
      "source": "x",
      "license": "MIT (HF dataset cards); FineEnvs GitHub Apache-2.0",
      "published_year": 2026,
      "added_at": "2026-09-24T19:26:11.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "code",
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1038",
      "markdown": "https://papers.projxon.ai/entries/1038.md",
      "api": "https://papers.projxon.ai/api/entries/1038"
    },
    {
      "id": 1243,
      "kind": "post",
      "title": "The Anatomy of an Agent Harness",
      "summary": "Synthesis of how Anthropic, OpenAI, LangChain, and Perplexity actually structure production agents - identifying 12 production-grade harness components (cited as the canonical reference by projects like Mnemosyne, which audits itself row-by-row against it). Framed the field's three-phase trajectory: competing on model weights, then context engineering, then harness engineering - each stage widening what the practitioner is responsible for shaping. LangChain's Vivek Trivedy formalized the companion distinction: 'If you're not the model, you're the harness.' The harness is the runtime shipped as a product (loop engine, tool registry with schemas/permissions/errors, state/memory persistence, control loop, verification layer, recovery policy, budget manager); you configure it, you don't construct it.",
      "url": "https://x.com/i/article/2041146899319971922",
      "authors": [
        "Akshay Pachaar"
      ],
      "tags": [
        "agent-harness",
        "harness-engineering",
        "production-agents",
        "claude-code",
        "codex",
        "langchain",
        "tool-registry"
      ],
      "venue": "dailydoseofds.com + X Article, Apr 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1243",
      "markdown": "https://papers.projxon.ai/entries/1243.md",
      "api": "https://papers.projxon.ai/api/entries/1243"
    },
    {
      "id": 1221,
      "kind": "paper",
      "title": "RankEvolve: A Reliable Multi-Agent Auto-Research Harness for Evolving Ranking Models",
      "summary": "Auto-research agents (propose/implement/train/evaluate model changes across iterations) are bottlenecked by execution accuracy: a silently leaked eval set, omitted normalization, disconnected gradient, or unwired train/eval flag can invalidate expensive runs and compound errors. RankEvolve's fix: (i) an Executable Operating Protocol (EOP) declaring research phases, gates, branches, and loops, with the runtime enforcing the compiled state machine; (ii) a meta-meta-harness composing complete black-box coding-agent products (Claude Code, Codex) as execution-graph nodes that review and repair each other's work; (iii) a knowledge layer carrying findings, including negative results, across iterations. Budget-matched evaluation: heterogeneous composition raises all-oracle execution accuracy from 45.8% (best single product) to 62.5% (paired +16.7 pts, 95% CI [6.6, 26.7]) with a 10.4% silent critical-defect rate. Twelve-iteration deployment on the open-source HSTU recommender: NDCG@10 0.2192 on MovieLens-20M LARGE (+4.48% over published anchor), 0.1948 on BASE (+2.80%). ExecML-HSTU (seeded by deployment incidents) provides the oracle benchmark; a pre-specified LitGPT transfer split replicates the composition effect (+12.5 pts), and a paired ablation isolates per-step vs full-protocol instruction injection. Directly relevant to the user's agent-harness work and Model Axes eval thinking.",
      "url": "https://arxiv.org/abs/2609.39551",
      "authors": [
        "Zheng Chen",
        "Linfeng Liu",
        "Hong Li",
        "Hong Yan"
      ],
      "tags": [
        "rankevolve",
        "auto-research",
        "harness",
        "multi-agent",
        "execution-accuracy",
        "recommender",
        "claude-code",
        "codex",
        "execml-hstu"
      ],
      "venue": "arXiv:2609.39551 (cs.AI), submitted 30 Sep 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1221",
      "markdown": "https://papers.projxon.ai/entries/1221.md",
      "api": "https://papers.projxon.ai/api/entries/1221"
    },
    {
      "id": 1290,
      "kind": "tool",
      "title": "RL Environment Explorer — Hugging Face Hub RL Environments filter",
      "summary": "Hugging Face launched a dedicated RL Environments filter on the Hub (announced Sept 28, filter live Oct 5, 2026): any dataset repository tagged `rl-environment` appears at huggingface.co/datasets?other=rl-environment, giving one shared index for agent tasksets across five frameworks — OpenEnv, Harbor, MiMo, Verifiers, and NVIDIA NeMo Gym. Framework tags (harbor, verifiers, openenv, nemo-gym) are registered as dataset libraries: each puts the framework's icon on the dataset page and generates a framework-specific loading snippet under 'Use this dataset'; a repo can carry multiple tags since compatibility is non-exclusive. Environments are framed as data + runtime: the Hub hosts, versions, gates, and previews tasksets (tasks, tests, containers, reward rules); execution happens locally or on supported cloud backends (HF Jobs, HF Sandboxes), and the Hub itself does not run environments. Already seeded environments include Harbor's BeyondSWE, Terminal-Lego, Harbor-Mix, and NatureBench; Verifiers' Reverse-Text-RL, Multi-SWE-RL-Verified (2,232/4,703 rows), R2E-Gym-Subset-Verified, and Scale-SWE-Verified (17,202/20,181); and NeMo Gym's Workplace Assistant (5 databases, 26 tools, 690 business tasks), Structured Outputs, CFBench, and SysBench. Announced with 12M+ RL task entries across RL environments on the Hub; OpenEnv auto-tags on upload.",
      "url": "https://huggingface.co/blog/rl-environments",
      "authors": [
        "Adithya S K / Hugging Face"
      ],
      "tags": [
        "rl-environment-explorer",
        "rl-environments-filter",
        "hugging-face-hub",
        "openenv",
        "harbor",
        "verifiers",
        "nemo-gym",
        "mimo",
        "tasksets",
        "agent-rl"
      ],
      "venue": "Hugging Face Hub",
      "source": "blog",
      "license": "",
      "published_year": null,
      "added_at": "2026-10-07T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1290",
      "markdown": "https://papers.projxon.ai/entries/1290.md",
      "api": "https://papers.projxon.ai/api/entries/1290"
    },
    {
      "id": 1044,
      "kind": "post",
      "title": "vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)",
      "summary": "vLLM Blog (2026-09-14) on RL-Kernel v0.1.0 with vime and AMD: Megatron training and vLLM rollout often disagree on logprobs for the same weights/tokens because kernels, Split-K/KV, reduction order, and intermediate precision differ, which pollutes importance ratios and KL/clipping. RL-Kernel aligns the numerical execution contract (RMSNorm, Attention, GEMM/SwiGLU, linear logprob, collectives) while vime aligns the timeline and weight sync. On ROCm they added deterministic MFMA GEMM, vocabulary reduction, HIP IPC, AITER/CK Attention schedule fixes, math/fusion last-bit fixes, and paged-KV/HIP-Graph state fixes. End-to-end Qwen3-8B BF16 GRPO on 8× MI300X (Megatron TP4/CP2; 2× vLLM TP4 colocated; 200 steps; dapo-math-17k) reports mismatch_count=0 and max_abs_diff=0 throughout on the strict path vs native mismatches every step. Apache-2.0 at github.com/RL-Align/RL-Kernel (pyproject 0.1.0; torch>=2.4.1; transformers==5.13.1; optional cuda/rocm/vllm extras). Docs https://rl-align.github.io/RL-Kernel/. Scope today: Qwen3-8B Dense + vime + CUDA/ROCm; MoE/multimodal next.",
      "url": "https://vllm.ai/blog/2026-09-14-rl-kernel-v0-1-0-train-rollout-bitwise-consistency",
      "authors": [
        "RL-Kernel Team",
        "vime Team",
        "AMD Team (core: Chutian Wang",
        "Jiajie Li",
        "Siru He",
        "Xiaosong Ma",
        "Kaijie Lin",
        "Jian Zhang",
        "Huihong Lu",
        "Yunxiang Cai",
        "Bosong Yang",
        "Zhewei Liu",
        "Houhong Liang",
        "Ryan Huang",
        "Vensen Mu)"
      ],
      "tags": [
        "rl-kernel",
        "vime",
        "vllm",
        "megatron",
        "bitwise-consistency",
        "train-rollout",
        "rocm",
        "mi300x",
        "grpo",
        "amd",
        "rl-align",
        "apache-2.0",
        "vendor-blog"
      ],
      "venue": "vLLM Blog / RL-Align",
      "source": "web",
      "license": "Apache-2.0 (RL-Kernel; LICENSE + pyproject)",
      "published_year": null,
      "added_at": "2026-09-25T02:09:13.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1044",
      "markdown": "https://papers.projxon.ai/entries/1044.md",
      "api": "https://papers.projxon.ai/api/entries/1044"
    }
  ]
}
