A community-driven registry for the Claude Code ecosystem. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Transform Claude Code into a semi-autonomous, self-improving scientific researcher.
Fully open-source autonomous scientific research capabilities for Claude Code.
NOTE: NO official ties with Anthropic or Claude! Completely independent, open-source project.
Claude Code Scientist transforms Claude Code into a semi-autonomous, self-improving research system. It provides:
git clone https://github.com/rhowardstone/Claude-Code-Scientist.git
cd Claude-Code-Scientist
# Install Python dependencies
pip install -r requirements.txt
# Download spaCy model
python -m spacy download en_core_web_sm
# Install to another project's .claude/ directory
./install.sh /path/to/your/project
# Or install globally to ~/.claude/
./install.sh --global
./session.sh new "Your research goal here"
or even more simply:
./session.sh new
That's it! This creates a session and launches Claude Code, which automatically:
Each research project gets its own isolated session:
./session.sh new "goal" # Create new session
./session.sh list # List all sessions
./session.sh resume <id> # Resume a session
./session.sh current # Check active session
Sessions store all artifacts in workspace/sessions/session_<id>/.
A completed session produces:
workspace/sessions/session_abc123/
├── synthesis/
│ ├── paper.tex # LaTeX paper with citations
│ ├── paper.pdf # Compiled PDF
│ └── references.bib # Bibliography with DOIs
├── literature/
│ └── preread_papers.json # Discovered papers with abstracts
├── peer_review/
│ ├── methodology_review.json
│ ├── statistics_review.json
│ └── impact_review.json
├── experiments/ # If experiments were run
│ ├── results.json
│ └── figures/
└── world_model.json # Research state
After completing research sessions, you can run CORTEX to analyze what went well and what could be improved:
./session.sh cortex # Launch cortex session
Then run /cortex to start the self-improvement cycle. CORTEX traces the narrative flow of prior sessions, diagnoses issues, and generates fixes. It's how this system improves itself.
Claude Code Scientist
│
├── CLAUDE.md (Research Director prompt)
│
├── .claude/
│ ├── agents/ # Specialized subagent configs (7)
│ │ ├── lit-scout.md
│ │ ├── synthesizer.md
│ │ ├── reviewer-*.md # 3 reviewers
│ │ ├── experimentalist.md
│ │ └── tool-acquirer.md
│ │
│ ├── skills/ # Orchestration workflows (24)
│ │ ├── literature-search/
│ │ ├── peer-review/
│ │ ├── goal-decomposition/
│ │ ├── synthesizer/
│ │ └── ...
│ │
│ ├── hooks/ # Validation automation (8)
│ │ ├── validate-claims.py
│ │ ├── validate-doi.py
│ │ └── verify-provenance.py
│ │
│ └── rules/ # Conventions (3)
│ ├── provenance-tracking.md
│ ├── world-model.md
│ └── workflow.md
│
├── craig/ # Python utilities (137 files)
│ ├── world_model.py # Research state management
│ ├── doi_fetcher.py # DOI validation
│ ├── latex_compiler.py # Paper compilation
│ ├── literature/ # Database clients
│ │ ├── openalex_client.py
│ │ ├── pubmed_client.py
│ │ └── semantic_scholar_client.py
│ ├── pipeline/ # Phase implementations
│ └── experiment_harness_templates/ # Experiment scaffolding
│
└── mcp-servers/literature/ # Literature search MCP
Create .mcp.json to add literature databases:
{
"mcpServers": {
"openalex": {
"type": "stdio",
"command": "python",
"args": ["mcp-servers/literature/server.py"]
}
}
}
Create .claude/skills/my-skill/SKILL.md:
---
name: my-skill
description: What it does and when to use it
user-invocable: true
---
# Skill instructions here
Create .claude/agents/my-agent.md:
---
name: my-agent
description: Specialized agent description
model: sonnet
---
# Agent instructions here
Research artifacts are stored in workspace/:
workspace/
├── world_model.json # Research state
├── literature/ # Search results, papers
├── synthesis/ # Paper drafts
├── peer_review/ # Review feedback
└── experiments/ # Experimental artifacts
The craig/ directory contains 137 Python files providing:
The craig/experiment_harness_templates/ provides scaffolding for experiments:
run.sh - Master experiment runnersteps/ - Modular experiment phaseslib/ - Utilities for checkpointing, scaling, validationFor compiling the generated papers to PDF:
apt install texlive-latex-base texlive-latex-extra # Debian/Ubuntu
# or: brew install --cask mactex # macOS
For faster embeddings during knowledge graph ingestion:
# Replace faiss-cpu with faiss-gpu
pip uninstall faiss-cpu
pip install faiss-gpu
# Use CUDA for embeddings
python -m craig.literature.knowledge_graph.ingest --device cuda --batch-size 128
If you see hooks running twice (e.g., PostToolUse:Write hook succeeded appearing 6 times instead of 3), you have hooks configured in both:
~/.claude/settings.json.claude/settings.jsonClaude Code merges both, so they stack. Solutions:
Messages like NCBI_API_KEY not set are informational. The pipeline works without API keys but may hit rate limits. To add keys:
cp .env.example .env
# Edit .env with your keys
Get keys at:
This means the paper couldn't be downloaded from any open access source. It's normal for paywalled papers. The pipeline continues with abstract-only data.
We welcome contributions! The most valuable way to contribute is:
# After a research session, run:
./session.sh cortex
# Then in Claude:
/cortex
Cortex analyzes past sessions, diagnoses issues, and generates fixes. Submit the improvements back!
See CONTRIBUTING.md for full guidelines.
MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Secure MCP server for MySQL database interaction, queries, and schema management
English-first Korean equity intelligence MCP — DART filings, foreign-holder 5%-rule flows, activist filings, KRX news. F