agentleFS
Arnie016Arnie016/codex-prompt-templates/skills/experiment-loop-runner/SKILL.md

experiment-loop-runner

Skill3 starsChanged 6 months agoMITView on GitHub

Run a controlled THINK-EXECUTE-REFLECT loop for coding, research, or ML experiments. Use when the user wants iterative improvement, benchmark-driven changes, autonomous experiment planning, low-cost monitoring, or progress reports without uncontrolled agent drift. Skip production release loops that require gateway policy, trace-to-regression evals, guardrail rollout, budgets, or shadow/canary traffic; use `$auto-skill-build-agent-reliability-loop`.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when progress depends on repeated trials with measurable outcomes.

    line 14
  2. Distinctive:

    Think: read brief, constraints, current best, and recent memory.

    line 28
  3. Very specific:

    Verify: run the agreed test/benchmark/dry-run.

    line 30
  4. Distinctive:

    no improvement after N attempts

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Experiment Loop Runner

Use this when progress depends on repeated trials with measurable outcomes.

Required Control Files

PROJECT_BRIEF.md
workspace/
  MEMORY_LOG.md
  HUMAN_DIRECTIVE.md
  runs/

Loop

  1. Think: read brief, constraints, current best, and recent memory.
  2. Execute: make one bounded change or launch one run.
  3. Verify: run the agreed test/benchmark/dry-run.
  4. Reflect: record result, decision, and next branch.
  5. Stop or iterate: continue only when improvement signal exists.

Low-Cost Monitoring

For long jobs, monitor with shell/process/log checks instead of repeatedly asking the model to think:

  • PID alive check
  • tail last log lines
  • GPU/CPU status when relevant
  • metric parser script

Stop Conditions

  • target reached
  • no improvement after N attempts
  • verification becomes flaky
  • human directive changes the objective
  • cost/time budget exceeded

For production agent release loops that combine traces, eval groups, gateway routing, guardrails, budgets, and shadow/canary traffic, use $auto-skill-build-agent-reliability-loop first and use this skill for the bounded experiment cycles inside that plan.

Reference pattern source: sources/auto-deep-researcher-24x7.

Validation

  • Each loop has a stop condition before execution.
  • Each iteration records the change, verification command, result, and next decision.
  • Experiments that affect production users/tools are escalated to the reliability-loop skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.