autoresearch
它能做什么
运行一个自动循环:你的智能体进行修改,依据某项指标进行检查,只有在有帮助时才保留修改。它还提供调试、修复错误和安全审计等模式。适合希望取得稳定、可衡量进展的人。
适用场景
- ✓当你希望智能体持续改进结果,直到某个数字变好的时候。
- ✓当你需要智能体查找漏洞,或逐一清除错误列表时。
- ✓当你希望智能体对代码进行安全审计的时候。
技能链接
https://github.com/uditgoenka/autoresearch/blob/master/.agents/skills/autoresearch/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请不断尝试修改,让我的测试套件运行得更快,并且只保留真正有帮助的修改。”
每周 5 个新技能,1 分钟读完。
工作原理
每一轮中,智能体进行一次修改并测量其效果。只有在有帮助时才保留该修改,结果会记录在一个文件夹中,循环会在设定的轮数后停止,除非你要求继续。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Autoresearch — Autonomous Goal-directed Iteration
Safety Invariants (all subcommands)
- Never push, publish, or deploy without explicit user approval.
- Bounded by default. Override with
Iterations: unlimited. - All results logged to
autoresearch/{subcommand}-{YYMMDD}-{HHMM}/directory. - Chain handoff via
handoff.json. Evals reads*-results.tsv.
Dispatch (bare $autoresearch)
Parse the invocation in this order:
| Condition | Mode |
|---|---|
Metric: or Verify: present |
Classic — existing metric loop, unchanged |
| Free-form natural-language goal, no metric/verify | Orchestrator — see Orchestrator section |
| Nothing | Setup wizard — interactive config builder |
--classic flag |
Force Classic regardless of goal text |
--auto flag |
Force Orchestrator regardless of goal text |
Print a banner on every invocation: [autoresearch] mode: classic | orchestrator | wizard.
Subcommands
| Command | Does | Default Iterations |
|---|---|---|
$autoresearch |
Iterate against a metric: modify → verify → keep/discard | 25 |
$autoresearch plan |
Convert a goal into validated Scope, Metric, Verify config | N/A |
$autoresearch debug |
Hunt bugs: hypothesize → test → falsify → repeat | 15 |
$autoresearch fix |
Crush errors one-by-one until zero remain | 20 |
$autoresearch security |
STRIDE + OWASP audit with red-team personas | 15 |
$autoresearch ship |
Ship through 8 phases: checklist → dry-run → deploy → verify | N/A |
$autoresearch scenario |
Generate edge cases across 12 dimensions | 20 |
$autoresearch predict |
5 expert personas debate before implementation | N/A |
$autoresearch learn |
Scout codebase → generate docs or wiki → validate → fix loop | 10 |
$autoresearch reason |
Adversarial debate with blind judges until convergence | 8 |
$autoresearch probe |
8 personas interrogate requirements until saturation | 15 |
$autoresearch improve |
Research ICP challenges, discover improvements, generate PRDs | 15 |
$autoresearch evals |
Analyze iteration results: trends, plateaus, regressions | N/A |
$autoresearch regression |
Regression stability gate: baseline vs candidate, verdict STABLE/UNSTABLE | N/A |
Subcommand routing
To run a subcommand yourself (an orchestrator hop or a --chain target), Read its protocol file and follow it:
<name>.md (relative to this skill's directory), or autoresearch.md for the classic loop.
The commands are user-typed only, so the model loads them from here instead of invoking them.
Universal Flags
| Flag | Applies To | Purpose |
|---|---|---|
Iterations: N |
All looping | Set iteration count |
Iterations: unlimited |
All looping | Opt-in unbounded |
--evals |
All looping | Mid-loop checkpoints + final summary |
--evals-interval N |
All looping | Override checkpoint frequency |
--chain <targets> |
All | Sequential handoff after completion |
--<subcommand> |
All | Shorthand for --chain <subcommand> |
--dry-run |
Orchestrator | Print derived config + planned pipeline; no execution |
--max-cycles N |
Orchestrator | Hard ceiling on orchestration cycles (default 50) |
--classic |
Bare $autoresearch |
Force Classic metric-loop mode |
--auto |
Bare $autoresearch |
Force Orchestrator mode |
--no-fork |
Metric loops | Disable fork-and-flush rounds |
Forks: K |
Metric loops | Branches per fork-and-flush round (default 4; 2 when Verify is slow or uses a shared resource) |
Guided: R |
Metric loops | Fraction of fork branches given an Advisor-assigned experiment (default 0.5; 0 = all random) |
Getting Unstuck: Fork-and-Flush
Metric loops run fork-and-flush rounds on a fixed schedule: at 33% and 66% of the budget, plus early when 5
iterations pass with no keep. A round forks K fresh-context branches from the best commit so far, runs each
for a small budget, and keeps the winner. A fresh context means the files and results log only, with none of
the leader's reasoning. Half the branches (by default) are random and pick their own ideas; the other half are
guided, each given one distinct experiment by a stateless Advisor that reads the results log. Protocol:
references/fork-and-flush.md (arXiv:2610.07447, arXiv:2610.07625).
Orchestrator
Activated when a plain-language goal is given without Metric:/Verify:. Classifies the goal into a Goal archetype — see references/orchestrator-routing.md for the archetype table and rout
常见问题
它会推送或部署我的修改吗?
不会。该技能说明,未经你明确批准,它绝不会推送、发布或部署。
它运行多少轮?
默认运行有上限:基础循环为 25 轮,除非你把迭代次数设为无限。
结果保存在哪里?
每次运行都会把日志写入一个文件夹,文件夹以模式和开始时间命名。
详情
作者的原始描述
Autonomous iteration loop: modify, verify, keep/discard against any metric
repo: uditgoenka/autoresearch
热度
- GitHub 星标
- 6.8k
- 排名
- #13731
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …