Skip to content

Training agent skills into model weights

Train a LoRA adapter for Qwen3.5-4B so it can perform coding tasks after four skill files have been removed from its context.

By Simon Yu
On this page
  1. Task and metric
  2. Results
  3. Statistics
  4. Validation and hidden test

Task and metric

Full task description

Train a LoRA adapter so Qwen3.5-4B, running as a pi coding agent without any skill files, solves tasks that it only solves when four agent skills are in its context.

Reward. Mean over the four skill families of the per-episode pass rate without skill text (hidden instances), multiplied by the ordinary-coding retention factor min(1, ordinary_coding_pass / 0.885).

Normalized score. The baseline below corresponds to 0 points and the theoretical best to 100. The theoretical best is not always achievable in practice. A valid submission that performs below baseline receives a negative score, bounded at −100. An invalid submission receives 0. Score formula

SetupValue
Research areaPost-training
DirectionHigher is better
Baseline, hidden-test mean0.2157
Baseline, hidden-test std0.04083
Theoretical best1
Time budget4 h
Compute1 × H100
GPU-hours4

Results

The two highest mean scores were 53.8 (Claude Sonnet 5.5) and 46.1 (Claude Opus 5.5). Across all 13 models, the mean was 23.8 points. Of those, 13 averaged above baseline.

Mean hidden-test score by model

  • Claude Code
  • Codex
  • Antigravity SDK
  • Muse Code
  • Grok Build
  • Terminus 2
Mean hidden-test score by modelBar chart with 13 bars; every value is in the data table.0204060Normalized scoreClaude Sonnet 5.553.8Claude Opus 5.546.1Claude Fable 5.237.0GPT-6.2 Astra33.8Muse Wonder32.1Gemini 4 Carbon29.4GPT-6.1 Sol24.6GPT-6 Astra21.4DeepSeek V4.1 Flash12.2Grok 4.710.5GLM-5.33.9Qwen3.8-Max3.4Kimi K31.0
Each bar averages the model’s scored attempts on this task. Zero marks the starting baseline. Scoring rules.
View data
Mean hidden-test score by model: data
LabelSeriesMean score
Claude Sonnet 5.5Claude Code53.8
Claude Opus 5.5Claude Code46.1
Claude Fable 5.2Claude Code37.0
GPT-6.2 AstraCodex33.8
Muse WonderMuse Code32.1
Gemini 4 CarbonAntigravity SDK29.4
GPT-6.1 SolCodex24.6
GPT-6 AstraCodex21.4
DeepSeek V4.1 FlashTerminus 212.2
Grok 4.7Grok Build10.5
GLM-5.3Terminus 23.9
Qwen3.8-MaxTerminus 23.4
Kimi K3Terminus 21.0

Download CSV · 13 rows

Scores are in normalized points.
#ModelMean of 3Best of 3AttemptsOutcomes
1Claude Sonnet 5.553.861.633 valid
2Claude Opus 5.546.155.033 valid
3Claude Fable 5.237.061.132 valid, 1 invalid
4GPT-6.2 Astra33.845.433 valid
5Muse Wonder32.147.033 valid
6Gemini 4 Carbon29.446.831 valid, 2 out of time
7GPT-6.1 Sol24.632.033 valid
8GPT-6 Astra21.431.833 valid
9DeepSeek V4.1 Flash12.218.333 valid
10Grok 4.710.526.333 valid
11GLM-5.33.913.833 valid
12Qwen3.8-Max3.415.733 valid
13Kimi K31.018.733 valid

Statistics

StatisticValue
IRT difficulty−0.10
IRT discrimination1.16
IRT pass bar (normalized score)10.4
Attempts above the pass bar69.2%
Median share of time budget used90%
Median output tokens per attempt270k
Median validation runs per attempt3

IRT: two-parameter model of pass or fail against the pass bar (statistics).

Time and tokens over all tasks: results. Medians are over this task's 39 scored attempts.

The trajectory of 2 of 39 attempts (Gemini 4 Carbon, out of time) was not recorded: the output-token and validation-run medians cover 37 attempts.

Validation and hidden test

Validation measureValue
Attempts with a recorded validation score29
Attempts scoring at least 99 on validation2
Mean hidden-test score for those attempts58.3

Validation and hidden-test results across tasks