Multi harness rl invariants

From IgorGanapolsky/ThumbGate · View interactive version

Multi harness rl invariants is an AI agent skill from the GitHub repository IgorGanapolsky/ThumbGate. Cross-harness RL invariant engine stolen from Hugging Face FineEnvs (multi-harness-rl). Normalizes tool invocations across Claude Code, Antigravity, Strands, and OpenHands, catches catastrophic format failures, and computes cross-harness transfer reward signals.

How to use this skill

Skill file

Multi-Harness RL Invariants — Cross-Harness Generalization

The Research Finding (FineEnvs / Orchard 2026)

Models trained inside a single agent harness (e.g. OpenHands or Claude Code) experience severe performance drops when deployed to a foreign harness:

The ThumbGate Architecture

ThumbGate acts as the universal Canonical Action Normalizer & Invariant Gateway:

[Claude Code] ──┐
[Antigravity] ──┼─► [Canonical Action Quadruplet] ──► [Cross-Harness Invariant Diode] ──► [Target System]
[Strands]     ──┤    (entity, op, target, params)     (Format, Security, Bounds)
[OpenHands]   ──┘

1. Canonical Action Quadruplets

Regardless of the model's originating harness, every action is normalized into:

2. Format & Safety Invariant Gates

3. Transfer Scorecard & RL Rewards

Calculates multi-harness diversity multipliers and invariant pass rates for RL / DPO model training:

node scripts/strands-box-doctor.js --json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.