Skip to main content

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

uv pip install drl

Requires Python 3.10+.

Quick Start

# Initialize a new research project
drl setup

# Walk through configuration
/drl:onboard

# Customize for your field (labor economics, political science, etc.)
/drl:flavor

# Index literature -- drop PDFs into literature/pdfs/, then:
drl index

# Decompose your research question into epics
/drl:architect

# Run the full pipeline (spec -> plan -> work -> review -> synthesis)
drl loop

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:

  1. Spec -- research question, hypotheses, literature gap
  2. Plan -- methodology, variables, statistical models
  3. Work -- analysis, tables, figures, section drafting
  4. Review -- methodology audit + external model review
  5. 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

MIT

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

dark_research_lab-0.1.0.tar.gz (482.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dark_research_lab-0.1.0-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

Details for the file dark_research_lab-0.1.0.tar.gz.

File metadata

  • Download URL: dark_research_lab-0.1.0.tar.gz
  • Upload date:
  • Size: 482.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for dark_research_lab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09d8538020e8d42cd4351ebb1040b340b42f7711bedae645a98954c2fc485c19
MD5 89f6b4f5a8da29a3633ee18ceb89ab1b
BLAKE2b-256 a913a842e3dc0c8c1c2557dfa751a0c46d81c329c3dfda067dad978de20abda5

See more details on using hashes here.

File details

Details for the file dark_research_lab-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dark_research_lab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa4b72328431bb53d7ab47706c994ab3d6f39ffefcf7c7f0afc44e2f4c6b3c9
MD5 527f3cf624ecc9ec872f5ff3507fe17b
BLAKE2b-256 9eff042be094c99c09d342b19d5bfc75f13a0eafe31e29a30d163755395608d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page