GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - OpenDFM/Xcientist: The official repo for the paper "Making AI Scientists Auditable from Evidence to Claim"

BranchesTags
Open more actions menu

Latest commit

 

History

288 Commits
288 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
data/raw
data/raw
 
 
database
database
 
 
graph
graph
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
workspace/training-free-memory-example
workspace/training-free-memory-example
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_CN.md
README_CN.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
run_blog.sh
run_blog.sh
 
 
run_experiment.sh
run_experiment.sh
 
 
run_idea.sh
run_idea.sh
 
 
run_pipeline.sh
run_pipeline.sh
 
 
run_survey.sh
run_survey.sh
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Xcientist logo

Making AI Scientists Auditable from Evidence to Claim

Project website 2606.18874 Python 3.12

English | 简体中文

Xcientist system overview

Table of Contents

  • Repository Map
  • How The Pieces Fit Together
  • Prerequisites
  • Installation
  • Environment Variables
  • Optional Local Assets
  • Quick Start
    • Fastest Path
    • Run Survey Agent
    • Run Idea Agent
    • Run Experiment Agent
    • Run Blog Agent
    • Run The Prototype Pipeline
  • Configuration Guide
  • Citation

Xcientist is a multi-agent research workflow for turning a topic into survey artifacts, structured ideas, executable experiments, and technical blog articles. The repository currently centers on four agent stacks:

  • Survey Agent: collects papers, builds topic clusters, and writes survey outputs.
  • Idea Agent (LigAgent): turns a topic or seed idea into a research proposal with survey-grounded retrieval, graph-backed references, and Memory-Guided MCTS.
  • Experiment Agent: uses vendored OpenHarness workers, reviewers, and prefinish hooks to prepare resources, build a runnable project, execute controlled science conditions, and materialize reviewed results.
  • Blog Agent: reads an experiment workspace and writes a technical blog article with generated figures and quality checks.

The repo also contains a prototype loop runner for Survey -> Idea -> Experiment -> Blog, shared configuration, and a reusable memory subsystem.

🗂️ Repository Map

Xcientist/
├── README.md / README_CN.md       # documentation
├── pyproject.toml / uv.lock        # Python package metadata and locked uv environment
├── requirements.txt                # compatibility dependency list
├── run_survey.sh                   # wrapper for `xcientist survey`
├── run_idea.sh                     # wrapper for `xcientist idea`
├── run_experiment.sh               # wrapper for `xcientist experiment`
├── run_blog.sh                     # wrapper for `xcientist blog`
├── run_pipeline.sh                 # wrapper for `xcientist pipeline`
├── scripts/                        # setup and environment helper scripts
│   ├── install_base.sh
│   ├── install_heavy.sh
│   ├── install_mcp_wrappers.sh
│   └── sync_claude_anthropic_env.py
├── src/
│   ├── __main__.py                 # `python -m src` entrypoint
│   ├── cli.py                      # unified `xcientist` CLI
│   ├── config/
│   │   ├── __init__.py             # unified config loader
│   │   └── default.yaml            # main project config
│   ├── pipeline/                   # Survey -> Idea -> Experiment -> Blog loop
│   ├── harness/                    # vendored OpenHarness runtime used by Experiment Agent
│   ├── agents/
│   │   ├── survey_agent/           # paper retrieval, clustering, survey generation
│   │   ├── idea_agent/             # LigAgent proposal generation
│   │   ├── experiment_agent/       # OpenHarness experiment control plane
│   │   └── blog_agent/             # technical blog generation
│   └── memory/                     # shared vector/symbolic memory APIs
├── graph/                          # graph retrieval service and indexing scripts
├── database/                       # local caches used by retrieval workflows
├── assets/                         # project images and static assets
└── workspace/                      # default runtime workspace, created/used locally

🔄 How The Pieces Fit Together

Topic
  -> Survey Agent
     output: survey.md + survey.json
  -> Idea Agent
     output: idea_result.json
  -> Experiment Agent
     output: runnable project, reviewed evidence, final ablation results
  -> Blog Agent
     output: blog workspace, article draft, generated figures

The pipeline runner in src/pipeline/run_loop.py automates the full Survey -> Idea -> Experiment -> Blog flow, but the individual agents remain the clearest way to operate and debug the system.

✅ Prerequisites

  • uv
  • Python 3.12
  • API keys depending on which agent you run
  • Local assets for graph-backed retrieval and memory-enabled workflows
    • Paper-Graph related resource (We will release it in next stage!), put them into <repo_root>/data/processed.
    • Embedding model download:
    mkdir -p models/bge-m3
    mkdir -p models/all-MiniLM-L6-v2
    modelscope download -- model baai/bge-m3 --local_dir <repo_root>/models/bge-m3
    modelscope download --model sentence-transformers/all-MiniLM-L6-v2 --local_dir <repo_root>/models/all-MiniLM-L6-v2
    

⚙️ Installation

The default setup path is now uv.

git clone --depth 1 https://github.com/OpenDFM/Xcientist.git
uv sync
source .venv/bin/activate
cp .env.example .env
xcientist doctor

Common group combinations:

# Base CLI / config / API-only workflows
uv sync

# Memory-enabled and local-model workflows
uv sync --group memory --group ml

# PDF parsing stack
uv sync --group pdf

# Blog Agent full workflow: PDF parsing + image generation / OCR / text removal
uv sync --group pdf --group blog

# Full local environment
uv sync --all-groups

environment.yml is still available as a legacy/full-environment fallback, but uv sync is the primary path for Survey + Idea + Experiment + Blog + Pipeline. The dependency layout is now split so the default install stays lightweight and heavy local-model / PDF stacks are opt-in. After activation, the project exposes CLI entrypoints such as xcientist, xcientist-survey, and xcientist-idea directly in the shell.

🔐 Environment Variables

Different agents read slightly different variables. In practice, these are the most useful ones to define:

export OPENAI_API_KEY=...
export OPENAI_BASE_URL=...
export OPENAI_MODEL=...            # optional Experiment Agent default
export SEMANTIC_SCHOLAR_API_KEY=...
export ANTHROPIC_API_KEY=...
export ANTHROPIC_BASE_URL=...
export SERPER_API_KEY=...
export GITHUB_AI_TOKEN=...
export JINA_API_KEY=...
export TAVILY_API_KEY=...
export HF_TOKEN=...

Notes:

  • Set both OPENAI_API_BASE and OPENAI_BASE_URL if you use a custom OpenAI-compatible endpoint.
  • The CLI loads repo-root .env first and still falls back to src/config/.env for older setups.
  • src/config/default.yaml is the main configuration file for the current unified workflow.
  • Survey, Idea, Experiment, and Blog still have some agent-specific conventions on top of the unified config.

📦 Optional Local Assets

Some retrieval-heavy paths expect local assets that are not stored in the repository:

  • data/processed/graph.db
  • data/processed/core_component_summary_vector_store/
  • models/bge-m3/
  • models/all-MiniLM-L6-v2/

If you use graph-backed retrieval, start the graph service from the repository root:

uvicorn graph.server:app --host 127.0.0.1 --port 8000

Health check:

curl http://127.0.0.1:8000/health

🚀 Quick Start

Recommended first-time flow:

uv sync --group memory --group ml
source .venv/bin/activate
cp .env.example .env
xcientist doctor

If doctor passes and your local assets are in place, use the commands below.

Fastest Path

Using the provided Training-Free Memory System for LLM Agents example:

Generate survey only:

xcientist survey --topic "Training-Free Memory System for LLM Agents"

Run ideation from the provided sample survey:

xcientist idea --topic "Training-Free Memory System for LLM Agents"

Run experiment from the provided sample idea:

xcientist experiment --experiment agent_memory --idea-json <repo_root>/src/agents/idea_agent/example/idea_result.json

Start blog generation from the sample experiment workspace:

xcientist blog --experiment agent_memory --source-workspace <repo_root>/workspace/training-free-memory-example

For further configuration changes, edit src/config/default.yaml.

1. Run Survey Agent

Primary entrypoint:

xcientist survey

Override the topic directly:

xcientist survey --topic <your_topic_name>

Typical outputs:

  • src/agents/survey_agent/outputs/.../survey.md
  • src/agents/survey_agent/outputs/.../survey.json
  • src/agents/survey_agent/outputs/.../evaluation.txt

2. Run Idea Agent

Primary entrypoint:

xcientist idea

Override the topic directly:

xcientist idea --topic <your_topic_name>

The default run uses src/config/default.yaml, materializes a run directory under src/agents/idea_agent/runs/, and writes idea_result.json plus logs.

3. Run Experiment Agent

The current Experiment Agent is an OpenHarness-backed control plane with four reviewed stages:

  1. prepare discovers and verifies repositories, datasets, models/API surfaces, and environment bindings.
  2. code builds a self-contained implementation under project/ and records bounded real-data smoke evidence.
  3. science runs one all-components reference condition plus component-disabled conditions through a unified contract.
  4. finalization verifies evidence lineage, materializes the final ablation result, and writes it back to symbolic memory with a receipt.

Primary entrypoint:

xcientist experiment --experiment my_exp --idea-json /abs/path/to/idea_result.json

Prepare only:

xcientist experiment --experiment my_exp --idea-json /abs/path/to/idea_result.json --prepare-only

Direct entrypoint:

python -m src.agents.experiment_agent.main \
  --experiment my_exp \
  --config src/config/default.yaml \
  --resume --verbose

The direct module expects idea.json or idea_result.json to already exist in the experiment workspace. The xcientist experiment command copies the file supplied with --idea-json before launch.

Key workspace outputs live under workspace/<experiment_id>/ by default:

  • idea.json
  • project/: self-contained generated implementation
  • repos/: verified reference repositories
  • dataset_candidate/ and model_candidate/: prepared resources
  • results/science/<condition_id>/: raw logs, metrics, and condition outputs
  • agent_reports/: plans, worker artifacts, reviewer reports, hook reports, and the artifact ledger
  • .openharness_runtime/: experiment-local OpenHarness state

Important reviewed artifacts are:

  • agent_reports/prepare/phase.json
  • agent_reports/code/phase.json
  • agent_reports/science/phase.json
  • agent_reports/ablation/final/ablation_results.json
  • agent_reports/ablation/final/symbolic_memory_receipt.json

The experiment code never imports an arbitrary globally installed OpenHarness package: it pins imports to src/harness/src. Configure models and retry/runtime limits under experiment.openharness in src/config/default.yaml; the relevant environment variables are OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, EXPERIMENT_AGENT_WORKSPACE_DIR, XCIENTIST_CONFIG, and AGENT_BASH_TIMEOUT_SECONDS.

4. Run Blog Agent

Blog Agent generates a technical blog article from an existing experiment workspace.

Recommended entrypoint:

xcientist blog --experiment my_exp

With the default workspace root at <repo_root>/workspace, this reads the source experiment from:

<repo_root>/workspace/my_exp

You can also pass that experiment workspace explicitly:

xcientist blog --experiment my_exp --source-workspace <repo_root>/workspace/my_exp

If the experiment workspace is not under the blog agent's default source path, pass it explicitly:

xcientist blog --experiment my_exp --source-workspace /abs/path/to/experiment_workspace

Resume an existing blog workspace:

xcientist blog --experiment my_exp --resume

./run_blog.sh remains available as a compatibility wrapper and delegates to the same xcientist blog command.

5. Run The Prototype Pipeline

Run the integrated loop with the topic from src/config/default.yaml:

xcientist pipeline

Override the research topic at launch time:

xcientist pipeline --topic "Training-Free Memory System for LLM Agents"

Use a custom config file:

xcientist pipeline --config /abs/path/to/config.yaml --topic "Your Research Topic"

🧭 Configuration Guide

The current configuration layout is mixed by design:

Area Primary source
Global project config src/config/default.yaml
Survey Agent survey: block in src/config/default.yaml plus src/agents/survey_agent/config/*.yaml
Idea Agent idea: block in src/config/default.yaml
Experiment Agent experiment: block in src/config/default.yaml and environment variables
Blog Agent blog: block in src/config/default.yaml plus BLOG_AGENT_SOURCE_WORKSPACE when needed
Pipeline pipeline: block in src/config/default.yaml

If you are starting fresh, edit src/config/default.yaml first. It is the most reliable single file to understand current defaults.

Citation

If you use Xcientist in your research, please cite:

@article{wang2026externalizing,
  title={Externalizing Research Synthesis and Validation in AI Scientists through a Research Harness},
  author={Wang, Zijian and Li, Hanqi and Yang, Ziyue and Hu, Zijian and Zuo, Shenghan and Zhang, Yunzhe and Ma, Da and Luo, Danyu and Wang, Chenrun and Peng, Jing and others},
  journal={arXiv preprint arXiv:2606.18874},
  year={2026}
}

About

The official repo for the paper "Making AI Scientists Auditable from Evidence to Claim"

kotohanon.github.io/Xcientist/

Topics

agent-systemsai4ai

Resources

Readme
MIT license
Activity
Custom properties

Stars

72 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.