Auto Deep Researcher 24x7
An AI agent that autonomously runs deep learning experiments 24/7, optimizing research workflows.
Recent Updates
2026-04-19
- Workers now execute tools through a real multi-turn tool-use loop. The dispatcher injects the tool schema into the system prompt, parses
<tool_call>blocks from the LLM response, runs each throughToolRegistry.execute_tool, feeds results back as<tool_result>in the next turn, and iterates until the worker produces a response with no tool calls ormax_turnsis hit. Previously thetoolsargument was accepted and silently dropped, and worker output was regex-scraped for PIDs — closes the gap raised in issue #13. launch_experimentPIDs and log file paths are now surfaced directly from the tool result (authoritative), with the old free-text regex retained only as a fallback for pre-protocol responses.claude_cliis forced into pure-text mode viaclaude -p --tools "", so its responses reliably go through the framework's protocol.codex_clicannot be forced into pure-text mode by any current flag; when used as a worker provider the framework now emits a clear warning (see the updated compatibility table in Supported LLM Providers).- Tool-call blocks inside triple-backtick code fences are stripped before parsing, so illustrative examples in the LLM's prose are no longer accidentally executed.
- Dead parameters (
tools,max_turns) removed from_call_llm. They were never forwarded to the SDK; this aligns the code with what it actually does.
2026-04-18
- Added two new
providermodes that reuse existing flat-rate subscriptions instead of per-token API billing:claude_cli(via the localclaude -pCLI) andcodex_cli(via the localcodex execCLI). Much cheaper when running multiple 24/7 agents in parallel. See the updated Supported LLM Providers section for the full API-vs-subscription trade-off table. - Provider validation added at dispatcher construction; unknown provider values now fail fast with a clear error instead of silently falling through.
- CLI subprocess path is defensive: missing binary, non-zero exit, and 10-min timeout all degrade to a structured wait-action reply rather than crashing the loop. Oversize prompts automatically fall back from argv to stdin.
2026-04-09
- Reduced token growth by resetting leader context between cycles.
- Added a lightweight fallback to avoid repeated no-progress loops.
- Hardened tool execution against path traversal and shell injection.
2026-04-08
- Added progress tracking exports for experiment monitoring.
- Supports optional Obsidian sync for a live dashboard plus daily notes.
- If no Obsidian vault is configured, progress falls back to project-local text files under
workspace/progress_tracking/.
Start In 3 Steps
If you only want the shortest path to a working experiment loop, do this:
- Create a project folder with one file:
PROJECT_BRIEF.md - Run
/auto-experiment --project /path/to/project --gpu 0 - Check progress with
/experiment-statusor optional Obsidian/local text notes
Prefer AI-guided setup? Open AI_GUIDE.md in Claude / ChatGPT / Codex and let the assistant walk you through it.
What You Actually Need
| Requirement | Required | Notes |
|---|---|---|
| Python 3.10+ | Yes | Runtime |
| 1+ NVIDIA GPU | Yes | For training |
| API key | Yes | Anthropic or OpenAI |
PROJECT_BRIEF.md | Yes | Main control file |
Project config.yaml | Optional | Only if you want to override defaults |
| Obsidian vault | Optional | If absent, notes fall back to local text files |
Minimum Working Example
The smallest project you can launch looks like this:
my-first-experiment/
├── PROJECT_BRIEF.md
└── workspace/ # auto-created
Minimal PROJECT_BRIEF.md:
# Goal
Train a ResNet-50 on CIFAR-100 to reach 80%+ accuracy.
# Codebase
Create the training code from scratch in PyTorch.
# What to Try
- Start with a basic ResNet-50 baseline.
- If accuracy < 75%, improve optimization and schedule.
- If accuracy is 75-80%, try augmentation.
- If accuracy > 80%, stop and report.
# Constraints
- Use GPU 0 only
- Max 100 epochs per run
That is enough to start. Everything else is optional refinement.
What This Project Is Good At
This project is for people who already know what experiment they want to run, but do not want to babysit the loop:
- edit code
- launch training
- monitor runs
- parse logs
- decide the next variation
- keep going while you sleep
It is not trying to replace the researcher. It is trying to take over the repetitive experiment-ops layer.
Why It Feels Different From A Simple Script
- It does not just launch one run. It keeps iterating.
- It does not just monitor. It reflects and decides the next step.
- It stays cheap because training-time monitoring makes zero LLM calls.
- It stays controllable because the human can override direction at any cycle.
- It now supports persistent progress notes in Obsidian or local text files.
How You Stay In Control
You control the research direction through three files:
PROJECT_BRIEF.md: stable goal, constraints, allowed search spaceHUMAN_DIRECTIVE.md: temporary redirect for the next cycleworkspace/MEMORY_LOG.md: rolling memory of results and decisions
Common control patterns:
# Keep the search narrow
- Only tune augmentation.
- Do not change the backbone.
- Keep training budget fixed.
# Make the agent stop exploring a weak direction
- If gain stays below 0.3 points for 3 runs, stop this branch.
- Return to the last trusted baseline and try a different idea.
# Force result verification
- If a result looks unusually strong, rerun with the same seed and one new seed.
- Do not claim improvement until both reproduce.
How You See Progress
You should never have to guess what the agent is doing.
/experiment-statusshows current goal, best result, cycle count, running status, and recent decisions/progress-reportgenerates a structured summary/obsidian-syncrefreshes persistent notes manuallyworkspace/progress_tracking/stores local text notes when no Obsidian vault is configured
If you want a dashboard outside the terminal:
obsidian:
enabled: true
vault_path: "~/Documents/MyObsidianVault" # Optional
auto_append_daily: true
If vault_path is empty, the same information is saved locally:
workspace/progress_tracking/Dashboard.txt
workspace/progress_tracking/Daily/YYYY-MM-DD.txt
💛 A Note on Why We Built This — and How We Hope You'll Use It
Our hope is simple: science stays pure, and the human stays in the loop.
We built this framework for one reason — to take the repetitive, mechanical parts of running deep learning experiments off the researcher's plate (launching jobs, watching GPUs, parsing logs, sweeping hyperparameters) so that more of your time can go into the part that actually matters: thinking.
If you're here because you want to spend less time babysitting training runs and more time reading, reasoning, and chasing your own ideas — welcome. That's exactly who we built this for.
A gentle thought we'd love every user to share with us:
The agent is happy to run the experiments. But please let the ideas, the interpretation, and the scientific judgment remain yours. We don't see automation and academic integrity as being in tension — quite the opposite. The hours this tool gives back are meant to be reinvested in deeper thinking, not in skipping it.
So we'd kindly ask that this project not be used to fabricate results, to generate "research" with no human in the loop, or to shortcut the parts of science that depend on a human actually understanding what they're doing. That isn't the future we want to help build — and we don't think it's the one most of you want either.
Science should stay pure. The agent can run the experiments — but the ideas, the interpretation, and the responsibility belong to the human.
学术应当保持纯粹。 Agent 可以替你跑实验,但 idea、判断与责任,请留给人来承担。我们真心希望每一位使用者都能 human in the loop 地去思考,把这个工具省下来的时间,投入到真正属于你自己的研究方向里。
科学は純粋であるべきです。 Agent は実験を走らせることができますが、アイデア・解釈・責任は、どうか人間の手に残してください。
과학은 순수해야 합니다. Agent는 실험을 대신 실행해 줄 수 있지만, 아이디어와 해석, 그리고 책임은 부디 사람의 몫으로 남겨주세요.
We trust the people who pick up this tool to take that seriously — and we built it because we believe most of you already do. Thank you for being one of them. 💛
The Core Idea
You design the experiment. The agent handles the repetitive loop.
Deep Researcher Agent:
- Thinks — Reads your project brief, analyzes previous results, plans the next experiment
- Executes — Modifies code/configs, runs a dry-run, launches training on GPU
- Monitors — Watches training at zero LLM cost (just process checks + log reads)
- Reflects — Parses results, compares with baselines, decides what to try next
- Repeats — 24/7, without human intervention
You sleep 8 hours → Agent runs 3 experiment cycles
You go on vacation → Agent explores 50+ hyperparameter configs
You write your paper → Agent already has the results table ready
Battle-Tested Results
Not benchmarks. Real results from months of 24/7 autonomous operation across research projects.
| Metric | Result |
|---|---|
| Autonomous experiment cycles completed | 500+ |
| Best single-project improvement | 52% over baseline (across 200+ auto-run experiments) |
| Concurrent projects managed | 4 projects across 4 GPU servers |
| Longest continuous autonomous operation | 30+ days without human intervention |
| Average LLM cost per 24h cycle | ~$0.08 |
Key Innovation: Zero-Cost Monitoring
The #1 concern with running LLM agents 24/7: cost.
Most agent frameworks call the LLM every few minutes to "check progress". That's $50+/day.
Experiment Agent sleeps during training — zero API calls. It only wakes the LLM when training finishes.
LLM Active Zero Cost LLM Active
┌────────────┐ ┌─────────────────────┐ ┌────────────┐
│ THINK │ │ TRAIN & MONITOR │ │ REFLECT │
│ (5-10 min) │ │ (hours/days) │ │ (5-10 min) │
│ │ │ │ │ │
│ • Analyze │ │ • kill -0 $PID │ │ • Parse │
│ • Plan │ │ • nvidia-smi │ │ logs │
│ • Code │ │ • tail log │ │ • Compare │
│ │ │ │ │ • Decide │
│ ~$0.05 │ │ $0.00 │ │ ~$0.03 │
└────────────┘ └─────────────────────┘ └────────────┘
24-hour cycle with 8 hours of training: ~$0.08 in LLM calls.
Architecture
The THINK → EXECUTE → REFLECT Loop
┌──────────────────────────────────────────────────────┐
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ THINK │───→│ EXECUTE │───→│ REFLECT │──┐ │
│ │ │ │ │ │ │ │ │
│ │ Analyze │ │ Dry-run │ │ Evaluate │ │ │
│ │ Plan │ │ Launch │ │ Compare │ │ │
│ │ Decide │ │ Monitor │ │ Update │ │ │
│ └──────────┘ └──────────┘ └──────────┘ │ │
│ ↑ │ │
│ └─────────────────────────────────────────┘ │
│ ↻ 24/7 Loop │
└──────────────────────────────────────────────────────┘
Leader-Worker Agent System
Only ONE worker runs at a time. Others idle at zero cost.
┌───────────────┐
│ Leader │ Persistent conversation
│ (Planner) │ within each cycle
└───┬───┬───┬───┘
│ │ │
┌───────┘ │ └───────┐
↓ ↓ ↓
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Idea │ │ Code │ │ Writing │
│ Agent │ │ Agent │ │ Agent │
│ (4 tools)│ │ (5 tools)│ │ (3 tools)│
└──────────┘ └──────────┘ └──────────┘
Two-Tier Memory (Constant Size Forever)
┌─────────────────────────────────────────┐
│ Tier 1: PROJECT_BRIEF.md │
│ • Frozen project reference │
│ • Max 3,000 chars │
├─────────────────────────────────────────┤
│ Tier 2: MEMORY_LOG.md │
│ • Key Results (auto-compact at 1,200ch) │
│ • Recent Decisions (rolling last 15) │
│ • Max 2,000 chars │
├─────────────────────────────────────────┤
│ Total: ~5K chars / ~1,500 tokens │
│ SAME whether running 1 day or 6 months │
└─────────────────────────────────────────┘
Cost Control Strategies (8 Total)
| # | Strategy | Savings |
|---|---|---|
| 1 | Zero-LLM monitoring during training | 90%+ of runtime is free |
| 2 | Two-Tier memory with auto-compaction | Fixed context window |
| 3 | Leader conversation persists within cycle | Brief sent once per cycle |
| 4 | Anthropic prompt caching | System/tools cached |
| 5 | Per-agent minimal tool sets (3-5 tools) | Less schema overhead |
| 6 | Slim system prompts | Fewer input tokens |
| 7 | State trimmed before sending | No bloat |
| 8 | Single worker at a time | No parallel LLM costs |
<a name="quickstart"></a>
Getting Started (Step by Step)
Complete beginner? Follow every step below. You'll go from zero to a running experiment agent in ~10 minutes.
Prefer AI-guided setup? Open
AI_GUIDE.mdin Claude Code, ChatGPT, or Codex — the AI will walk you through everything interactively.
Step 0: What You Need
| Requirement | Why | How to Check |
|---|---|---|
| Python 3.10+ | Runtime | python3 --version |
| Claude Code | The AI backbone | claude --version |
| 1+ NVIDIA GPU | For training | nvidia-smi |
| Anthropic API key | LLM calls | echo $ANTHROPIC_API_KEY |
Don't have an API key? Get one at console.anthropic.com and set it:
export ANTHROPIC_API_KEY="sk-ant-xxxxx"
# Add to ~/.bashrc or ~/.zshrc to make it permanent
Step 1: Install
# Clone the repo
git clone https://github.com/Xiangyue-Zhang/auto-deep-researcher-24x7.git
cd auto-deep-researcher-24x7
# Install Python dependencies
pip install -r requirements.txt
# Install 8 slash commands into Claude Code
python install.py
# Verify everything works
python -m core.loop --check
You should see:
Deep Researcher Agent — Installer
========================================
✓ /auto-experiment
✓ /experiment-status
✓ /gpu-monitor
✓ /daily-papers
✓ /paper-analyze
✓ /conf-search
✓ /progress-report
✓ /obsidian-sync
Done! 8 skills installed.
Step 2: Create Your First Project
Let's say you want to train a ResNet on CIFAR-100. Create a project folder with a PROJECT_BRIEF.md:
mkdir ~/my-first-experiment
cd ~/my-first-experiment
Now write the brief — this is the most important file. It tells the agent what you want:
cat > PROJECT_BRIEF.md << 'EOF'
# Goal
Train a ResNet-50 on CIFAR-100 to reach 80%+ test accuracy.
# Codebase
The agent should create the training code from scratch using PyTorch.
- Use torchvision for the dataset (auto-download)
- Save checkpoints to ./checkpoints/
- Log metrics to ./logs/
# What to Try
- Start with a basic ResNet-50, lr=0.1, SGD, 100 epochs
- If accuracy < 75%, try cosine annealing + warmup
- If accuracy 75-80%, try adding mixup or cutout augmentation
- If accuracy > 80%, the goal is reached
# Constraints
- Use GPU 0 only
- Max 100 epochs per run
- Batch size 128
# Current Status
No experiments run yet. Starting from scratch.
EOF
Tips for writing a good brief:
- Be specific about the goal (metric + target value)
- Tell it where the code/data is (or say "create from scratch")
- List constraints (which GPU, max epochs, etc.)
- Give it a decision tree ("if X, try Y") — this guides the agent like you would guide a junior student
Step 3: Launch the Agent
Option A: Through Claude Code (recommended)
Open Claude Code and type:
/auto-experiment --project ~/my-first-experiment --gpu 0
Option B: Through Python directly
python -m core.loop \
--project ~/my-first-experiment \
--gpu 0 \
--max-cycles 5 # Stop after 5 cycles (remove for unlimited)
Step 4: Watch What Happens
The agent will now do everything automatically. Here's what each cycle looks like:
=== Cycle 1 ===
[THINK] Reading PROJECT_BRIEF.md...
Goal: ResNet-50 on CIFAR-100, target 80%+
No previous experiments. Starting with baseline.
Plan: Basic ResNet-50, lr=0.1, SGD with momentum, 100 epochs.
[EXECUTE] Creating train.py...
Creating config.yaml...
Running dry-run (2 steps)... ✓ No errors
Launching training: nohup python train.py --config config.yaml
PID: 12345, Log: logs/exp001.log
[MONITOR] Training in progress... (zero LLM cost)
15:00 — PID alive, GPU 98%, Epoch 12/100, loss=2.34
15:15 — PID alive, GPU 97%, Epoch 25/100, loss=1.87
15:30 — PID alive, GPU 98%, Epoch 38/100, loss=1.54
...
17:45 — PID alive, GPU 97%, Epoch 100/100, loss=0.82
18:00 — PID terminated. Training complete.
[REFLECT] Parsing logs... test accuracy = 76.3%
Result: 76.3% — below 80% target
Brief says: "If < 75%, try cosine annealing"
76.3% > 75%, so try augmentation instead.
Decision: Add mixup augmentation, keep lr=0.1 + cosine
Milestone logged: "Exp001: ResNet-50 baseline, 76.3%"
=== Cycle 2 ===
[THINK] Best so far: 76.3% (Exp001)
Plan: Add mixup (alpha=0.2) + cosine annealing schedule
...
Step 5: Check Progress Anytime
While the agent is running, you can check on it:
# In Claude Code:
/experiment-status --project ~/my-first-experiment
# Or check GPU usage:
/gpu-monitor
You'll see something like:
# Experiment Status — my-first-experiment
## Goal
ResNet-50 on CIFAR-100 → 80%+ accuracy
## Progress
- Cycles completed: 3
- Current best: 79.1% (Exp003: ResNet-50 + mixup + cosine)
- Status: TRAINING (PID 12389, GPU 0, running 1.5h)
## Key Results
[04-07 15:00] Exp001: ResNet-50 baseline, 76.3%
[04-07 18:30] Exp002: + cosine annealing, 77.8%
[04-07 22:00] Exp003: + mixup α=0.2, 79.1% ← best
## Current Training
Epoch 67/100 | loss: 0.71 | acc: 79.4%
Step 5.5: Save Progress to Obsidian or Local Text
Enable progress export in your project config.yaml:
obsidian:
enabled: true
vault_path: "~/Documents/MyObsidianVault" # Optional
project_subdir: "DeepResearcher/{project_name}"
auto_append_daily: true
If vault_path is set, the agent writes:
DeepResearcher/my-first-experiment/Dashboard.md
DeepResearcher/my-first-experiment/Daily/YYYY-MM-DD.md
If vault_path is empty, it falls back to project-local files:
workspace/progress_tracking/Dashboard.txt
workspace/progress_tracking/Daily/YYYY-MM-DD.txt
Manual refresh:
/obsidian-sync --project ~/my-first-experiment
# or
python -m core.obsidian --project ~/my-first-experiment
Step 6: Intervene If Needed
Want to change direction? Three ways, from anywhere:
# Way 1: Drop a directive file (agent reads it next cycle)
echo "Stop trying ResNet. Switch to ViT-B/16, start with lr=1e-3" \
> ~/my-first-experiment/workspace/HUMAN_DIRECTIVE.md
# Way 2: Command-line flag
python -m core.loop --project ~/my-first-experiment \
--directive "Try label smoothing 0.1"
# Way 3: Edit memory directly (for permanent changes)
vim ~/my-first-experiment/workspace/MEMORY_LOG.md
Human-in-the-Loop Playbook
Use the agent as an operator, not a replacement researcher.
Human decides:
- goal
- constraints
- forbidden directions
- when to pivot
Agent executes:
- code edits
- runs
- monitoring
- summaries
Write stable rules in PROJECT_BRIEF.md, and temporary steering in HUMAN_DIRECTIVE.md.
# HUMAN_DIRECTIVE.md
- Do not change the dataset.
- Try label smoothing 0.1 before changing the backbone.
- Stop this direction if gain stays below 0.3 for 3 runs.
- Compare against the last trusted baseline, not just the latest run.
Case 1: Safer ablation
- Only change augmentation.
- Keep model, optimizer, and training budget fixed.
- Report a clean comparison table after each run.
Case 2: Deliberate pivot
- Current ResNet line is saturated.
- Switch to ViT-B/16 only if the last 3 runs plateau.
- Before switching, write a short rationale.
Case 3: Suspicious result
- Accuracy jumped unexpectedly.
- Re-run with the same seed and one new seed.
- Do not claim improvement until both runs reproduce.
Rule of thumb: let the agent handle repetition, but keep direction, interpretation, and responsibility human.
Step 7: Mobile Monitoring with Happy Coder (Optional)
Want to check experiments from your phone? Install Happy Coder (iOS / Android):
# Install CLI (one time)
npm install -g happy-coder
# Start session through Happy instead of claude
happy
# Inside the session, launch your experiment:
/auto-experiment --project ~/my-first-experiment --gpu 0
Now on your phone you can:
- Get push notifications when experiments finish or the agent needs input
- Check results while commuting
- Send directives ("try learning rate 1e-5") from anywhere
- Switch between phone and desktop seamlessly
- All communication is end-to-end encrypted
┌──────────┐ encrypted ┌──────────┐
│ Desktop │ ◄──────────────► │ Phone │
│ Claude │ relay │ Happy │
│ Code │ │ Coder │
├──────────┤ ├──────────┤
│ Agent │ ← push notify ── │ "Try │
│ running │ │ lr=1e-5"│
│ 24/7 │ ── status ────► │ ✓ Got it │
└──────────┘ └──────────┘
What a Good PROJECT_BRIEF.md Looks Like
The brief is your main lever. Here are examples for different scenarios:
<details> <summary><b>Example: Fine-tuning a pretrained model</b></summary># Goal
Fine-tune ViT-B/16 (pretrained on ImageNet-21K) on Oxford Flowers-102.
Target: 95%+ test accuracy.
# Codebase
- Training script: finetune.py (already exists)
- Config: configs/vit_flowers.yaml
- Data: /data/flowers102/ (already downloaded)
- Pretrained weights: /models/vit-b16-21k.pth
# What to Try
1. First: freeze backbone, train classifier head only (10 epochs, lr=1e-2)
2. Then: unfreeze all, fine-tune end-to-end (30 epochs, lr=1e-4)
3. If stuck below 93%: try layer-wise lr decay (0.65)
4. If above 94%: try test-time augmentation
# Constraints
- GPU 0, batch size 64
- Save best checkpoint based on val accuracy
</details>
<details>
<summary><b>Example: Hyperparameter search</b></summary>
# Goal
Find the best hyperparameters for our GAN on CelebA-HQ 256x256.
Target: FID < 15.
# Codebase
- train_gan.py, configs/celeba_gan.yaml
- Data: /data/celeba_hq_256/
- Evaluation: eval_fid.py --real_dir /data/celeba_hq_256/val
# Search Space
- Learning rate: [1e-4, 2e-4, 5e-4]
- Beta1: [0.0, 0.5]
- Discriminator steps per generator step: [1, 2, 5]
- Spectral norm: [yes, no]
# Strategy
Start with lr=2e-4, beta1=0.0, d_steps=1, spectral_norm=yes (baseline).
Change ONE variable at a time. Run each for 50K steps.
Always evaluate FID after training.
# Constraints
- GPU 0-1 (can use both)
- Max 50K steps per run (~4 hours)
</details>
<details>
<summary><b>Example: Debugging a training issue</b></summary>
# Goal
Figure out why our transformer model diverges after epoch 20.
Currently: loss explodes from 0.5 to NaN around epoch 20-25.
# Codebase
- train_transformer.py, model/transformer.py
- Config: configs/base.yaml
- Logs from failed runs: logs/failed_run_001.log, logs/failed_run_002.log
# What to Investigate
1. Check gradient norms — add gradient clipping (max_norm=1.0)
2. Try lower learning rate (current: 1e-3, try: 1e-4, 5e-5)
3. Check if it's a specific layer — add per-layer gradient logging
4. Try warmup (1000 steps) if not already present
5. Check data — are there any NaN/Inf in the dataset?
# Constraints
- GPU 0, run each test for 30 epochs (enough to see if it diverges)
- Log gradient norms every 100 steps
</details>
FAQ
<details> <summary><b>Q: How much does it cost to run?</b></summary>About $0.08 per 24-hour cycle (if training takes 8 hours). The secret: zero LLM calls during training. You only pay for the THINK and REFLECT phases (~10 min each).
</details> <details> <summary><b>Q: Can it modify my existing code?</b></summary>Yes. The Code Agent can read, write, and modify any file in your project. It will make changes, dry-run to verify, then launch training. It won't touch protected files (PROJECT_BRIEF.md, MEMORY_LOG.md).
</details> <details> <summary><b>Q: What if the agent goes in a wrong direction?</b></summary>Drop a directive: echo "Stop. Go back to the ResNet approach" > workspace/HUMAN_DIRECTIVE.md. The agent reads it next cycle with highest priority.
Yes. Launch separate agent instances in different terminals/tmux sessions, each pointing to a different project and GPU.
</details> <details> <summary><b>Q: What happens if training crashes?</b></summary>The monitor detects the process died, captures the error log, and passes it to REFLECT. The agent will analyze the crash, fix the code, and retry.
</details> <details> <summary><b>Q: Can I use it with PyTorch / TensorFlow / JAX?</b></summary>Yes. The agent works with any training framework. It just launches shell commands and reads log files — it doesn't care what framework produces them.
</details>One-Click Install (Claude Code Skills)
All features are packaged as Claude Code slash commands. One command to install:
python install.py
After installation, you get 8 slash commands in Claude Code:
Core Skills
| Command | What It Does |
|---|---|
/auto-experiment | Launch the 24/7 autonomous THINK→EXECUTE→REFLECT experiment loop |
/experiment-status | Check running experiments: progress, metrics, cycle count, GPU usage |
/gpu-monitor | Quick GPU status: free/busy, memory, utilization, running processes |
Research Skills
| Command | What It Does |
|---|---|
/daily-papers | Daily arXiv recommendations with automatic dedup |
/paper-analyze 2312.12345 | Deep paper analysis + extract real figures from arXiv source |
/conf-search --venue CVPR2025 --query "motion" | Search CVPR/NeurIPS/ICML/ICLR/AAAI/ECCV... |
/progress-report | Generate structured progress report with metrics |
/obsidian-sync | Refresh Obsidian or local progress notes |
Usage Example
# Step 1: Install skills (one time)
python install.py
# Step 2: In Claude Code, launch an experiment loop
/auto-experiment --project /path/to/my_project --gpu 0
# Step 3: Check how it's going
/experiment-status --project /path/to/my_project
# Step 4: Check GPU resources
/gpu-monitor
# Step 5: Read papers while the agent trains for you
/daily-papers --topics "vision transformer, image classification"
Uninstall
python install.py --uninstall
Supported LLM Providers
Works with both Anthropic and OpenAI out of the box, and can run on a flat-rate subscription instead of per-token billing via the local CLIs.
| Tier | Anthropic (Claude) | OpenAI (Codex/GPT) | Best For |
|---|---|---|---|
| Fast | claude-sonnet-4-6 | codex-5.3 | Daily experiments, iteration |
| Strongest | claude-opus-4-6 | gpt-5.4 | Complex reasoning, architecture decisions |
Authentication mode: API key vs. subscription
| Mode | provider value | Billing | Requires | Tool-use support |
|---|---|---|---|---|
| API — Anthropic | anthropic | Per-token, via ANTHROPIC_API_KEY | pip install anthropic | ✅ Full |
| API — OpenAI | openai | Per-token, via OPENAI_API_KEY | pip install openai | ✅ Full |
| Subscription — Claude | claude_cli | Flat-rate, uses your Claude Code / Pro / Max plan | claude CLI installed and logged in | ✅ Full |
| Subscription — ChatGPT | codex_cli | Flat-rate, uses your ChatGPT Plus / Pro plan | codex CLI installed and logged in | ⚠️ Leader only |
Tool execution is driven by a text-based <tool_call> protocol injected
into the worker's system prompt. All three "Full" providers can be forced
into pure text-oracle mode so they honor the protocol (for claude_cli
the framework passes --tools "" to disable built-in CLI tools). The
codex CLI currently offers no equivalent flag — its internal agentic
loop will bypass the protocol and the framework cannot recover PIDs from
experiments it launches. Use codex_cli only for the leader/think path
where no tools are needed.
Switch provider in config.yaml:
agent:
# Pay-per-token (needs API key):
provider: "anthropic" # or "openai"
model: "claude-sonnet-4-6" # or "codex-5.3"
# Flat-rate subscription (needs CLI login instead of API key):
# provider: "claude_cli" # or "codex_cli"
Or set via environment (API-key modes only):
# For API-key "anthropic" provider:
export ANTHROPIC_API_KEY="sk-ant-xxxxx"
# For API-key "openai" provider:
export OPENAI_API_KEY="sk-xxxxx"
# For subscription providers (claude_cli / codex_cli): no env var — just
# install the CLI once and run `claude` or `codex login` to sign in.
Configuration
# config.yaml
project:
name: "my-research"
brief: "PROJECT_BRIEF.md"
agent:
provider: "anthropic" # "anthropic" or "openai"
model: "claude-sonnet-4-6" # See model table above
max_cycles: -1 # -1 = run forever
max_steps_per_cycle: 3 # Max worker dispatches per cycle
cooldown_interval: 300 # Smart cooldown polling (seconds)
memory:
brief_max_chars: 3000 # Tier 1 cap
log_max_chars: 2000 # Tier 2 cap
milestone_max_chars: 1200 # Key results cap
max_recent_entries: 15 # Rolling decision count
gpu:
auto_detect: true
reserve_last: true # Reserve last GPU for keep-alive
monitor:
poll_interval: 900 # Check every 15 min during training
zero_llm: true # No LLM during monitoring
experiment:
mandatory_dry_run: true # Always dry-run before real training
max_parallel: 1 # Concurrent experiments
How It Compares
| Deep Researcher Agent | Claude Scholar | AI Scientist | OpenHands | SWE-Agent | |
|---|---|---|---|---|---|
| Runs experiments autonomously | ✅ | ❌ | ❌ | ❌ | ❌ |
| Zero-cost training monitoring | ✅ | ❌ | ❌ | ❌ | ❌ |
| GPU management | ✅ | ❌ | ❌ | ❌ | ❌ |
| 24/7 continuous operation | ✅ | ❌ | ❌ | ❌ | ❌ |
| Constant-size memory | ✅ | ❌ | ❌ | ❌ | ❌ |
| Paper writing | Basic | ✅ | ✅ | ❌ | ❌ |
| Knowledge management | Basic | ✅ | ❌ | ❌ | ❌ |
| General coding | ❌ | ❌ | ❌ | ✅ | ✅ |
Deep Researcher Agent is the only framework built for running deep learning research, not just writing about it.
Project Structure
auto-deep-researcher-24x7/
├── core/ # Autonomous experiment loop engine
│ ├── loop.py # THINK → EXECUTE → REFLECT cycle
│ ├── memory.py # Two-Tier constant-size memory
│ ├── monitor.py # Zero-LLM experiment monitoring
│ ├── agents.py # Leader-Worker agent dispatch
│ └── tools.py # Minimal per-agent tool registry
├── skills/ # Claude Code slash commands (python install.py)
│ ├── auto-experiment/ # 24/7 autonomous experiment loop
│ ├── experiment-status/ # Check experiment progress
│ ├── gpu-monitor/ # GPU status & availability
│ ├── daily-papers/ # Daily arXiv recommendations
│ ├── paper-analyze/ # Deep paper analysis + figure extraction
│ ├── conf-search/ # Conference paper search
│ └── progress-report/ # Progress report generation
├── agents/ # Agent prompt definitions
│ ├── leader.md # Central decision-maker
│ ├── idea_agent.md # Literature & hypothesis
│ ├── code_agent.md # Experiment execution
│ └── writing_agent.md # Reporting & writing
├── gpu/ # GPU utilities
│ ├── detect.py # Detection & monitoring
│ └── keeper.py # Cloud instance keep-alive
├── examples/ # Ready-to-run demos
├── docs/ # Docs + translations (CN/JP)
├── install.py # Claude Code skill installer
├── config.yaml # Default configuration
└── requirements.txt # Dependencies
Contributing
Areas where we'd love help:
- More cloud GPU platforms (AWS, GCP, Lambda Labs, RunPod)
- Experiment tracker integration (W&B, MLflow, TensorBoard)
- New research skills (visualization, result comparison)
- Metric extraction for more training frameworks
See CONTRIBUTING.md.
Citation
If you find this work useful, please cite our paper:
@article{zhang2026autodeepresearcher,
title={Deep Researcher Agent: Autonomous Deep Learning Experiment Framework},
author={Zhang, Xiangyue},
journal={arXiv preprint arXiv:2604.05854},
year={2026},
url={https://arxiv.org/abs/2604.05854}
}
Or cite the software release:
@software{auto_deep_researcher_24x7,
title={Deep Researcher Agent: Autonomous Deep Learning Experiment Framework},
author={Xiangyue Zhang},
year={2026},
url={https://github.com/Xiangyue-Zhang/auto-deep-researcher-24x7}
}
Star History
License
Apache 2.0 — see LICENSE.
<p align="center"> <strong><i>"Experiments run through the night. Results arrive at dawn."</i></strong> </p>