Skip to content

Cortex: Measuring Rule and Skill Development and Pruning for Gated Coding AgentsCortex: Measurement-Gated Evolution and Pruning of Coding-Agent Skills and Rules

Hugging Face Daily Papers· arXiv:2610.14216· Samuele Giampieri·Indexed by this site · 2026-10-16· Originally publishedTools

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

Cortex keeps skills/rules only after measurement by replay; Haiku 4.5's four rule types have held-out pass rate 55.0 percentage points higher.

Questions
Coding agents also must follow developer-written project instructions, skills, and rules. The authors say these texts often remain because of corrections, but the same task can pass or fail; seeing one success is not evidence, and text always in context costs every step.
Methods
Cortex stores fixed sessions as replayable tasks, and for each repeated correction writes one skill or rule. It runs multiple paired trials against the current harness, keeping an item only if there is net gain, it triggered, and no single task worsened beyond tolerance; items that never triggered are not kept, and items never seen triggered are not deleted.
Experiments and results
Four runs of Haiku 4.5 on shopkit: unseen four-rule-family pass rate is 55.0 points higher than with no skill/rule, control family −0.8 points. Most of what remains are auto-loaded rules. The same R1 harness on Sonnet 5 gains +5.6 points.
Limitations and future work
Authors say lab calibrated to give model room to improve, main results from Claude Haiku 4.5; script plays developer, eval runs 4, control 1. structlog rarely corrected, loops keep no text. Next steps include real repos that break conventions, tests that can see harm, and single-commit sandbox.
Experimental setupClaude Haiku 4.5 (claude-haiku-4-5-20251001)、Claude Sonnet 5 · shopkit、training scenarios et al. · pass rate、gain (percentage points) et al.
Evaluated models
Claude Haiku 4.5 (claude-haiku-4-5-20251001)Claude Sonnet 5
Benchmarks
shopkittraining scenariosheld-out scenariosstructlog (hynek/structlog, commit 73393f34b4)
Metrics
pass rategain (percentage points)95% CIpermutation p
AI summaryCortex is a tool that tests coding agent harness changes by replaying developer corrections, keeping only rules or skills that show net gains across repeated runs without regressing other tasks. It stores fixes from developer sessions as replayable tasks, identifies recurring corrections, writes in one skill or rule at a time, and runs the same tests before deleting. The paper tests it with Claude Haiku 4.5 on specially built repositories, and the generated harness makes agents follow conventions more often, with control areas unchanged and no increase in per-turn text reads; auto-loaded rules contributed most, while skills were useful only when provided with task-related files. None of the useless or harmful suggestions implanted by the researchers were retained, but the agent never opened useless suggestions or harmful skills and never made a judgment on harmful rules, so this test shows Cortex does not retain unused text rather than being able to detect harm. In a single run with Claude Sonnet 5, the harness gain was minimal, and no learnable content was found on a real open-source project where developers rarely made corrections.

Cortex is a tool that tests coding agent harness changes by replaying developer corrections, keeping only rules or skills that show net gains across repeated runs without regressing other tasks. It stores fixes from developer sessions as replayable tasks, identifies recurring corrections, writes in one skill or rule at a time, and runs the same tests before deleting. The paper tests it with Claude Haiku 4.5 on specially built repositories, and the generated harness makes agents follow conventions more often, with control areas unchanged and no increase in per-turn text reads; auto-loaded rules contributed most, while skills were useful only when provided with task-related files. None of the useless or harmful suggestions implanted by the researchers were retained, but the agent never opened useless suggestions or harmful skills and never made a judgment on harmful rules, so this test shows Cortex does not retain unused text rather than being able to detect harm. In a single run with Claude Sonnet 5, the harness gain was minimal, and no learnable content was found on a real open-source project where developers rarely made corrections.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Developers add or remove coding agent skills and rules based on a single success; under noise this is not evidence.

    Harnesses that developers write for coding agents get longer and longer, but the same task can pass or fail; seeing it succeed once is not evidence that this text is useful.

    • Scenario: Claude Code reads loaded harness, request, and work done so far each step before acting. The authors say project files, optional skills, and rules auto-seen when opening a matching file are the behavior parts changeable within a minute; every line always in context costs every step of every session.
    • Shortcomings of existing practice: the authors say usefulness is often judged by "seeing it work once". The same harness tested in two batches on the same tasks differs in pass rate by −3.3 points (95% CI [−7.3, 0.0], resampled by task). The authors also paraphrase: adding skills can make the agent worse; gains on single-repository tasks are indistinguishable from run noise; weak models often do not activate or follow new content.
    • The authors' problem framing: relative to systems that optimize prompts or harnesses on benchmarks, a developer faces one repository, their own conventions, a small number of tasks from their own work, and a fixed context budget, and cannot tell whether a given instruction is worth keeping. The authors consider this narrower, and harder in one respect.
    • What this paper does: proposes Cortex, for Claude Code. /harvest stores bad-to-good fixes as replayable tasks and records corrections; /evolve writes one skill or rule at a time, keeping it only after paired measurement against the current harness; /prune re-tests in reverse, and does not delete items never seen triggered. Principle: credit or blame only on tasks where the text actually entered the agent's context.
  2. What related research exists?

    The authors place Cortex alongside work on evolving agent text, crediting by exposure, and evaluating under noise.

    Text read by evolution agents

    • Writing text from trajectories: Reflexion (2023) writes failure reflections as text; Voyager (2024) adds programs to a library when the model judges a task complete; ExpeL (2024) uses voting to keep or discard insights; Agent Workflow Memory (2025) induces workflows from trajectories. GEPA (2026), DSPy (2024) search prompts or programs by metric; other work searches agent designs or the agent's own code.
    • Evolving harnesses or synthesizing skills: DarwinX (2026), HarnessX (2026), Meta-Harness (2026), SkillGen (2026) etc. modify text around a fixed model, or synthesize skills from trajectories. The differences the paper names: tasks come from one repository and one developer, not a benchmark; the control is a live harness re-tested in the same sweep, not earlier cached scores; adjudication is given by scripts. The authors paraphrase HarnessDev (2026): scores of the same version can move nearly five points in either direction, and only two of sixty-four changes clearly exceed that noise. DarwinX's training subset scores saturate, held-out does not.

    Credit and retirement

    • Exposure: In DemoEvolve (2026), harnesses selected by the self-replay baseline are credited with gains, but in the model requests the authors checked, the new hook never appears. In HarnessDev's programming domain, about one-sixth of self-written components are never observed to trigger.
    • Retiring rules: SLIM (2026) only compares with and without the skill on loaded validation tasks, and requires enough loads before retiring. SkillReducer (2026) reads never-triggering as obsolete, opposite to this paper's UNMEASURED. The paper says it found no system that uses the same restriction when "adding" or lets unknown exposure block adjudication.

    Context files, loading methods, and noise

    • Whether repository instructions help: Gloaguen et al. (2026) evaluate AGENTS.md: model-written context slightly lowers task success, repository-developer-written slightly raises; the authors paraphrase both as not significant, but both raise cost. Skill Issue (2026) optimizes a single skill file by repository history, and its tasks cannot distinguish gain from noise. Zhang et al. (2026) compare community rules with curated rules on Claude Code; the authors paraphrase their interpretation as "having a rule" matters more than content. This paper uses placebo candidates to counter "having text itself adds points".
    • Text read only when chosen: Skill-Use (2026) splits triggering and following into two bottlenecks. Other work reports that after injecting relevant skills into context, the average pass rate of the four tested models drops. On measurement, Miller (2024) recommends multiple sampling and paired comparison by question; this paper's sweep adopts both.

    Baselines and scenarios: Experimental arms are none, evolved, none2, kitchen, flat, desc-only, accept-all, ideal; control run C1 turns off /evolve. Scenarios come from shopkit's 26 training and 30 held-out scenarios, plus a previous attempt on structlog.

    The authors say many of these components have precedents. To their knowledge, what this paper adds is applying them to one developer's repository, and three practices they did not find elsewhere: a shared exposure rule for adding and removing, with unknown exposure blocking adjudication; testing the acceptance pipeline with placebo, harmful, and known-good candidates; and, in the retention loop, comparing auto-loaded rules and skills that require choice as loading layers.

  3. How does the paper address this problem?

    Cortex tests only one skill or rule at a time; it keeps an item only if it triggered, has sufficient net gain, and no single task collapses.

    Cortex only changes Claude Code's text; the model is fixed. Three commands form a loop: /harvest only records, /evolve adds and tests one item at a time, /prune re-tests by removal. Below, default thresholds are per git tag v1.0-eval; Section 4 experiments are all on that version, except development run D0. No run changed thresholds.

    Loading layers and the quantity to optimize

    • Five tiers (Table 1): root CLAUDE.md is fully in context every step. Rules without paths are also fully loaded every step; rules with paths enter when the agent reads a matching file, or when a request names that file with @. Skills list only descriptions each step; the body waits until the agent opens them with the Skill tool, or the user types the name as a command. Skills without paths are listed every step; those with paths are listed only after a matching file is encountered. The authors verified lines with paths on Claude Code 2.1.276.
    • Items and cost: skills or rules are items; constant files like CLAUDE.md are not tested. The authors write the objective as pass rate minus λ times context characters present every step, but never compute this as a number. Execution is two rules: add only if pass rate improves; delete or narrow only if pass rate does not decrease. Default warns when per-step characters exceed 3,000. Topics that belong in CLAUDE.md, hooks, or tools are written down and logged in the journal, but do not enter thresholds.

    Collecting tasks from sessions

    • /harvest writes a task only when there is a bad-to-good change: bad commit, developer's own words, check.sh that counts as solved when exit code is zero, and fix.patch that proves it can be solved. Even if a correction repeats, a lesson is written per instance, for later counting of repeats. Most sessions by design produce no tasks.
    • preflight runs three states before each cycle and each prune: the bad commit must fail; adding the fix must pass; if the fix changed test code, it must still pass without those test edits. Any state failing (including hanging) is isolated, retested once after a fix, and deleted if it fails again. Environment downtime is skipped, not treated as a bad task.

    Paired measurement and thresholds

    • sweep: each task runs k times under base (current harness) and cand (with or without the item under test), arms interleaved, repository cloned per arm into disposable clones, and after each reset check must still fail. Clones do not contain .evolve/. Single rollout is limited to 10 minutes. Developers can pin rollouts to one model.
    • Exposure: from the event stream, record whether a skill was listed and whether it was opened. Rules have no trace themselves; count as exposed if the agent read a matching file or a prompt named it with @. If the stream cannot be read, record unknown, not "not triggered". Task exposure means: rule loaded, or skill listed at least once. Always-on skills are listed every step, so every task is exposed. Score only on tasks that are fully tested and exposed; if any valid rollout has unknown exposure, block adjudication.
    • Scores: arm difference for task t is Δt=pc(t)−pb(t). G sums only improving Δ_t, N sums all Δ_t, D is the largest single-task drop. confirm is decided by script score.sh, not by a model (Table 3): must be scorable and have a task that can show gain; G>0; D≤0.34; tasks the live harness never failed have zero tolerance; kN≥2; trigger count f≥1. If only the last two regression thresholds fail, first RECHECK; only if the drop reproduces, KILL. If data is untrustworthy, or no task the candidate touches can show gain, RERUN, not bury.
    • Two stages: a topic must appear at least 3 times, or explain at least 2 failing tasks, otherwise the cycle is BARREN and no rollouts run. screen uses k=2 on the topic's failing tasks; stop if no gain or never triggers. confirm uses k=3 on each valid task. If fixes concentrate in one directory, the candidate is made a rule or skill with paths; if scattered, an always-on skill. When 2 consecutive cycles have no KEEP, the tool suggests stopping; in experiments this number is changed to 3; developers can still start another round.

    Deletion and optional Jev

    • /prune reads the same scores in reverse: if removal loses at least 2 runs net, a single-task drop exceeds 0.34, or a task that never failed starts failing, REJECT and keep. f=0 is UNMEASURED, also keep. Only if triggered and removal has no measurable loss, ACCEPT and delete. REJECT conditions are checked first. The plan runs only after developer approval; if the pinned model changes, retest all items. If an always-on skill was never opened in previous sweeps, the plan excludes it, because no sweep can delete it.
    • Jev is an optional external model, off by default, and off in every run in this paper. It only answers yes/no probabilities, options, or scores on fixed scales; it writes no text and takes no actions. When on, it only affects which item to try first; it cannot change measurement conclusions: scoring scripts, sweep, and preflight do not reference it.
  4. What experiments did the paper conduct?

    On Haiku 4.5, four rule families held-out gain +55.0 points, control family −0.8 points.

    Experimental Setup

    • Models: R1–R4 and control C1 used Claude Haiku 4.5 (claude-haiku-4-5-20251001), via Claude Code 2.1.278. This model was both the agent under test and the one executing /harvest and /evolve. Jev was turned off during runs. D0 used an earlier version and is reported separately. The model-swapping agent was Claude Sonnet 5 (claude-sonnet-5); the session that executed that /prune was still Haiku.
    • Data: shopkit has four house rules: A changelog, B money, C exporter, E time; D is an ordinary bug with no rule, serving as a control. There are 26 training scenarios, played by a script acting as the developer over 10 rounds, with the same error getting the same reply, and at most 3 rejections. There are 30 held-out scenarios, never played in any session.
    • Arms and adjudication: the main arms are none (CLAUDE.md written by the installer, no skill/rule) and evolved. There are also none2, kitchen, flat, desc-only, accept-all, and ideal. Success is adjudicated by the lab oracle in a fixed order, not using harvested checks. none and evolved: 5 times per held-out scenario and 3 times on training, interleaved; other arms 3 times on held-out, in later batches. The main set is the 23 rule-family scenarios valid in all four runs. HA6 failed validation in R4, and that run's arms are excluded.
    • Statistics and settings: gains are first averaged over scenarios within a run, then averaged over runs. 95% CIs are from 10,000 two-way bootstraps, and p values from 10,000 arm-label permutations. Single-run comparisons resample scenarios only. The rollout model was pinned; the sweep cap was changed from 60 to 200; the stop suggestion for consecutive no-KEEP was changed from 2 to 3; self-update was turned off. The authors say these do not determine the verdict.

    Main Results

    According to Table 5, Claude Haiku 4.5, R1–R4, scenarios valid in all four runs. Pass rates are by rollout; gains are percentage-point differences averaged first by scenario, then by run.

    | Family | none | evolved | Gain | 95% CI | | A changelog | 0% | 97% | +97.0 | [+91.0, +100.0] | | B money | 26% | 79% | +53.3 | [+17.5, +88.3] | | C exporters | 2% | 52% | +50.0 | [+25.0, +73.3] | | E time | 55% | 82% | +26.7 | [+1.7, +60.0] | | Four families combined | 22% | 77% | +55.0 | [+34.1, +74.1] | | D control | 100% | 99% | −0.8 | [−5.0, 0.0] |

    • The authors say the comparison holds by H1's threshold: the lower end of the interval is above zero; none of the 10,000 permutations reached the observed gain, p=0.0001. Each of the four families has p=0.0004 after Holm correction. These intervals are not corrected for the four family tests, and the lower end for the time family is close to zero.
    • The main text writes the four-family pass rates as 21.5% to 76.5%, while Table 5 gives 22% and 77%. Counting all valid rule-family scenarios in each run, the gain is +56.5 (95% CI [+35.4, +75.0]). No run left an item for D, and the authors say H2 holds. The pass rates of families without the harness lead the authors to say H0 holds: D is above the 90% threshold, three of the four rule families are below 50%, and E is the one above.
    • A/A: none re-tested on R1, five-family difference −3.3 points (95% CI [−7.3, 0.0], resampling scenarios only, permutation p=0.13). The interval ends at zero. R3's pooled pass rate on the 23 common scenarios went from 22.6% to 52.2%, and the other runs to 80.9%–87.0%; R3 had no gain on money and was negative on time.

    What Was Left Behind, and Rules vs. Skills

    • The four runs recorded 39 cycles, 14 BARREN; the rest swept 26 candidates. score.sh kept 18 and killed 5, and another 3 RERUNs were buried by the agent executing /evolve without re-sweeping. Of 1,818 sweep rollouts, 1,494 were used for confirm. The authors say H9 holds: each run left an item for each of A, B, C, and E, and none for D. Except in R3, changelog and clock were shop/, money was shop/billing/, and exporter was shop/plugins/**.
    • 16 of the 18 were rules. Path-gated candidates were listed 66 times and opened 28 times in their own sweep and gate test; always-on candidates were listed 198 times and opened 0 times in the same scope. H3 does not hold: 15/18 passed all three checks; those that did not were all rules on shop/**, failing only on "mainly triggers in this family." Such rules loaded in 93%–100% of rollouts.
    • R3 narrowed the money and clock rules to named files. Its money rule loaded 0 times in 30 held-out money rollouts, and both arms had a pass rate of 26.7%; other runs' money rules loaded at least 28/30. The replacement clock rule loaded 10/30, and the pass rate went from 56.7% to 50.0%. The authors say the threshold is judged only on tasks that were harvested and where these rules actually loaded.

    Known Answers and the Cost of the Harness

    • The gate test ran 29 known-answer candidates on a copy of C1. None of the 20 placebos and 5 harmful candidates were kept, but the authors say H5 does not hold: the upper end of the placebo retention interval can still reach 17%; score.sh killed only 2 of the 5 harmful items and made no verdict on the other 3; of the 4 known-good, 2 were kept. Fisher exact test p=0.022. 12 placebos were killed for never triggering, and 8 were RERUN because they could not show a gain on the screen; the test procedure recorded all 20 as KILL. The authors say the screen for harmful rules ran on failing tasks, so this test cannot yet show that the threshold catches harm; on one screen, a rule broke a task that passed without it, and score.sh still returned RERUN.
    • R1, rule family, Figure 19: evolved pass rate 87.5%, with no extra text per step, only the 559-character CLAUDE.md that all arms have. kitchen 76.4%, 11.1 points lower (95% CI [0.0, +22.5]), 2,519 characters total; flat 75.0%, 12.5 points lower ([−1.7, +28.3]), 1,688 characters; ideal 48.6%, 38.9 points lower ([+20.0, +58.1]), 728 characters. The authors say H7 and H8 hold; the interval for kitchen touches zero, and these arms and the main arms are across batches. On the same boundary, the rule family's A/A difference is −4.2 points ([−9.2, 0.0]).
    • accept-all (R2 only) was 8.9 points lower than evolved ([−16.1, −1.7], permutation p=0.075). The one added back was not buried by the threshold: both arms passed on the screen, score.sh returned RERUN, and the agent buried it for overlapping with a live rule. The authors say H6 is inconclusive. desc-only recovered 79% of evolved's gain ([58%, 100%]), but only 1 of R1's four was a skill; in family C it recovered only 16% ([0%, 56%]), with a pass rate of 11% versus evolved's 70%. The authors say H11 is inconclusive.

    Stronger Model, Pruning, and a Second Repository

    • R1 harness on that run's valid rule-family scenarios: Sonnet 5's none was already 88.9% (Haiku 4.5 was 20.8%), evolved reached 94.4%, a gain of +5.6 points ([−2.8, +13.9]), versus +66.7 on Haiku ([+51.7, +80.8]). /prune at k=3 with rollouts pinned to Sonnet 5 flagged 2 of 4 as deletable: the money rule and the exporter checklist. The authors say H13 holds. exporter in family C held-out was still +11.1 ([−11.1, +38.9]); the authors say a single pass at this k cannot separate a small effect from no effect.
    • The prune test on Haiku kept R1's own 4 (removing any one costs at least 9 runs net). Of the 4 planted, 2 matched expectations, 6 of 8 in total, and the authors say H10 does not hold. One placebo was deleted, and a gated skill that no task could load was skipped; another placebo was opened 0 times in the 18 rollouts that listed it, but removing it made 2 tasks fail, so it was kept because REJECT is checked first. An always-on skill that never opens got no verdict. No "never triggered" item was deleted.
    • structlog (commit 73393f34b4): harvested 8 tasks and 1 lesson; 7 of 8 sessions passed the project tests and the pinned version's linter on the first try. All cycles were BARREN, and evolved and none were byte-identical. The authors say H14 is inconclusive.

    Other Ablations and Analyses

    • The four rule-family gain on training scenarios was +78.8 points ([+68.9, +86.7]), versus +55.0 on held-out; without the harness, training pass rate was 6.4% and held-out 21.5%. The authors say this comparison does not test a hypothesis.
    • Without the harness, 341/361 (94%) of rule-family failing rollouts were tested but broke a house rule; of evolved's 108 failures, 86 still broke a rule, 43 of them in exporter.
    • Correction: evaluation run 60/104 sessions (0.58 each), C1 23/26 (0.88). The threshold is met, and the authors say H4 holds, but a single control makes the permutation p unable to go below 0.2. D0's gain was +42.5, within [+35.4, +75.0].
    • Jev post-hoc replay: relevance did not separate kept items from those killed for regression (lowest kept 17%, highest killed 75%), and breadth was 8% versus 58%. The authors say H15 does not hold. The predicted ranks of the 4 skills matched measurement, but 3 of the 4 predictions tied for highest, and the authors say H16 is inconclusive.
    • Of the 1,809 checkable cycle rollouts, 2 surfaced a harvested fix or task library. Of 595 held-out none rollouts, 112 saw the item name via git status; the 93 that saw the name had a 9.7% pass rate, versus 23.6% for the 382 that did not.
    • Average cost of one held-out rollout in R1–R4: $0.121 without the harness, $0.149 for evolved (23% more). Sweep cost per evaluation run ranged from $32.76 to $128.78, highest in R3.
  5. What are some points that can be further explored?

    Authors say results come from repos calibrated for the experiment and Claude Haiku 4.5, nothing learned on real repos.

    Limitations and future directions noted by the authors

    • Built for experiments (Section 7): rules, tasks, and checks are written by the same person; before the first session, scenarios the model could already solve independently were changed so it would break conventions. All four rules are machine-checkable; the largest-gain A only checks whether changelog has one more line. Of the 30 held-out, 15 were written after D0; the authors say they were written then only per CONTRIBUTING.md and family definitions. Conventions requiring judgment to check were not tested.
    • Models (Section 7): main numbers are Claude Haiku 4.5. On Sonnet 5, R1 harness gains +5.6 points (95% CI [−2.8, +13.9]), because that model mostly already follows rules. The authors say a single harness and a single stronger model are insufficient to show how things vary across models.
    • Real repositories (Section 7): on repositories not built by this study, agents are rarely corrected, the loop leaves no text, and both sides of the baseline have the same harness. The authors say whether it helps on real work tasks is untested.
    • Scripts and run counts (Section 7): replies are fixed, so no misreading or changing mind. Evaluation 4 runs, control 1; bootstrap can draw few run combinations, so intervals may underestimate how far a rerun could land; permutation cannot give p below 0.2 for H4. confirm is 3 per task per arm, ablation held-out 3, a single miss could be luck.
    • Cost, git, reproduction (Section 7): reported prices are for Haiku 4.5 on small tasks in this repository. Sandbox isolates disk but not git; tracked items can be shown by git diff on arms lacking them. On structlog, sessions and rollouts read upstream fixes via git. No one else has repeated this study.
    • Next steps the authors list (Section 8): real repositories where models break conventions; harmful candidates scanned on tasks that pass without them, in confirm style; rollouts using a single commit with only the bad state, harness installed as untracked files; how to test conventions requiring judgment without model adjudication, the authors call an open question.

    Experimental coverage

    • Tested agents are Claude Haiku 4.5 and Claude Sonnet 5. Haiku is used for R1–R4, C1, gate test, and prune test; Sonnet 5 is used for the R1 harness held-out comparison (k=3) and that /prune's rollouts. The session executing /prune is still Haiku. Jev is off in all runs, only replayed post hoc.
    • shopkit has 4 evaluation runs, 1 C1 with /evolve off, 1 earlier-version D0. Scenarios are 26 training plus 30 held-out. Main comparison uses 23 common valid rule-family scenarios, main arm 5 per scenario. Also none2, kitchen, flat, desc-only, accept-all, ideal; the latter several are single-run, held-out k=3.
    • gate test is 20 placebo, 5 harmful, 4 known-good, screen k=2, tasks are those the live harness failed. prune test implants 4 alongside R1's 4. The paper states harmful rules' screen selects failing tasks.
    • Statistics state 10,000 bootstraps, 10,000 permutations, and fixed seed; invalid rollouts excluded and counted. Success determination is a lab oracle, not an LLM judge.
    • structlog is one loop, then compare none vs evolved on the 4 newest tasks at k=5. The paper states both harnesses are byte-identical.
  6. Summarize the main content of the paper

    Under measurement gating, Haiku 4.5's harness more often follows conventions on unseen tasks, with smaller gains on stronger models.

    Cortex treats Claude Code's skills and rules as text to be measured, rather than keeping them after seeing one success.

    • Bad-to-good fixes in sessions are stored as tasks with check scripts; each repeated correction becomes one candidate. After paired replay against the current harness, an item enters the harness only if overall net gain meets threshold, it triggered at least once, and no single task worsened beyond tolerance; conversely, live items never seen triggered are not deleted. Unknown exposure blocks adjudication.
    • On shopkit, built for experiments, four independent runs of Claude Haiku 4.5 on unseen four-rule-family scenarios have pass rate 55.0 points higher than with no skill/rule (95% CI [+34.1, +74.1]); the no-rule control family is −0.8 points. Of the 18 kept, 16 are rules loaded when opening a matching file. No new text is read every step: like none, only the 559-character CLAUDE.md.
    • Skills that require the agent to open them are rarely opened. Always-on candidates are opened 0 times in 198 listings across their own sweep and gate test; path-scoped candidates, listed only on relevant files, are opened 28 times in 66. The authors say how a suggestion is delivered matters more than who wrote it for whether it reaches the agent.
    • None of the 20 placebo and 5 harmful candidates are kept; 2 of 4 known-good candidates are kept. The authors say this only shows that never-triggered items are not kept, not that thresholds can identify harmful text: harmful rules' initial screen runs on tasks that would fail anyway.
    • The same R1 harness on Claude Sonnet 5 gains +5.6 points, interval includes zero; one /prune marks 2 of 4 as deletable. On structlog, corrections are rare, and the loop leaves no text. The authors conclude: in this study, how much this loop is worth follows how much the model needs correcting.
Read originalhuggingface.co