{"data":{"slug":"discovered-a640028a36469dcab0ebddc536c3f2a4b44c108d6055ef09","title":"Auto Research: Generate Autonomous Research Programs for AI Experiments","summary":"Create a `program.md` that instructs an AI agent to conduct autonomous research experiments based on user input and codebase exploration. The program defines an infinite loop of experiments, with specific rules for modification, metric tracking, and execution.","url":"https:\/\/skillshunter.net\/skills\/discovered-a640028a36469dcab0ebddc536c3f2a4b44c108d6055ef09","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-a640028a36469dcab0ebddc536c3f2a4b44c108d6055ef09","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-a640028a36469dcab0ebddc536c3f2a4b44c108d6055ef09.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-a640028a36469dcab0ebddc536c3f2a4b44c108d6055ef09\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before generating the program.md, the user must provide details about the project, including the codebase location, primary metric, experiment command, and hardware constraints. The AI agent must run all commands unattended, using non-interactive flags where necessary.","instructions":"---\nname: auto-research\ndisable-model-invocation: true\ndescription: Generate a program.md for autonomous AI research experiments (Karpathy's autoresearch paradigm). Interviews user about codebase, metric, and constraints, then produces a tailored program for an AI agent to iterate autonomously.\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Glob\n  - Grep\n  - Bash\n  - Agent\n---\n\n# AutoResearch: Generate Autonomous Research Programs\n\nYou are creating a `program.md` \u2014 a natural language program that instructs an AI agent to conduct\nautonomous research experiments. The generated document is not documentation; it is executable\ninstructions that an AI agent will follow literally, running experiments in an infinite loop.\n\n## The Core Idea\n\nThe human writes a research plan (program.md). The AI agent executes the experiment loop. Code is\nthe agent's operating target, not the human's. The human sleeps; the agent works.\n\n## How This Skill Works\n\n### Phase 1: Interview the User\n\nBefore generating anything, you need to understand the research context. Ask the user about these\nareas (adapt based on what they've already told you \u2014 skip questions they've answered):\n\n#### 1. Project Basics\n- What is the project about? (e.g., \"training a small LLM\", \"optimizing a recommender system\")\n- Where is the codebase? (directory path)\n- What language\/framework? (Python\/PyTorch, etc.)\n\n#### 2. File Scope\n- Which file(s) should the agent modify? (the \"experiment surface\")\n- Which files are read-only? (fixed infrastructure \u2014 evaluation, data loading, etc.)\n- Are there any files the agent should read for context but not modify?\n\n#### 3. Metric & Goal\n- What is the primary metric? (e.g., val_bpb, accuracy, F1, loss, latency)\n- Direction: lower is better, or higher is better?\n- How is it measured? (which script\/function, what command to run)\n- How to extract the result from output? (grep pattern or similar)\n\n#### 4. Experiment Execution\n- What command runs a single experiment? (e.g., `uv run train.py`, `python train.py`)\n- How long does one experiment take? (time budget)\n- What hardware constraints exist? (GPU memory, CPU-only, MPS, etc.)\n\n#### 5. Data & Environment\n- What data does the project use? Where is it stored?\n- Any one-time setup steps needed before experiments can run?\n- Any dependencies or environment requirements?\n\n#### 6. Constraints & Preferences\n- Can the agent install new packages?\n- Any specific areas the agent should focus on or avoid?\n- Any simplicity preferences? (complexity budget for improvements)\n\n### Phase 2: Explore the Codebase\n\nAfter the interview, read the key files to understand:\n- The project structure\n- The current metric output format\n- The evaluation mechanism\n- What parameters\/architecture choices are available to modify\n\n### Phase 3: Generate program.md\n\nRead the template at `references\/program-template.md` and fill it in based on the interview\nand codebase exploration. The template contains `{{PLACEHOLDER}}` markers \u2014 replace each one\nwith content tailored to the user's project.\n\n#### Key Principles for Generation\n\n1. **Preserve the original spirit**: The generated program.md must retain ALL sections from the\n   template. Never remove sections \u2014 only customize their content. The structure (Setup,\n   Experimentation rules, Output format, Logging, Experiment loop, Timeout, Crashes, NEVER STOP)\n   is sacred.\n\n2. **Be specific**: Replace generic placeholders with actual file names, actual commands, actual\n   grep patterns. The agent following this document should not need to guess anything.\n\n3. **Calibrate the noise threshold**: Based on the metric and experiment duration, set an\n   appropriate threshold for distinguishing real improvement from noise. Short runs with high\n   variance need larger thresholds.\n\n4. **Right-size the experiment priority list**: Suggest experiment directions that make sense for\n   the specific domain. An LLM training project has different levers than a reinforcement learning\n   project or an image classifier.\n\n5. **Adapt constraints to the environment**: A Mac with MPS has different constraints than an\n   H100. Adjust VRAM warnings, batch size advice, and timeout values accordingly.\n\n6. **Enforce non-interactive operations**: The generated program.md must emphasize that all\n   commands run unattended. The template includes a \"Non-interactive principle\" section \u2014 ensure\n   the run command, git operations, and any project-specific commands are configured with\n   non-interactive flags. If the user's workflow involves commands that might prompt for input,\n   identify and document the non-interactive alternatives during the interview phase.\n\n### Phase 4: Review with User\n\nPresent the generated program.md to the user. Walk them through the key sections and confirm:\n- Are the file scopes correct?\n- Is the metric extraction right?\n- Are the experiment priorities sensible?\n- Is the time budget appropriate?\n\nMake adjustments based on feedback.\n\n### Phase 5: Save and Advise\n\nSave the program.md to the project directory. Advise the user on how to start:\n\n```\nTo start autonomous research:\n1. Open a new Claude Code \/ AI agent session in the project directory\n2. Prompt: \"Read program.md and let's start. Do the setup first.\"\n3. Confirm the setup, then let the agent run\n4. Check results.tsv when you return\n```\n","use_cases":["Automate iterative training of machine learning models","Optimize hyperparameters in an autonomous loop","Run continuous evaluation of model performance","Explore architectural changes in an AI project"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/yanmxa\/skills\/blob\/70106f3e2d6d370f1b285da422235e15663bafac\/skills\/dev\/auto-research\/SKILL.md","source_commit":"70106f3e2d6d370f1b285da422235e15663bafac","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:49:38.000000Z","updated_at":"2026-12-02T09:15:00.000000Z","seo_title":"Auto Research: Generate Autonomous AI Research Programs","seo_description":"Generate a program.md to automate AI research experiments. Define experiment rules, metric tracking, and execution parameters for autonomous AI agents.","seo_keywords":["autonomous research","AI experiment automation","program.md generation","autoresearch paradigm","AI agent execution"]}}