Trace Capture
Capture or import coding sessions from Claude Code, Codex, Gemini, OpenCode, Copilot CLI, and similar tools.
BashGym captures real coding-agent work, scrubs and scores the traces, converts them into SFT, DPO, reward, and terminal-RL artifacts, then evaluates the model before you route work to it.
BashGym captures real coding sessions, cleans the traces, and turns the useful parts into trainable artifacts with evidence attached.
Import or record coding sessions from the tools your agents already use.
Scrub secrets, score quality, and create SFT, DPO, reward, or environment data.
Use RunCards, heldout tests, and pass@k before routing work to a model.
See BashGym in action — from trace capture to training evidence.
Eleven capabilities, organized the same way BashGym works: a core trace-to-training loop, support rails, and research tracks that stay evidence-gated.
The main path is deliberately conservative: capture real work, clean it, train against a stated method, prove behavior, then route only the tasks the student model has earned.
Capture or import coding sessions from Claude Code, Codex, Gemini, OpenCode, Copilot CLI, and similar tools.
PII detection, secret scrubbing, replay redaction, path anonymization, and provenance metadata keep traces reviewable.
SFT, DPO, reward modeling, distillation, GRPO/RLVR, cascade RL, and DPPO planning with starter settings and metrics.
Heldout traces, executable pass@k, holdout comparisons, benchmark ingest, spurious-reward controls, and tamper canaries.
A student handles narrow work only after heldout behavior, safety controls, and release evidence support the claim.
These are the operational layers users need once training becomes a system: sources, evidence, education, and compute targets.
Curated source cards identify what is safe for training, what is eval-only, and which adapters can convert records into BashGym artifacts.
RunCards tie together source manifests, compute targets, configs, metrics, release evidence, known limits, and claim-tier blockers.
Guides, capability maps, metric runbooks, and agent-readable CLI commands explain settings and failure modes.
Local GPU, SSH/GX10, and cloud launch planning make backend runs reproducible while remote or billable work stays explicit.
Reward and terminal-RL work are part of the platform, but BashGym separates diagnostics from release evidence so users know what is proven and what still needs backend smoke tests.
DPO pairs, reward examples, ORM/PRM artifacts, fixture reward-model smokes, and reward_eval.json expose whether a learned scoring signal is trustworthy.
DPPO replay, Binary-TV/KL telemetry, ECHO/RWML world-model payloads, and smoke bundles support terminal-agent RL research without overstating gains.
The same structure appears inside BashGym as Workspace, Data Factory, Training Guidance, RunCard Evidence, Evaluator, Router, Source Library, and Compute Target surfaces.
A self-reinforcing coding-agent loop: capture traces, curate evidence, train a student, evaluate behavior, route narrowly, repeat.
Record agent work
Scrub and score
Build artifacts
Tune a student
Run gates
Ship narrow wins
Plan from the CLI or UI, prepare source artifacts, validate reward data, build smoke bundles, and attach evidence before making model claims.
Import existing agent history or install hooks for Claude Code, Codex, Gemini, OpenCode, Copilot CLI, and similar tools.
Scrub replay output, score trace quality, attach source metadata, and generate SFT examples, DPO pairs, reward records, or environment specs.
Run a focused training plan, capture metrics in a RunCard, prove behavior with heldout gates, then route only the work the model has earned.
A modular system from trace capture to training evidence and conservative routing.
Capture traces, prepare artifacts, run a small SFT or preference baseline, then attach evidence before routing any real work.
New features, training strategies, and model releases. No spam.
BashGym is a trace-to-training platform for coding agents. It captures real coding sessions, scrubs and scores them, turns them into SFT, DPO, reward, and terminal-environment artifacts, and attaches the evaluation evidence needed before routing an open model to real work.
BashGym trains from verified traces: task context, tool calls, terminal output, file edits, diffs, tests, verifier results, quality labels, and source metadata. Gold traces become SFT examples, failed traces can become DPO negatives, and executable environments become pass@k and RL evidence.
The BashGym flywheel is capture or import, curate, generate examples, train, evaluate, and route. Supporting flywheels handle Source Library data, reward modeling, terminal RL, JEPA-style ECHO/RWML diagnostics, AutoResearch recipes, compute targets, and RunCards.
BashGym is model-family aware, with profiles for Qwen3/Qwen3.6, Qwen2.5, Gemma 4, Llama 3, and generic Hugging Face causal LMs. Local LoRA/QLoRA, SSH/GX10, and cloud paths are supported or planned through explicit compute targets and RunCards.
BashGym is designed to teach the training process instead of hiding it. The CLI and UI expose starter plans, setting explanations, metric guides, source guardrails, smoke bundles, and release gates so developers can start small and know what evidence is still missing.
BashGym captures or imports traces from coding tools, normalizes them into a trace event schema, records structured agent-status events, scrubs replay output for secrets, scores quality, and preserves provenance before any training handoff.
Yes. BashGym is open source under the MIT License. You can self-host it by cloning the GitHub repository. Cloud GPU costs for training are separate and depend on your chosen provider.