Skip to main content

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

Metadata

Release files for opendraft 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opendraft 1.8.1
File Size Uploaded
opendraft-1.8.1.tar.gz 393.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opendraft 1.8.1
File Interpreter ABI Platform
opendraft-1.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 840.7 kB

Release files / opendraft-1.8.1.tar.gz

Download URL opendraft-1.8.1.tar.gz
Size 393.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1779ccf5c50f3c7eea6b0c463a7103e9c6a13d3eb8ad5245011a08717204d222
BLAKE2b-256 checksum
How to use checksums
310fc1d88cfa5b740629262433a0f4c72123e02f6cba0631bef8510fb66cc201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / opendraft-1.8.1-py3-none-any.whl

Download URL opendraft-1.8.1-py3-none-any.whl
Size 447.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3590751a01331f9139e4664bbaa53568329716dd3bd05d31495fdee00d97d42
BLAKE2b-256 checksum
How to use checksums
d27886d6ff86ea4f09838239431039355763499b62cf96ae64cfeab3e4775bb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.8.1 This release

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.6.22

2 release files

1.6.21

2 release files

1.6.16

2 release files

1.6.15

2 release files

1.6.10

2 release files

1.6.9

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page