agentleFS
Arnav-0Arnav-0/claude-code-setup/skills/autoresearch-agent/CLAUDE.md

claude-code-setup / autoresearch-agent

CLAUDE.md0 starsChanged 8 months agoMITView on GitHub

This plugin runs autonomous experiment loops that optimize any file by a measurable metric. Use the /ar: namespace for all commands: You (the AI agent) are the experiment loop. The scripts handle evaluation and git rollback. Results persist in results.tsv and git log. Sessions can be resumed. Creates the experiment directory, config, program.md, results.tsv, and git branch. Read history, make one change, evaluate, report result. Prompts for interval (10min, 1h, daily, weekly, monthly), then creates a recurring job. Shows the…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this CLAUDE.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Very specific:

    Use the /ar: namespace for all commands:

    line 7
  2. Distinctive:

    Read history, make one change, evaluate, report result.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

Autoresearch Agent — Claude Code Instructions

This plugin runs autonomous experiment loops that optimize any file by a measurable metric.

Commands

Use the /ar: namespace for all commands:

  • /ar:setup — Set up a new experiment interactively
  • /ar:run — Run a single experiment iteration
  • /ar:loop — Start an autonomous loop with user-selected interval
  • /ar:status — Show dashboard and results
  • /ar:resume — Resume a paused experiment

How it works

You (the AI agent) are the experiment loop. The scripts handle evaluation and git rollback.

  1. You edit the target file with ONE change
  2. You commit it
  3. You call run_experiment.py --single — it evaluates and prints KEEP/DISCARD/CRASH
  4. You repeat

Results persist in results.tsv and git log. Sessions can be resumed.

When to use each command

Starting fresh

/ar:setup

Creates the experiment directory, config, program.md, results.tsv, and git branch.

Running one iteration at a time

/ar:run engineering/api-speed

Read history, make one change, evaluate, report result.

Autonomous background loop

/ar:loop engineering/api-speed

Prompts for interval (10min, 1h, daily, weekly, monthly), then creates a recurring job.

Checking progress

/ar:status

Shows the dashboard across all experiments with metrics and trends.

Resuming after context limit or break

/ar:resume engineering/api-speed

Reads results history, checks out the branch, and continues where you left off.

Agents

  • experiment-runner: Spawned for each loop iteration. Reads config, results history, decides what to try, edits target, commits, evaluates.

Key principle

One change per experiment. Measure everything. Compound improvements.

The agent never modifies the evaluator. The evaluator is ground truth.

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.