Generate master-level research papers with real citations in minutes
Project description
OpenDraft Engine
The Python AI engine that powers thesis draft generation. Contains the 19-agent pipeline, citation research, and export functionality.
Structure
engine/
├── draft_generator.py # Main 19-stage pipeline orchestrator
├── config.py # Model settings, API keys, rate limits
├── utils/
│ ├── agent_runner.py # Agent execution engine
│ ├── api_citations/ # Citation APIs (CrossRef, Semantic Scholar)
│ ├── citation_*.py # Citation management & validation
│ ├── export_professional.py # PDF/DOCX export
│ ├── pdf_engines/ # Pandoc, WeasyPrint engines
│ └── deep_research.py # Research phase utilities
├── prompts/
│ ├── 00_WORKFLOW.md # Complete agent workflow
│ ├── 01_research/ # Deep Research, Scout, Scribe, Signal
│ ├── 02_structure/ # Architect, Citation Manager, Formatter
│ ├── 03_compose/ # Crafter, Thread, Narrator
│ ├── 04_validate/ # Skeptic, Verifier, Referee
│ ├── 05_refine/ # Citation Verifier, Voice, Entropy, Polish
│ └── 06_enhance/ # Abstract Generator, Enhancer
└── opendraft/ # CLI tools
Usage
Run Pipeline Directly
cd engine
python draft_generator.py --topic "Your research topic" --level master
Academic Levels
| Level | Words | Chapters | Time |
|---|---|---|---|
| research_paper | 3-5k | 3-4 | 5-10 min |
| bachelor | 10-15k | 5-7 | 8-15 min |
| master | 20-30k | 7-10 | 10-25 min |
| phd | 50-80k | 10-15 | 20-40 min |
Environment Variables
Required in .env (project root):
GEMINI_API_KEY=your-key # Required
PROXY_LIST=... # Optional: for faster research
SCOUT_PARALLEL_WORKERS=32 # Optional: parallelism
Dependencies
pip install -r requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opendraft-1.7.1.tar.gz
(259.6 kB
view details)
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
opendraft-1.7.1-py3-none-any.whl
(290.9 kB
view details)
File details
Details for the file opendraft-1.7.1.tar.gz.
File metadata
- Download URL: opendraft-1.7.1.tar.gz
- Upload date:
- Size: 259.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31a6853f4458e675204416046c91fbe54d2f68ffd63ab10efe7afa8a8c2c9149
|
|
| MD5 |
54197cfb30fb34223b383002d6046c79
|
|
| BLAKE2b-256 |
f9d4a04a0cb8005a12d163a357b6c66dd046e0f13bfae3f54e58acaa4cdf3886
|
File details
Details for the file opendraft-1.7.1-py3-none-any.whl.
File metadata
- Download URL: opendraft-1.7.1-py3-none-any.whl
- Upload date:
- Size: 290.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6356785f65f268c62477ab50d7f6af5b804b80f0fccf0ee2a13d8a1c3f287baa
|
|
| MD5 |
0f650c6d03b58a0e4d763c8fe376ff5b
|
|
| BLAKE2b-256 |
e6fb26e9b2b12d2d128c753b5eea856589f8725774d30737853726684f5f6f9b
|