agentleFS
Xiangyue-ZhangXiangyue-Zhang/auto-deep-researcher-24x7/skills/auto-experiment/SKILL.md

auto-experiment

Skill1.3k starsChanged 8 months agoApache-2.0View on GitHub

Launch an autonomous THINK→EXECUTE→REFLECT experiment loop on a GPU project

2 other projects use a version of this.

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the Xiangyue-Zhang/auto-deep-researcher-24x7 repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about Xiangyue-Zhang/auto-deep-researcher-24x7

The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. zjunlp/Mechanist★ 78same name
    2. zxl696/smallmodel-auto-experiment-skill★ 5same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user wants a compatible API endpoint instead of the official Anthropic or OpenAI API, keep the same provider values and set base_url …

    line 83
  2. Very specific:

    Read PROJECT_BRIEF.md (frozen, max 3000 chars)

    line 105
  3. Very specific:

    Read MEMORY_LOG.md (rolling, auto-compacted)

    line 106
  4. Very specific:

    Check for HUMAN_DIRECTIVE.md (highest priority, auto-archived after reading)

    line 107
  5. Very specific:

    After a few cycles, your workspace/MEMORY_LOG.md will look like:

    line 160

≈ “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

auto-experiment

Launch an autonomous experiment agent that runs your deep learning experiments 24/7.

What This Does

This skill starts a THINK → EXECUTE → REFLECT loop that:

  1. Reads your PROJECT_BRIEF.md to understand the research goal
  2. Analyzes previous results in MEMORY_LOG.md
  3. Plans the next experiment (hypothesis + success criteria)
  4. Implements code changes and runs a mandatory dry-run
  5. Launches GPU training via nohup (tracks PID)
  6. Monitors at zero LLM cost (only kill -0 PID + tail log + nvidia-smi)
  7. Wakes up when training finishes to analyze results
  8. Updates memory and decides: iterate, pivot, or report
  9. Repeats

Usage

Claude Code: /auto-experiment
Claude Code: /auto-experiment --project /path/to/my_project --gpu 0
Claude Code: /auto-experiment --project . --max-cycles 5
Codex: $auto-experiment

Prerequisites

The project directory must contain:

PROJECT_BRIEF.md (required)

A frozen reference describing your research goal. Example:

# Goal
Train a ViT-B/16 on ImageNet to reach 78%+ top-1 accuracy.

# Codebase
- Training: train.py
- Config: configs/vit_base.yaml
- Data: /data/imagenet/

# Constraints
- GPU 0-3 available (use DDP)
- Max 90 epochs per run
- Report val accuracy after each run

# Current Best
- ResNet-50 baseline: 76.1%

config.yaml (optional)

Override default agent settings:

agent:
  provider: "anthropic"    # or "openai" / "claude_cli" / "codex_cli"
  model: "claude-sonnet-4-6"
  base_url: ""             # optional compatible endpoint override
  api_key_env: ""          # optional custom key env var
  auth_token_env: ""       # optional custom bearer token env var
  max_cycles: -1          # -1 = unlimited
  max_steps_per_cycle: 3  # max sub-agent dispatches per cycle
  cooldown_interval: 300  # 5 min smart polling

memory:
  brief_max_chars: 3000
  log_max_chars: 2000

monitor:
  poll_interval: 900      # check every 15 min during training
  zero_llm: true

experiment:
  mandatory_dry_run: true

If the user wants a compatible API endpoint instead of the official Anthropic or OpenAI API, keep the same provider values and set base_url plus a custom api_key_env. Do not invent provider names like qwen or glm.

Optional remote execution over SSH:

execution:
  mode: "ssh"
  ssh_host: "user@server"
  remote_workspace: "/home/user/my_project/workspace"
  remote_python: "python3"

In SSH mode, the controller state stays local (PROJECT_BRIEF.md, workspace/MEMORY_LOG.md, workspace/HUMAN_DIRECTIVE.md, state.json), while code edits, shell commands, training, log tailing, PID checks, and GPU queries run on the configured remote host.

Workflow Details

Phase 1: THINK

  • Read PROJECT_BRIEF.md (frozen, max 3000 chars)
  • Read MEMORY_LOG.md (rolling, auto-compacted)
  • Check for HUMAN_DIRECTIVE.md (highest priority, auto-archived after reading)
  • Analyze: What's the current best? What hasn't been tried? What's most promising?
  • Output: experiment plan with hypothesis and success criteria

Phase 2: EXECUTE

  • Dispatch to Code Agent (5 tools: run_shell, launch_experiment, write_file, read_file, list_files)
  • Code Agent implements changes
  • Mandatory dry-run (2-step verify, abort if fails)
  • Launch training via nohup, capture PID
  • Enter zero-cost monitoring loop:
    • backend PID check — is process alive?
    • backend nvidia-smi — GPU utilization
    • backend tail -50 logfile — latest training output
    • Zero LLM API calls during this phase

Phase 3: REFLECT

  • Parse training logs for metrics (loss, accuracy, FGD, FID, etc.)
  • Compare against previous best
  • Log milestone if improved (auto-compacted at 1200 chars)
  • Log decision (rolling last 15 entries)
  • Decide: try another config / pivot direction / generate report

Human Override (anytime)

# Drop a directive file — agent reads it next cycle with highest priority
echo "Try learning rate 1e-5 with cosine schedule" > workspace/HUMAN_DIRECTIVE.md

Memory System

Two-Tier, constant size (~5K chars / ~1500 tokens), no matter how long the agent runs:

TierFileContentCap
1PROJECT_BRIEF.mdFrozen project reference3,000 chars
2MEMORY_LOG.mdKey Results + Recent Decisions2,000 chars

Auto-compaction rules:

  • Key Results: oldest dropped when section > 1,200 chars
  • Recent Decisions: only last 15 entries kept
  • Total log hard-capped at 2,000 chars

Cost

PhaseDurationLLM Cost
THINK5-10 min~$0.05
EXECUTE (training)hours/days$0.00
REFLECT5-10 min~$0.03
24h cycle total~$0.08

Example Output

After a few cycles, your workspace/MEMORY_LOG.md will look like:

# Memory Log

## Key Results
[04-07 14:30] Exp001: ResNet-50 baseline, lr=0.1, acc=76.1%
[04-07 22:15] Exp002: ViT-B/16, lr=1e-3, acc=74.8% (underperforming, lr too high)
[04-08 06:00] Exp003: ViT-B/16, lr=3e-4 + cosine, acc=77.9% (new best!)
[04-08 14:45] Exp004: ViT-B/16, lr=3e-4 + cosine + mixup, acc=78.3% (target reached!)

## Recent Decisions
[04-07 14:30] Start with ResNet-50 baseline to establish reference
[04-07 22:15] ViT lr=1e-3 too high, try 3e-4 next
[04-08 06:00] Cosine schedule helped significantly, try adding regularization
[04-08 14:45] Target reached! Generate final report.

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.