experimentation-loop

experimentation-loop is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 82 tokens per session (3,643 once invoked), scanned A, original, Apache-2.0.

A branch-based process for improving a measurable software result through repeated experiments. It compares each attempt with a baseline, keeps improvements, and reverses regressions.

In plain words
What is it for?
Use it to reduce latency, build time, bundle size, or memory use, or to improve test pass rates, scores, or accuracy when one command can measure the result.
Why use it?
It prevents guesswork when tuning performance or quality and leaves a record of what was tried. Bad changes can be removed without contaminating the main work.

Skill for Claude CodeCodex

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

Good fit Use it to reduce latency, build time, bundle size, or memory use, or to improve test pass rates, scores, or accuracy when one command can measure the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnpiyush/agentx/experimentation-loop
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 jnPiyush/AgentX --skill experimentation-loop
Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

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 experimentation-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnpiyush/agentx/experimentation-loop/github.svg)](https://agentmods.dev/skills/jnpiyush/agentx/experimentation-loop)
Your own site
<a href="https://agentmods.dev/skills/jnpiyush/agentx/experimentation-loop"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/experimentation-loop/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 experimentation-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnpiyush/agentx/experimentation-loop"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/experimentation-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,643 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00082 $0.03643
Opus 5.5 $0.00033 $0.01457
Sonnet 5.5 $0.00016 $0.00729
Haiku 4.5 $0.00008 $0.00364

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

Security

Grade A, and why

experimentation-loop 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 20d ago.

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.

.github/skills/development/experimentation-loop/SKILL.md · 406 lines

How it starts

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

Experimentation Loop

Purpose: Drive a measurable metric in a chosen direction by running many small, isolated experiments, keeping wins, and reverting losses. Scope: Branch isolation, metric definition, attempt audit trail, keep/revert decision rule.


When to Use This Skill

  • A target metric exists and can be measured by a deterministic command
  • The desired direction is known (lower latency, higher pass-rate, smaller bundle)
  • Many small attempts are likely needed
  • Reverting a bad attempt is cheap (single git checkout)
  • A durable record of every attempt is valuable

When NOT to Use

  • Correctness work where the goal is binary "tests pass" -- use iterative-loop
  • Tasks without a measurable metric or a way to compute it from a single command
  • Risk-bearing changes that should not auto-revert (use a normal review flow)
  • Production hotfixes (use targeted change with explicit review)

Prerequisites

  • Clean working tree on a non-main branch
  • A metric command that exits 0 and prints a single numeric value, OR a JSON value reachable by a fixed JSON pointer
  • A baseline measurement captured before the loop starts
  • Permission to commit on the experimentation branch
  • The loop runner MUST record files_changed (modified tracked files) and files_added (new untracked files) per attempt; reverts without that list are forbidden

Decision Tree

Is the goal a measurable number?
+- No -> use iterative-loop or standard workflow
- Yes
   +- Can the metric be computed by one command?
   |  +- No -> wrap it in a script that prints one number, then proceed
   |  - Yes -> proceed
   - Is each attempt cheap to revert?
      +- No -> do not auto-revert; require human gate per attempt
      - Yes -> use this loop

Loop Pattern

1. Capture baseline metric on isolated branch
2. Propose a single, narrow change with a hypothesis
3. Apply the change
4. Run the metric command
5. Compare against current best
   +- Improvement -> commit, update best, log win
   - Regression or no change -> revert working tree, log loss
6. Optional: stop if N consecutive losses or budget exhausted
7. Repeat until target reached, max attempts hit, or diminishing returns

Read the full file on GitHub · 406 lines

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. 20d ago Changed a1b9ef63f7db
  2. 1mo ago Changed 14a05da1300d
  3. 1mo ago First seen · 406 lines · 82 tokens per session scan A 384c7e7e126e

Subscribe to this mod's changes

experimentation-loop is a skill published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 82 tokens to every session and 3,643 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories