Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your repo is the gym. Bugs are the weights. Skills are the gains.
Turn any Python repository into an RL gym for training coding agents. Synthesize bugs, run agents against them, and evolve optimized skill files — all on autopilot. 🤖🔁
Built on SWE-Smith for task generation and GEPA gskill for skill optimization.
No reps skipped. No bugs left standing. Train cheap, deploy expensive. 🚀
best_skills.txt is deployed as .claude/skills/<REPO_NAME>/SKILL.md and injected into Claude Code's prompt to improve its resolve rate on that codebasedocker ps to verify)gh auth login) — used for private repo access01_build_env.sh if missing)git clone https://github.com/webcoderz/swe-gym.git
cd swe-gym
make setup
.env fileCopy the example and fill in your API keys:
cp .env.example .env
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes | Used by SWE-Smith for bug generation and by GEPA for agent training/reflection |
GITHUB_TOKEN | Yes | GitHub personal access token with repo scope. Needed for API calls and Docker builds for private repos. Generate one here |
ANTHROPIC_API_KEY | No | Only needed if evaluating with Claude Code (step 5) |
WANDB_API_KEY | No | Enables live training dashboards for SFT. Sign up free then run wandb login |
repo.conf for your target repository , you will likely have to change the INSTALL_CMD and TEST_CMD to match your test environment.All repo-specific values live in one file: repo.conf. Edit it to point at the repo you want to build a gym for:
# ── Target Repository ────────────────────────────────────────
# The GitHub owner (org or user) and repo name.
# Example: for https://github.com/pallets/flask
REPO_OWNER=pallets
REPO_NAME=flask
PYTHON_VERSION=3.12
# ── Environment Build ────────────────────────────────────────
# Install command run inside Docker after cloning. Must install
# all deps needed to run the test suite.
INSTALL_CMD="pip install uv && uv sync --extra test"
# Test command run inside Docker containers during validation
# Default PythonProfile assumes conda activate testbed; override for pip-based repos
TEST_CMD="cd /testbed && uv run python -m pytest tests/ -m 'not integration and not eval' --disable-warnings --color=no --tb=short --verbose -p no:cacheprovider --continue-on-collection-errors"
# Timeouts (seconds) for validation test runs
# TIMEOUT_REF = pre-gold baseline run (full filtered suite, once)
# TIMEOUT = per-patch validation run (usually faster due to test scoping)
TIMEOUT_REF=7200
TIMEOUT=1800
# ── GEPA gskill Training (Step 4) ───────────────────────────
TRAIN_MODEL=gpt-5-mini # Agent model (cheaper = faster training)
REFLECTION_MODEL=gpt-5.2-pro # Reflection model (smarter = better skills)
TRAIN_WORKERS=6 # Parallel Docker containers
MAX_METRIC_CALLS=600 # Evaluation budget
TRAIN_SIZE=200 # Training task instances
VAL_SIZE=50 # Validation instances
TEST_SIZE=100 # Held-out test instances
# Parallel Docker containers for validation (step 3b)
VALIDATE_WORKERS=4
# ── Bug Generation (Step 2) ─────────────────────────────────
BUGGEN_MODEL=openai/gpt-4o # LiteLLM format: provider/model
BUGGEN_N_PER_FUNC=1 # Variants per function (1 = broad coverage)
BUGGEN_LM_MODIFY=400 # Max bugs: LM Modify strategy
BUGGEN_CLASS_BASIC=200 # Max bugs: Class Basic strategy
BUGGEN_FUNC_FUN=200 # Max bugs: Func Fun strategy
BUGGEN_LM_REWRITE=300 # Max bugs: LM Rewrite strategy
BUGGEN_PROCEDURAL=1000 # Max bugs: Procedural (AST) strategy
# ── SFT / GRPO Pipeline (Steps 6-9) ─────────────────────────
SFT_AGENT_MODEL=gpt-5-mini # Model for trajectory generation
SFT_WORKERS=4 # Workers for SFT pipeline
SFT_BASE_MODEL=Qwen/Qwen3-8B # Base model for LoRA/GRPO (native tool calling)
7-day copy clicks
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.