/swe-gym:swe-gym-pipeline [smoke-test|build-env|generate-tasks|validate-tasks|train|sft|grpo|evaluate|deploy-skills|resume|status|full]from swe-gym
Orchestrates the SWE-Gym training pipeline: task generation, GEPA skill optimization, SFT/GRPO fine-tuning, evaluation, and deployment of learned skills.
Ships in swe-gym. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Orchestrates the full SWE-Gym pipeline: task generation, skill optimization, SFT/GRPO fine-tuning, and deployment.
Before any step, verify:
docker ps.env exists with OPENAI_API_KEY (for GEPA skill training)repo.conf has REPO_OWNER and REPO_NAME setBased on the argument ($ARGUMENTS), run the appropriate step:
smoke-test — Quick validation (~5 min, ~$0.50)make smoke-test
Runs 3 tasks to verify the pipeline works end-to-end.
build-env — Step 1: Docker environment (~10-30 min)make build-env
Builds Docker image with target repo + deps. Verify: docker images | grep swesmith
generate-tasks — Step 2: Synthesize bugs (~20-60 min)make generate-tasks
Creates bug tasks from commit history. Check: ls logs/tasks/
validate-tasks — Step 3: Filter tasks (~30-60 min)make validate-tasks
Runs test harness to keep only valid tasks. Check: ls logs/validated_tasks/
train — Step 4: GEPA skill optimization (~2-12 hrs, ~$30-80)make train
Runs the GEPA gskill optimization loop. Monitor: tail -f gepa_results/logs/run_*/terminal.log
evaluate — Step 5: Compare baseline vs skillsmake evaluate
deploy-skills — Step 6: Deploy learned skillsmake deploy-skills
Copies best_skills.txt to .claude/skills/REPO_NAME/SKILL.md
sft — Fine-tune with SFT (after steps 6-7)Requires trajectory data in logs/sft_data/. Run steps 6-7 first if missing:
make gen-trajectories
make prepare-sft
Then train (default Qwen3-8B LoRA):
make train-sft-unsloth
Or with a specific recipe:
uv run python scripts/08_train_sft_unsloth.py --recipe configs/unsloth/qwen3_8b_lora.yaml --four-bit
See configs/unsloth/ for all available recipes. Check make help for targets.
grpo — GRPO RL training (after step 3)Requires validated tasks. The model learns by generating patches and getting rewarded:
make train-grpo
Or with specific recipe/options:
uv run python scripts/09_train_grpo.py --recipe configs/unsloth/grpo_qwen3_8b.yaml --reward-mode hybrid
Monitor rewards — expect 300+ steps before they start increasing.
hpo — Hyperparameter optimizationmake hpo # 10 trials, ~30 min
make hpo-thorough # 30 trials, ~2 hrs
Outputs hpo_output/best_recipe.yaml for use with SFT training.
resume — Continue interrupted trainingmake resume
status — Check current runShow the latest run directory, logs, and results:
RUN_DIR=$(ls -td gepa_results/logs/run_* 2>/dev/null | head -1)
echo "Latest run: $RUN_DIR"
[ -n "$RUN_DIR" ] && tail -20 "$RUN_DIR/terminal.log"
full or empty — Run complete pipelineRun steps 1-6 sequentially:
make build-env && make generate-tasks && make validate-tasks && make train && make evaluate && make deploy-skills
This takes 3-15 hours depending on repo size.
Always verify the step succeeded by checking for expected outputs before proceeding to the next step. If a step fails, check logs and report the error.
repo.conf — Target repo configuration.env — API keysconfigs/unsloth/ — Training recipe YAML fileslogs/ — Pipeline logs (tasks, trajectories, SFT data)gepa_results/ — GEPA training resultssft_output/ — SFT model outputgrpo_output/ — GRPO model outputWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swe-gym, skill-learning, fine-tuning, grpo, sft, training-pipeline
Other plugins' skills for the same job
5 skills in this plugin
/unsloth-grpoRun GRPO reinforcement learning training on gym tasks. Use when the user wants to train a model with RL rewards from test suites, format checks, or hybrid scoring./unsloth-hpoRun hyperparameter optimization for LoRA fine-tuning using Optuna. Use when the user wants to find optimal LoRA hyperparameters before full training./unsloth-sftRun Unsloth SFT/DPO/CPT fine-tuning. Use when the user wants to train, fine-tune, or adapt a model with LoRA, full fine-tune, DPO, continued pretraining, or QAT using Unsloth./unsloth-trainCombined Unsloth training hub — SFT, GRPO, HPO, DPO, CPT, QAT, and export. Use when the user wants to train, optimize, or export a model and you need to choose or chain the right training approach.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.