自动研究理念 一个基于文献的 AI/计算机科学研究理念引擎。提供一行研究方向;获得排名的研究方案…
A literature-grounded idea engine for AI/CS research. Give it a one-line research direction; get back a ranked portfolio of 50–100 concrete paper ideas — each one recombined from genes distilled out of real, freshly-retrieved papers, scored for novelty/feasibility/impact, then adversarially reviewed.
"diffusion models for combinatorial optimization"
│
brainstorm ─▶ retrieve ─▶ digest ─▶ hybridize ─▶ prioritize ─▶ critique
(opus) (sonnet) (sonnet) (opus ×N) (opus) (opus ×N)
│ │ │ │ │ │
10 variants ~100 papers "genes" 50–100 ideas scored & adversarial review
+ queries dedup+rank (parallel + key ranked + per-step credit
analysis) insights → ideas.json → credit_summary.jsonMost research novelty is recombination — new work tends to pair an unusual combination of otherwise-conventional prior ideas (cf. literature-based discovery, Swanson's undiscovered-public-knowledge "ABC" model; atypical combinations, Uzzi et al., Science 2013). The bottleneck isn't generating a combination — it's systematically enumerating and triaging the combinatorial space of plausible ones across a literature you can't fully hold in your head.
Auto Research Idea operationalizes that:
The output isn't one "perfect" idea — it's a ranked, red-teamed menu of grounded directions you'd never have enumerated by hand, with the receipts to vet each.
A ranked ideas.json (and a live web view of it). Each idea carries its lineage
and its critique:
…Every run is reproducible and inspectable: all intermediate artifacts
(variants, retrieved papers, genes, raw candidates, ranking, reviews, credit
summary) are written as JSON under runs// and rendered live by the dashboard
— where you can also add your own notes/scores without touching the generated files.
1. Install (Python 3.8 + a handful of deps):
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env # optional — see "Keys" below; works without any key2. Start the dashboard (separate terminal):
.venv/bin/python -m auto_research_idea.dashboard # → http://localhost:80003. Run the pipeline — just talk to Claude Code in this directory:
use the research-ideas skill on: diffusion models for combinatorial optimization
Claude Code brainstorms variants, spawns the retrieve/digest subagents, fans out
parallel hybridizers, prioritizes, runs parallel critics, and updates the dashboard
live. Final ranked ideas land in runs//ideas.json and on the page.
(Alternatively: type your idea into the dashboard's box to queue it, then tell Claude Code "run the queued research-ideas request".)
The default pipeline runs entirely on your Claude Code subscription — the
subagents digest in-context, so no ANTHROPIC_API_KEY is required. Keys only
unlock extras / raise rate limits, and all go in .env (never .env.example):
| Variable | Needed for | Without it |
|---|---|---|
ANTHROPIC_API_KEY |
the standalone digest.py CLI (API credits) |
pipeline still works; CLI digest won't |
SEMANTIC_SCHOLAR_API_KEY |
higher Semantic Scholar rate limits | S2 source fails soft (other sources still work) |
GITHUB_TOKEN |
the github awesome-list source |
60 req/hr instead of 5000 |
CONTACT_EMAIL |
politeness with arXiv / OpenAlex | slightly stricter rate limits |
| Stage | What happens | Artifact |
|---|---|---|
| Brainstorm | seed idea → 10 distinct framings + targeted search queries | brainstorm.json |
| Retrieve | queries fan out across 8 sources → merge, dedup by title, rank (~100 papers) | papers.json |
| Digest | each paper → a structured gene: mechanism, assumption, failure mode | genes_.json |
| Hybridize | N Opus agents in parallel cross-breed genes → candidates with key insight + provenance | ideas_raw_.json |
| Prioritize | score (novelty/feasibility/impact), dedup near-duplicates, rank | ideas.json |
| Critique | N Opus critics adversarially review each idea + assign per-step credit/blame | reviews_.json |
| Credit | aggregate the reviews → which pipeline step is the weak link | credit_summary.json |
Because each stage is a file, you can stop, inspect, edit, and resume — e.g.
hand-curate genes_.json before hybridizing, or re-run prioritization with
different weights. The dashboard also writes a non-destructive annotations.json
for your own notes/score/rank overrides — ideas.json is never overwritten.
The interesting bit isn't just the output — it's the orchestration pattern:
Skill/subagent = brain; Python = hands. Open-ended creative + judgment work is delegated to LLM subagents; deterministic, parallel, mechanical work (retrieval, dedup, ranking, credit aggregation) is plain Python. Each side does what it's good at.
Orchestrator — Claude Code running the research-ideas skill
(.claude/skills/research-ideas/). Delegates each step to a subagent and tracks
progress in runs//status.json.
One subagent per step (.claude/agents/*.md) — independently promptable and
swappable, with task-based model routing: cheap mechanical steps run on
Sonnet, open-ended creative/judgment steps on Opus.
| Step | Agent (model) | Writes | Role |
|---|---|---|---|
| 1 | idea-brainstormer (opus) |
brainstorm.json |
10 idea variants + search queries |
| 2 | paper-retriever (sonnet) |
papers.json |
drives search tool → ~100 deduped, ranked papers |
| 3 | paper-digester (sonnet) |
genes_.json |
distills each paper into a reusable gene |
| 4 | idea-hybridizer (opus, ×N) |
ideas_raw_.json |
recombines genes → 50–100 candidates |
| 5 | idea-prioritizer (opus) |
ideas.json |
scores, dedups, ranks |
| 6 | idea-critic (opus, ×N) |
reviews_.json |
adversarial review + per-step credit assignment |
Then credit.py (pure Python, no key) pools the reviews into credit_summary.json
— a feedback signal for which step to improve next.
Multi-source retrieval (auto_research_idea/sources/) — pluggable
PaperSource backends fanned out in parallel with backoff; a registry merges
results by normalized title, enriching each paper from every source that found
it. Eight sources ship today:
| Source | Covers |
|---|---|
arxiv |
arXiv preprints |
openalex |
broad cross-venue index + citation counts |
semantic_scholar |
abstracts + citations (key optional) |
github |
awesome- reading lists |
venue_pages |
official accepted-paper listings (CVF, NeurIPS, …) |
openreview |
ICLR / NeurIPS / etc. on OpenReview |
acl_anthology |
ACL / EMNLP / NAACL (+ Findings) |
ecva |
ECCV open-access proceedings |
Sources fail soft — a dead backend returns [], never crashes the run.
Dashboard (dashboard.py, stdlib only) — renders variants, papers, genes,
ranked ideas, reviews, and the credit summary live. It never runs the pipeline,
so it can't corrupt a run; the only thing it writes is your annotations.json.
The whole thing coordinates through one contract: JSON files in runs//.
Orchestrator, subagents, and dashboard share nothing else — which is what makes
runs reproducible and every stage independently hackable.
config.yaml tunes the tools: which of the 8 paper sources are enabled (+ the
per-venue venue_pages / openreview / acl_anthology / ecva registries),
retrieval limits (retrieval.max_papers ≈ 100, enrich_abstracts, parse_pdf),
and the digest model/effort. Orchestration knobs (10 variants, number of parallel
hybridizers → 50–100 ideas, number of critics) live in the skill and agent files.
The retrieval and credit paths need no key — exercise them standalone:
.venv/bin/python -m auto_research_idea.search --queries "graph neural network CO" --out papers.json
.venv/bin/python -m auto_research_idea.digest --papers papers.json --out genes.json # needs ANTHROPIC_API_KEY
.venv/bin/python -m auto_research_idea.credit --run-dir runs/ # aggregate reviews, no key…Extend it: add a paper source by subclassing PaperSource in sources/
(must never raise — return [] on failure) and listing it under sources: in
config.yaml. Re-prompt a step by editing its .claude/agents/*.md. Change the
run-dir contract in runstate.py (the dashboard reads the same shapes).
max_papers / sources for unfamiliar areas.anthropic 0.72.0: the code deliberately avoids newer SDK
features (messages.parse, int | None annotations). See CLAUDE.md for the
full constraints before you refactor.CLAUDE.md → Verifying changes.Novelty is recombination at scale. This just does the bookkeeping — and red-teams the result.
暂无开放 Issues,或尚未同步最近议题。