experiment-finalize

experiment-finalize is a skill for Claude Code, Codex from wsauret/flywheel. It costs 18 tokens per session (804 once invoked), scanned A, original, Apache-2.0.

A procedure for turning a messy experiment branch into separate, clean Git branches for each kept change. An experiment branch is a line of code used to test ideas before deciding which results to keep.

In plain words
What is it for?
Use it after running several experiments when some results are worth keeping. It groups the selected commits and creates independent branches from their common starting point.
Why use it?
It removes discarded work and mixed changes from the final history, making each accepted change easier to review or merge.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after running several experiments when some results are worth keeping. It groups the selected commits and creates independent branches from their common starting point.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsauret/flywheel/experiment-finalize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wsauret/flywheel --skill experiment-finalize
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for experiment-finalize

README.md
[![agentmods](https://agentmods.dev/badge/skills/wsauret/flywheel/experiment-finalize/github.svg)](https://agentmods.dev/skills/wsauret/flywheel/experiment-finalize)
Your own site
<a href="https://agentmods.dev/skills/wsauret/flywheel/experiment-finalize"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/experiment-finalize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for experiment-finalize

Your own site · 80×15
<a href="https://agentmods.dev/skills/wsauret/flywheel/experiment-finalize"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/experiment-finalize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00804
Opus 5.5 $0.00007 $0.00322
Sonnet 5.5 $0.00004 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 21d ago against content hash a34aebc47493, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

experiment-finalize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (finalize.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/orchestration/modules/experiments/definitions/skills/experiment-finalize/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Finalize Experiments

Turn a noisy experiment branch into clean, independent branches, one per logical change, each starting from the merge-base. The bundled finalize.sh script does the branch surgery; references/groups-json.md defines the input it takes, read with the skill tool's resource action before Step 2.

Step 1: Analyze and propose groups

  1. Read the run history: flywheel events search --type experiment.run.recorded --json --limit 0 --session <sessionId>. The session id is the sessions/<sessionId> segment of your scratchpad directory path. Keep only rows whose source is store and whose sessionId is this session; drop every log row. Validate each payload: run and segment are integers, commit and description are strings, status is one of keep, discard, crash, checks_failed, metric is a finite number. Sort the rows by position ascending; timestamps are not the order. Then filter to kept experiments only.
  2. Read .experiment/charter.md for context.
  3. Expand every short commit hash to a full hash with git rev-parse <short_hash>, and get the merge-base with git merge-base HEAD main.
  4. For each kept commit, get the diff stat ($BASE..<commit> for the first, <prev_kept>..<commit> for the rest).
  5. Group kept commits into logical changesets. Preserve application order. No two groups may touch the same file, because each branch is applied to the merge-base independently; merge groups that overlap. Flag cross-file dependencies ("group 2 depends on group 1, review together") and merge tightly coupled groups. Keep each group to one idea; the count follows the work.

Present the proposed grouping to the user as a numbered list: title, commits, files, and the metric before and after each group. Before you ask, write the complete groups JSON (the shape in references/groups-json.md) to a session note so it is frozen. Wait for approval before proceeding. After approval, run exactly the frozen JSON; do not recompute it. If the user asks for changes, revise the proposal, freeze the revised JSON, and ask again.

Read the full file on GitHub · 36 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · +1 lines a34aebc47493
  2. 22d ago Changed b488a5edc0f5
  3. 28d ago First seen · 35 lines · 18 tokens per session scan A 2852d28df6b4

Subscribe to this mod's changes

experiment-finalize is a skill published in the GitHub repository wsauret/flywheel (19 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 804 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

experiment-finalize compared with skills from other repositories

experiment-finalize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
experiment-finalizewsauret/flywheelSkill19todayApache-2.0A18Claude Code, Codex
cw-landHmbown/CodewhaleSkill41k1mo agoMITA44Claude Code, Codex
writing-git-commitspatriceckhart/zotSkill373yesterdayMITA14Claude Code, Codex
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
codew-release-qa-sweepHmbown/CodeWhaleSkill41k2d agoMITA31Claude Code, Codex
gh-find-prsHmbown/CodeWhaleSkill41k2d agoMITA27Claude Code, Codex
contributor-onboardingHmbown/CodeWhaleSkill41k2d agoMITA57Claude Code, Codex