autoresearch
Autonomous goal-directed iteration loop that continuously improves prompts, templates, configs, or code. Two evaluation modes — deterministic (eval.py with…
от BenAIOS★ 90 звёзд на GitHub
Установить autoresearch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AutoResearch — Autonomous Optimization Loop
USE WHEN the user runs /autoresearch, says "autoresearch", "optimize this prompt", "improve this overnight", "run an optimization loop", "iterate on this", "auto-improve", or wants to autonomously refine a file against measurable criteria.
Architecture: Separation of Roles
This skill supports two mutually exclusive evaluation modes. Both maintain four-way separation.
Deterministic Mode (default) — Four-Way Separation
| Role | Who | Knows Eval Code? | Knows Prompt History? |
|---|---|---|---|
| Main Agent | You (optimizer) | NO — reads metric number only | Yes — reads logs, plans changes |
| Eval Agent | autoresearch-eval-agent sub-agent |
Yes — writes eval.py | No |
| Test Runner | autoresearch-test-runner sub-agent |
NO — fresh context | NO |
| Judge Script | eval.py (deterministic Python) |
IS the eval | No |
Metric: pass_rate. Best for tasks with clear, mechanical quality checks (word count, format, keywords, structure).
AI Judge Mode (opt-in) — Four-Way Separation
| Role | Who | Knows Rubric? | Knows Prompt History? |
|---|---|---|---|
| Main Agent | You (optimizer) | Criteria names only | Yes — reads logs, plans changes |
| Eval Agent | autoresearch-eval-agent sub-agent |
Yes — writes rubric.md | No |
| Test Runner | autoresearch-test-runner sub-agent |
NO — fresh context | NO |
| Judge Agent | autoresearch-judge sub-agent |
Follows rubric | NO — fresh context |
Metric: quality_score. Best for creative/subjective tasks where mechanical checks miss the point (tone, authenticity, narrative, emotional resonance).
The modes are mutually exclusive. Deterministic mode uses eval.py only. AI judge mode uses the judge agent only. There is no combined score.
Key isolation (both modes):
- The optimizer never writes eval artifacts, never generates outputs
- The eval agent writes the eval system once (eval.py OR rubric.md), then disappears
- The test runner never sees the eval or rubric — fresh context every time
- The judge (script or agent) evaluates without knowing iteration history or optimizer intent
User Interaction: Always Use AskUserQuestion
Whenever you need user input or confirmation, use the AskUserQuestion tool. This shows an interactive popup in Cowork.
CRITICAL: Keep popup text SHORT. The popup is small — long text becomes unreadable. Follow this pattern:
- Write details in chat FIRST (assertions list, eval code, explanations)
- Then use AskUserQuestion with ONLY a short question — one sentence max
Good:
[In chat]: Here are 7 proposed assertions:
1. Covers all 4 search clusters
2. Each entry has title, channel, views
3. Contains opportunity mapping
...
[AskUserQuestion]: "Do these assertions look right?"
Options: "These look good" / "Adjust some" / [free text]
Bad:
[AskUserQuestion]: "Here are 7 proposed assertions for what a 'good' output looks like: 1. Covers all 4 search clusters (Core, Tools, Niche, Competitors)... [giant paragraph]"
Never put lists, explanations, or details inside AskUserQuestion. The popup is for the QUESTION only.
The Three Rules
Every criterion — whether proposed by you or provided by the user — MUST pass these three rules before entering the loop. This is the most important step in the process. Bad criteria produce bad evals, and bad evals waste every iteration.
Rule 1: State the exact condition, not the goal. Don't describe what you want. Describe what you can measure.
| Bad | Good |
|---|---|
| "Make sure the hook is short" | "The first line must be under 136 characters including spaces" |
| "Should be professional" | "Contains no exclamation marks and no ALL CAPS words (3+ letters)" |
| "Include relevant data" | "Contains at least one specific number or statistic with a source" |
Rule 2: One criterion, one variable. Each criterion tests exactly one thing. If you're tempted to use "and" to connect two checks, split them into two separate criteria.
| Bad | Good |
|---|---|
| "Under 150 words and ends with a question" | Criterion 1: "Under 150 words" / Criterion 2: "Last sentence ends with a question mark" |
| "Professional tone with no jargon" | Criterion 1: "No words from the banned jargon list" / Criterion 2: "No sentences over 25 words" |
Rule 3: Define the test (optional). Describe how to verify the criterion — what to count, what regex to match, what structure to look for. This helps the eval agent write better checks and helps the judge agent score more consistently.
| Criterion | Test definition |
|---|---|
| "First line under 136 characters" | len(lines[0]) <= 136 |
| "Contains at least one statistic" | re.search(r'\d+[%x]?\s', text) returns a match |
| "Ends with a question" | `text.rstrip().endswith("?") |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/dashboard-template.html
- references/example-eval.py
- references/example-prompt.md
- references/example-test-cases.json
FAQ
Что делает скилл autoresearch?
Autonomous goal-directed iteration loop that continuously improves prompts, templates, configs, or code. Two evaluation modes — deterministic (eval.py with proxy heuristics) or AI judge (LLM rubric scoring). Uses four-way separation in both modes. Inspired by Karpathy's autoresearch.
Как установить скилл autoresearch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл autoresearch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…