XScientist
把一个想法变成类 Git 的研究历史:可审查、可复现、可回滚,让自主科研的每一步证据都有据可查。
- Star 数
- ★ 125
- 最近更新
- 1 天前
- License
- Apache-2.0
- 主语言
- Python
- FA 评分
- 61/100 · 存在缺口
30 秒速览
- 运行形态
- 可在哪里用
- 通用 · 跨平台OpenAI API · Claude API
- 费用
- 软件免费,模型调用费用自付
- 上手难度
- 中 · 需要几步配置
- 开始前需要
- 典型场景
- 没有模型或 API key 的研究者想先把一个想法记录为可证伪、有版本历史的研究起点(explore,零成本)
- 不适合
- 需要立即产出已验证科学结论的团队:本工具是 alpha 阶段软件,结论需通过证据与评审门槛
- 不愿自建 Docker 隔离执行环境的用户:生成的实验代码不允许在宿主机直接运行
- 源码审查
- 61/100 · 存在缺口
这个 Agent 能做什么,适合哪些场景?
XScientist 是一个本地优先的自主科研系统与开放科学协议,以 CLI(xscientist 命令)和 Python SDK 提供。它把问题框架、假设、决策、实验尝试、证据、异议与门槛外化为带内容哈希的typed对象,并通过类似 Git 的 Research VCS 进行 commit、diff、branch、revert 等操作。它支持无模型、无 API key 的纯本地起步(explore 命令),也支持 Ollama 本地模型及 OpenAI、Anthropic、智谱、Bedrock、Vertex 等 OpenAI 兼容服务。生成的实验代码必须通过配置好的 Docker 隔离执行器运行,自主运行可设置 --max-cost-usd 成本上限。完成的运行只有在 trace、replay、verify 三级审计门槛真正通过后才被视为已验证的科学主张,否则一律标注为探索性或草稿状态。当前发布版本为 0.1.4(PyPI),main 分支还包含未发布的协议工作,需源码安装并固定 commit 以保证可复现性。
用户通过 xscientist explore 用自然语言录入想法、预期观察、反证条件与首个测试,系统生成可证伪假设并将其版本化为 idea saved / falsifiable / planned 状态。xscientist start 启动自主研究:提出竞争假设与零假设、按预期信息价值排序实验、在 Docker 隔离执行器中运行有界实验并保留失败与否定结果、扫描异常与矛盾、运行独立评审角色并在硬门槛处停止。xscientist record、research decide、research experiment 把结果写成带内容哈希的不可变证据对象并提交检查点;history list/diff/rollback 与 audit --level trace/replay/verify 提供审查与复现。provider list/test/explain 管理模型与凭证来源;research bundle/export/fsck、benchmark autoresearch、research opportunity(FAR 启发的机会漏斗)、research belief(信念上下文投影)等命令提供深度协议接口。
- 没有模型或 API key 的研究者想先把一个想法记录为可证伪、有版本历史的研究起点(explore,零成本)
- 想用本地 Ollama 模型(如 gemma3)零托管成本跑端到端自主研究用户
- 有 hosted API key、想以 --autopilot publication --max-cost-usd 10 走面向论文工作流的研究者
- 需要展示完整但存在争议的证据历史的教师或评审者($0.00 的 demo 命令)
- 希望把文献方向筛选到候选池、尝试、独立评审与资源分配全程留痕的科研团队(机会漏斗命令)
- 需要在 CI/脚本中显式指定问题、provider、模型与预算的非交互式自动化场景
如何安装或部署这个 Agent?
发布版 0.1.4 需要 Python 3.10+ 与 Git,安装 PyPI 包:
python -m pip install "xscientist==0.1.4"如需 main 分支未发布的协议功能,需源码安装,并为可复现研究固定具体 commit:
python -m pip install "xscientist @ git+https://github.com/smileformylove/XScientist.git@main"使用模型功能时安装对应 extra,例如本地 Ollama:
python -m pip install \
"xscientist[research,openai-compatible] @ git+https://github.com/smileformylove/XScientist.git@main"或 hosted 服务(可选 extra:openai、anthropic、zhipu、bedrock、vertex、openai-compatible):
python -m pip install \
"xscientist[research,openai] @ git+https://github.com/smileformylove/XScientist.git@main"
export OPENAI_API_KEY="..."模型驱动的实验还需要 Docker。
如何使用这个 Agent?
零成本起步(无模型、无 key、无网络调用):
xscientist explore ./my-study
xscientist status ./my-study或脚本化录入想法:
xscientist explore ./my-study \
--idea "Does daily walking improve sleep quality?" \
--expect "Daily walking improves a preregistered sleep score." \
--disprove "The score is unchanged or worse." \
--test "Compare walking and usual-activity periods." \
--non-interactive查看 $0.00 的完整争议证据历史演示:
xscientist demo ./first-study --autopilot --open
xscientist status ./first-study使用本地 Ollama 模型:
ollama pull gemma3
ollama ls
xscientist provider list
xscientist start ./my-study --prepare-only
xscientist start ./my-study使用 hosted 模型并设置成本上限:
xscientist start ./hosted-study --prepare-only
xscientist start ./hosted-study --max-cost-usd 10模型实验需准备隔离执行器并检查就绪状态:
xscientist executor prepare --workspace ./ood-study
xscientist provider check --workspace ./ood-study --max-cost-usd 10
xscientist doctor --workspace ./ood-study --deep审查与复现:
xscientist history list ./first-study
xscientist history diff ./first-study
xscientist audit ./first-study --level trace
xscientist audit ./first-study --level replay
xscientist audit ./first-study --level verify后台长任务:
xscientist runs list --workspace ./ood-study
xscientist runs watch RUN_ID --workspace ./ood-study若 GLM-5.3 作为执行模型,必须另配 --judgment-model(如 openai/gpt-4.1)承担科学判断角色,否则 start 会失败并给出恢复命令。
这个 Agent 有哪些优点和局限?
- Research VCS 把科学含义(假设、证据、异议)作为带哈希的typed对象版本化,支持 diff、branch、revert,而非仅版本化对话记录
- trace → replay → verify 三级审计单向阶梯区分可追溯、可复现与已独立验证,失败与否定结果被显式保留而非隐藏
- 模型无关:支持 Ollama 本地模型与 OpenAI、Anthropic、智谱、Bedrock、Vertex 等 OpenAI 兼容端点,凭证留在受保护的 .env 或进程环境
- 生成的代码只在配置的 Docker 隔离执行器中运行,并支持 --max-cost-usd 成本上限与未知定价时 fail-closed
- 标注为 alpha 研究软件,作者明确声明不是 oracle,自主运行可能产生付费模型调用
- PyPI 稳定版(0.1.4)与 main 分支未发布协议功能存在版本边界,可复现研究需手动固定源码 commit
- 模型实验强依赖 Docker 与版本匹配的执行器镜像;原子图发布目前仅支持 POSIX fcntl,不支持平台直接失败且无回退
- 面向论文的 autopilot 明确不保证手稿完成、科学验证、投稿或录用;完全自主跑通需要理解 profile(balanced/discovery/publication)与多项门槛概念
这个 Agent 与同类方案有什么区别?
README 的系统对比矩阵点名了 ScientistOne、AI Scientist v2、DeepScientist、AI-Researcher 等完整研究 agent,以及 FAR(Find–Attempt–Recommend)、JevGPT、AutoResearchEval 等参考系统;XScientist 的定位差异在于强调 Research Git 式的可审查证据历史与 trace/replay/verify 审计门槛,而非复制这些系统的基准分数。仓库提供 xscientist benchmark systems 命令生成源码审查后的本地对比矩阵,但硬编码 official_comparable: false 与 score_claim_allowed: false。
与相关度最高的同类 agent 并排比较关键指标。
| Agent | 源码审查 | 形态 / 费用 | Star | 最近更新 | 主语言 | 完整支持的平台 |
|---|---|---|---|---|---|---|
| XScientist 当前 | 61 · 存在缺口 | 命令行工具免费 + 模型费 | ★ 125 | 1 天前 | Python | OpenAI API · Claude API |
| Station 科研环境 | 60 · 存在缺口 | 命令行工具免费 + 模型费 | ★ 198 | 4 天前 | Python | — |
| 自主智能体研究论文库 | 28 · 缺口较多 | 代码库 / SDK免费 | ★ 1.4k | 3 个月前 | — | — |
| Wisp Science | 71 · 存在缺口 | 桌面应用免费 + 模型费 | ★ 1k | 今天 | Rust | Codex · Claude Code · OpenAI API · Claude API |
FollowAgents 如何评估这个 Agent?
查看各维度的扣分理由
README详细描述了Docker隔离执行器、密钥仅存于进程环境或受保护.env、provider explain只读命令、内容哈希与回滚边界、成本上限与fail-closed设计,但除少量测试外未提供实现代码,绝大多数安全声明均属断言;least_privilege、user_confirmation、rollback因此只得1分。依赖安全方面CI动作按SHA固定并有constraints文件,但无lockfile或依赖审计;source_attribution扣分明显:LICENSE文件版权栏为'Copyright 2020 Rémi Louf'(疑为复制自其他项目),pyproject作者为'AI Scientist Contributors',MIT部分与THIRD_PARTY_NOTICES仅被引用未见内容。
版本边界(0.1.4已发布与main未发布协议)声明一致,dev构建号0.1.5.dev0防止执行器镜像误用;extras划分明确并配合constraints;失败行为有结构化错误、非零退出码与可复制修复命令的描述。但代码实现未见,只能给2分。
面向无API key新手、本地Ollama用户、托管模型用户、CI/脚本场景的路径划分非常完整,得3分;能力边界(alpha软件、不做论文/录用承诺、POSIX fcntl限制、Python 3.10+、Docker前置)与触发精度(JSON action契约、required标记)均有交代,但部分依赖未发布main构建,扣至2分。
文档结构、安装说明、版本边界标注、中英文与外部链接齐备,information_architecture与install_notes得3分;但license得分仅1:声称为'Apache-2.0 AND MIT',实际仅见含外来版权人的Apache文本,MIT许可文本缺失;维护责任仅由未验证的匿名发布者承担,无明确维护者与更新承诺;无FAQ,CHANGELOG仅以链接存在。
输出以结构化JSON、next_steps契约、status/history呈现,可自动化;成本上限、$0示例、--prepare-only readiness检查降低了尝试成本,各得2分;实际效果需执行验证,静态审查无法加分。
typed对象、内容哈希、checkpoint DAG、trajectory哈希等可追溯机制描述充分(2分);但关键声明(隔离执行、审查门、发布验证)在本仓库可见文件中缺乏代码或独立证据佐证,arXiv徽章无法核实,corroboration仅1分;已发布/未发布、demo以冲突收场等表述区分明确,fact_inference_separation得2分。
- LICENSE文件版权栏为'Copyright 2020 Rémi Louf',与本项目(AI Scientist Contributors)不符,许可文件疑似整体复制自其他项目,使用前需核实许可链与MIT部分的缺失文本。
- 绝大多数安全声明(Docker隔离、回滚、密钥保护、审查门)仅见于README,本次静态审查未见对应实现代码,不应视为已验证。
- main分支上的协议功能未发布,生产使用应固定到PyPI 0.1.4或具体commit;README自己也建议pin commit。
- 自动运行可能产生付费模型调用,务必设置--max-cost-usd并理解autonomous模式下生成代码的执行边界。
- 发布者身份未经FollowAgents企业注册表验证,维护可持续性与更新路径未知。
最近版本
来自该项目 GitHub Releases 的最新发布记录,说明为上游原文摘录,未经本站改写或测试。
-
发布说明摘录
[0.1.2] - 2026-08-17 Added - A one-command, provider-free xscientist demo that creates a deterministic Research VCS history with a failed attempt, supporting and refuting evidence, an independent rejection, a contested claim, and an offline DAG for $0. - A compact, read-only xscientist status view for scientific progress, automated run state, budget use, results, the evidence DAG, and the next valid action. - xscientist provider check now reports credential presence, client availability, live-verification scope, and optional cost-enforcement …在 GitHub 查看 ↗ -
发布说明摘录
[0.1.1] - 2026-08-08 Added - Unified xscientist setup, doctor, and capability commands with task-aware readiness checks and exact opt-in installation guidance. - Deterministic xscientist research decide policy for checkpoint, fork, merge, hold, and release transitions, including stable decision identifiers and explicit trace requirements. - Payload-free long-term research technology trees spanning every local research line, with topology, frontier, cycle, and missing-reference views. - Stable scientific merge-conflict identifiers, actionable resolution …在 GitHub 查看 ↗ -
发布说明摘录
0.1.0 - 2026-08-06 Added - Installable xscientist Python package, public CLI, SDK, and optional HTTP service. - Long-running research workflows, structured review/repair artifacts, and ARA protocol tooling. - Cross-version CI coverage for Python 3.10, 3.11, and 3.12. - Branch-aware whole-repository coverage regression checks. - Automated engineering, distribution inventory, isolated wheel, and release metadata checks. - GitHub issue/PR templates, dependency update policy, citation metadata, and an engineering maintenance guide. Changed …在 GitHub 查看 ↗