Dark Research Lab - autonomous research paper factory
Project description
DRL -- Dark Research Lab
Autonomous research paper factory for social science. Turn a git repo into a reproducible academic paper with AI-driven analysis, literature indexing, and LaTeX compilation.
Install
Requires Python 3.10+ and Claude Code.
# Install DRL
uv tool install dark-research-lab
# Install beads (task tracker)
npm install -g beads
Quick Start
# 1. Create a project and scaffold
mkdir my-paper && cd my-paper && git init
drl setup
# 2. Add your data and literature
cp ~/data/*.csv data/input/ # Keep originals safe elsewhere
cp ~/papers/*.pdf literature/pdfs/
drl index # Index PDFs for agent search
# 3. Configure for your field
/drl:flavor
# 4. Decompose your research question into epics
/drl:architect
# 5. Run the pipeline on each epic
/drl:cook-it <epic-id>
# Or run autonomously
drl loop --force && screen -dmS loop ./infinity-loop.sh
See docs/drl/ONBOARDING.md for the full setup walkthrough.
How It Works
DRL wraps compound-agent with research-specific skills, agents, and guardrails:
Researcher
|
v
drl CLI (Go binary in a Python wheel)
|
+-- Claude Code (executes skills/agents)
+-- Beads (epic tracking with dependency graphs)
+-- Literature RAG (PDF extraction + embedding via ca-embed)
+-- LaTeX toolchain (3-pass pdflatex + bibtex)
+-- Advisory Fleet (optional: Gemini, Codex reviewers)
Each research question passes through a cook-it cycle:
- Spec -- research question, hypotheses, literature gap
- Plan -- methodology, variables, statistical models
- Work -- analysis, tables, figures, section drafting
- Review -- methodology audit + external model review
- Synthesis -- lessons captured, paper section finalized
Every methodological decision is logged to docs/decisions/ for full
traceability. A reproducibility package (lockfile + data manifest + run script)
is generated at compilation time.
Project Structure
paper/ LaTeX source and compiled outputs
src/ Analysis scripts
literature/ PDFs and indexed knowledge base
docs/ Decisions, specs, agent notes
tests/ Test suite
.claude/ Skills, agents, hooks, commands
Commands
| Command | Purpose |
|---|---|
drl setup |
Initialize or update project templates |
drl index |
Index literature PDFs for RAG search |
drl loop |
Run infinity loop over all epics |
/drl:compile |
Compile LaTeX paper + reproducibility package |
/drl:flavor |
Customize skills for your research field |
/drl:onboard |
Guided first-time setup |
/drl:architect |
Decompose research question into epics |
Documentation
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dark_research_lab-0.2.0.tar.gz.
File metadata
- Download URL: dark_research_lab-0.2.0.tar.gz
- Upload date:
- Size: 31.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
660f965d127a92a31c2082162133e3408d5f470119117a20494b5abfed3bddf6
|
|
| MD5 |
c7fcd6c0ac919ce3593048c8998c01ac
|
|
| BLAKE2b-256 |
14b00824eed838553c1d4704cd8583967184e3e65c37f9cbfa240288b4c44a0a
|
File details
Details for the file dark_research_lab-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dark_research_lab-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36db6988052277b333bf32d732754412482061c1ace2aab61d457db759254ec3
|
|
| MD5 |
23f42ab3e0b40e23b4ddecb427df70fe
|
|
| BLAKE2b-256 |
f6e582a35e4ba2f31aa26e0924feba6c7bbff9f3322e78c10be12424cedf8a51
|