DODAR
Structured reasoning framework for AI agents — adapted from aviation Crew Resource Management.
DODAR (Diagnose, Options, Decide, Action, Review) imposes explicit gates at each stage of analysis, preventing the reasoning failures that LLMs share with humans under pressure: premature anchoring, option narrowing, and treating decisions as final.
Install
pip install dodar
Quick start
from dodar import DODAR
dodar = DODAR(model="gpt-4.1-mini")
result = dodar.analyze("Your scenario here...")
# Structured access to each reasoning phase
result.diagnosis.hypotheses # Ranked competing causes
result.options.alternatives # Distinct paths with trade-offs
result.decision.recommendation # The call + justification
result.action.steps # Sequenced implementation plan
result.review.failure_modes # Self-critique
Pipeline mode
For maximum quality, use the pipeline where each DODAR phase runs as a separate model call:
from dodar import DODAR
dodar = DODAR(model="gpt-4.1-mini", mode="pipeline")
result = dodar.analyze("Your scenario here...")
Research shows GPT-4.1 Mini + pipeline scores 104% of Claude Opus 4.6 zero-shot quality at 89% lower cost. Read the whitepaper.
Supported models
| Provider | Models |
|---|---|
| Anthropic | claude-opus-4-6, claude-sonnet-4-5, claude-haiku-4-5 |
| OpenAI | gpt-5.4, gpt-4o, gpt-4o-mini, gpt-4.1-mini, gpt-4.1-nano |
gemini-2.0-flash (install with pip install dodar[google]) |
|
| Ollama | Any local model (install with pip install dodar[ollama]) |
Links
License
MIT
Metadata
Release files for dodar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dodar-0.1.0.tar.gz | 7.9 kB | Without provenance | Details for dodar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dodar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dodar-0.1.0-py3-none-any.whl |
Total release size: 17.0 kB
Release files / dodar-0.1.0.tar.gz
| Download URL | dodar-0.1.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16586cd6dd864936591ce75634f043f2f9fa4b5a5ae4d6139a04c0dcf4faab15
|
|
BLAKE2b-256 checksum How to use checksums |
42f8b8940bde56ccb91d50290e6b5888120d3a41ad7f68ec90c9a98efb5116cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / dodar-0.1.0-py3-none-any.whl
| Download URL | dodar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7c501c31af50c61bebe2c827078e2bbe68f3dfea8cb3dc50e6635c159373e38
|
|
BLAKE2b-256 checksum How to use checksums |
4ec0db2dae28ce64b6f82ffb17ad7cda8462157c43ac7bf915b2b1302db4c299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for dodar 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.