zhihaoairobotic/clawphd/autoresearch
Claude Code and agent skill by zhihaoairobotic/clawphd
- community
Checking that the SKILL.md file is still in the repository.
Autonomous ML research loop — modify train.py, run 5-min GPU experiments, track val_bpb, iterate overnight. Invoke when the user wants to run self-directed architecture search on the autoresearch repo.
Install
npx vskill@latest install zhihaoairobotic/clawphd/autoresearchSKILL.md
autoresearch
Autonomous ML experiment loop. You modify train.py, run timed GPU training, log val_bpb, and iterate forever — keeping improvements, reverting regressions.
The autoresearch/ directory lives at <workspace>/../autoresearch/ relative to the ClawPhD workspace, or wherever the user specifies. Always confirm the path before starting.
Setup
Work with the user to:
- Confirm the repo path: default is
/home/ubuntu/research/ClawPhD/autoresearch. Verify it exists withexec. - Agree on a run tag: propose a tag based on today's date (e.g.
mar12). The branchautoresearch/<tag>must not already exist. - Create the branch:
git checkout -b autoresearch/<tag>from current master. - Read the in-scope files: Read
README.md,prepare.py(fixed — do not modify), andtrain.py(agent-editable). - Verify data: Check
~/.cache/autoresearch/for data shards and tokenizer. If missing, tell the user to runuv run prepare.pyfirst. - Initialize results.tsv: Create it with just the header row:
`` commit val_bpb memory_gb status description ``
- Confirm and go: Confirm setup, then start the loop immediately.
Running experiments (exec + background pattern)
Since each training run takes ~5 minutes, use background execution to avoid blocking:
The summary block looks like:
If grep "^val_bpb:" run.log returns empty after 10+ minutes, the run crashed — check tail -50 run.log for the stack trace.
Timeout rule: If training_seconds exceeds 360 after the summary appears, treat it as anomalous but still log it. If the process is still running after 10 minutes wall-clock, kill it: kill <PID>, log as crash, revert.
Experiment rules
You CAN:
- Modify
train.pyfreely: architecture, optimizer, hyperparameters, batch size, model size, anything.
You CANNOT:
- Modify
prepare.py(fixed evaluation harness, data loading, constants). - Install new packages or add dependencies.
- Change the evaluation function
evaluate_bpb.
Goal: lowest val_bpb. Time budget is fixed at 5 minutes, so parameter count and compute efficiency both matter.
Simplicity criterion: All else equal, simpler code wins. A 0.001 improvement with 20 hacky lines is not worth it. Equal performance with less code is always a win.
Logging to results.tsv
Tab-separated (NOT comma-separated). Five columns:
commit: 7-char git hashval_bpb: e.g.0.997900; use0.000000for crashesmemory_gb:peak_vram_mb / 1024, rounded to 1 decimal; use0.0for crashesstatus:keep,discard, orcrashdescription: brief plain-text description of the change
Do not commit results.tsv (leave it untracked).
The experiment loop
LOOP FOREVER:
- Check git state: current branch and last commit.
- Edit
train.pywith a new idea. git commit -m "autoresearch: <brief description>"- Launch training in background (see above).
- Poll
run.loguntil the summary block appears. - Extract
val_bpbandpeak_vram_mb. - Log to
results.tsv. - If
val_bpbimproved (lower): keep the commit, advance the branch. - If equal or worse:
git reset --hard HEAD~1(revert to before this experiment).
NEVER STOP: Once the loop begins, do not pause to ask the user whether to continue. The user may be asleep. Run indefinitely until manually interrupted.
When stuck: Read papers referenced in train.py comments, re-read prepare.py for new angles, try combining previous near-misses, attempt more radical architectural changes (different depth/width ratios, different attention patterns, different optimizers).
Reporting results via ClawPhD channels
At the end of each experiment (or every N experiments), use the message tool to send a summary to the user's configured channel:
This way the user wakes up to a digest of overnight progress in Telegram/Slack/etc.
Autonomous overnight use with HeartbeatService
To run the experiment loop fully autonomously (without a human kicking it off), add a task to HEARTBEAT.md in the workspace:
The HeartbeatService will trigger this periodically and the agent will keep the loop alive.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclawphd/skills/autoresearch/SKILL.md
Popularity
- Repository stars
- 157
- Repository forks
- 11
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zhihaoairobotic/clawphd/autoresearch)