BA

balukosuri/andrej-karpathy-s-autoresearch-as-a-universal-skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

208 stars 品質 55 トレンド 0

Andrej KarpathyのAutoresearchパターンから派生したClaudeコードとカーサとカーサとカーサとカーサを自動で最適化するスキルを自己改善しました.

概要

Andrej KarpathyのAutoresearchパターンから派生したClaudeコードとカーサとカーサとカーサとカーサを自動で最適化するスキルを自己改善しました。 任意のリポジトリにドロップし、コードベースをスキャンし、評価メトリックを最適化し、定義し、指を持ち上げることなく、あなたのプロンプトを時間をかけてより良いものにする自律ループを実行することを提案します。 2026年初頭に、アンドレジ・カルパシー(テスラのAIの元頭であるOpenAIの創設メンバー)が小さなGitHubリポジトリをリリースしました。 アイデアは必然的に単純だった: AIエージェントは、実験を自動で実行し、結果を測定し、どのような作品を保存し、何をしないのかを捨て、繰り返します。 カルパシーのケースでは、「経験」は、小さな言語モデル(nanoGPT)を養成しました。 エージェントは、トレーニングコード(train.py)を変更し、5分間実行し、結果を測定します(val bpbという番号は、より低い方が優れています)、および決定:変更ヘルプをしましたか? もしそうなら、それを保ちなさい。 そうでなければ、何かを逆転させ、試みて下さい.

概要(AI 翻訳)

Andrej KarpathyのAutoresearchパターンから派生したClaudeコードとカーサとカーサとカーサとカーサを自動で最適化するスキルを自己改善しました。 任意のリポジトリにドロップし、コードベースをスキャンし、評価メトリックを最適化し、定義し、指を持ち上げることなく、あなたのプロンプトを時間をかけてより良いものにする自律ループを実行することを提案します。

お問い合わせ

Andrej KarpathyのAutoresearchの仕組み

2026年初頭に、アンドレジ・カルパシー(テスラのAIの元頭であるOpenAIの創設メンバー)が小型GitHubリポジトリ(autoresearch)をリリースしました。 アイデアは必然的に単純だった:

AIエージェントは、実験を自動で実行し、結果を測定し、どのような作品を保存し、何をしないのかを捨て、繰り返します。

カルパシーのケースでは、「経験」は、小さな言語モデル(nanoGPT)を養成しました。 エージェントは、トレーニングコード([train.py])を変更し、5分間実行し、結果を測定します([val_bpbと呼ばれる番号) - より低い方が優れている)、および決定:変更ヘルプをしましたか? もしそうなら、それを保ちなさい。 そうでなければ、何かを逆転させ、試みて下さい。

repo は、問題のある 3 つのファイルだけを持っていた:

-[[T2] — AIエージェントの指示(測定方法、ログ方法)

  • **'train.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Andrej Karpathy’s Autoresearch — As a Universal AI Skill

A self-improving prompt optimization skill for Cursor and Claude Code, derived from Andrej Karpathy’s autoresearch pattern. Drop it into any repository, and it scans your codebase, suggests what to optimize, defines evaluation metrics, and runs an autonomous loop that makes your prompts better over time — without you lifting a finger.


How Andrej Karpathy’s Autoresearch Works

In early 2026, Andrej Karpathy (former founding member of OpenAI, former head of AI at Tesla) released a small GitHub repo called autoresearch. The idea was deceptively simple:

Let an AI agent autonomously run experiments, measure results, keep what works, throw away what doesn’t, and repeat — forever.

In Karpathy’s case, the “experiment” was training a small language model (nanoGPT). The agent would modify the training code (train.py), run it for 5 minutes, measure the result (a number called val_bpb — lower is better), and decide: did the change help? If yes, keep it. If no, revert and try something else.

The repo had only three files that mattered:

  • program.md — instructions for the AI agent (what to do, how to measure, how to log)
  • train.py — the thing being optimized (the agent modifies this)
  • prepare.py — the measurement tool (read-only, the agent cannot touch it)

The loop looked like this:

1. Read the current code
2. Make a change (an "experiment")
3. Run the experiment
4. Measure the result (a hard number, not vibes)
5. If better → keep the change
   If worse  → throw it away, revert
6. Go to step 1. Never stop.

That’s it. Evolution applied to code. Generate variations, test them against reality, keep the fittest, kill the rest.

Why It Works

Three ingredients make autoresearch work:

  1. An objective metric — a number you can measure. Not “feels faster” or “looks better.” An actual number. In Karpathy’s case: val_bpb (bits per byte on a validation set).

  2. An automated measurement tool — something that produces that number without a human in the loop. In Karpathy’s case: the evaluate_bpb() function in prepare.py.

  3. Something to change — the thing being optimized. In Karpathy’s case: train.py. In our case: a prompt.

If you have all three, you can run the loop forever and the thing will get better over time. The agent does the work while you sleep.


From Autoresearch to a Universal Skill

A YouTuber took Karpathy’s pattern and asked: what if, instead of optimizing ML training code, we optimize prompts?

He built a Claude Code skill that optimized a diagram-generation prompt. The skill would:

  1. Generate 10 diagrams using the current prompt (via Gemini image gen)
  2. Evaluate each diagram against 4 yes/no criteria using Claude’s vision (Is text legible? Are colors pastel? Is layout linear? Are there numbers?)
  3. Score the batch (10 diagrams x 4 criteria = max 40 points)
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add balukosuri/andrej-karpathy-s-autoresearch-as-a-universal-skill
MCP 初心者?mcpskill.org のガイドから始めましょう →