Skip to main content

DuoAI: Two-System AI Agents

Project description

DuoAI: Two-System AI Agents

DuoAI Logo

DuoAI is a research framework for building agents that mimic human dual cognitive system. In this release, we focus on tackling the YRC problem: deciding which system should decide the next action at a given time. This codebase provide modular abstractions, benchmark environments, and baseline implementations to help you quickly develop and test your ideas.


🔧 Features

  • ⚙️ Unified abstractions for coordination policies, decision-making agents, and environments.
  • 🧪 Benchmark suite of gridworld and visual decision-making tasks (e.g., MiniGrid, Procgen).
  • 📈 Baselines: uncertainty-based and reinforcement learning.
  • 🧩 Compositional design: Easily add your own policies, algorithms, or environments.
  • 📚 Extensive documentation and examples for rapid experimentation.

📦 Installation

Install from PyPI:

pip install duo_ai

Or install from source:

git clone --recurse-submodules https://github.com/khanhptnk/duo-ai.git
cd duo-ai
pip install -e .

📚 Documentation

See the full documentation at: https://duo-ai.readthedocs.io


🧪 Citing DuoAI

If you use the DuoAI package in your research, please cite:

@misc{DuoAI2025,
  author       = {Khanh Nguyen},
  title        = {DuoAI: Two-System AI Agents},
  year         = {2025},
  howpublished = {\url{https://github.com/khanhptnk/duo-ai}},
  note         = {Python package. Version 1.0},
}

🤝 Contributing

We welcome pull requests, feature suggestions, and bug reports! Please see CONTRIBUTING.md for guidelines.


🛡 License

This project is licensed under the MIT License. See LICENSE for more details.


🙏 Acknowledgments

DuoAI draws inspiration from YRC-Bench, a public benchmark Khanh Nguyen co-developed with colleagues at UC Berkeley, but is not an official continuation of that work. This repository also includes code from the public procgenAISC and pyod projects as Git submodules. We thank the original authors of these projects for making their work publicly available. DuoAI builds upon a number of open-source frameworks and libraries, including PyTorch, StableBaselines3, Procgen, MiniGrid, Gym, and Gymnasium. We acknowledge and thank the developers and maintainers of these projects.

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

duo_ai-1.0.0.dev1.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

duo_ai-1.0.0.dev1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file duo_ai-1.0.0.dev1.tar.gz.

File metadata

  • Download URL: duo_ai-1.0.0.dev1.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for duo_ai-1.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 85c33a8c20b49b4fad4bcfcf7d64a279ad007a73d78a9e01a32115ab8e0aecc6
MD5 001aca5f0412a17c20ce285553b7d2fb
BLAKE2b-256 0ab5d1d93f868d8546b80f95fa01f7142f37217cc3d8ff5cac1f37df3921ec07

See more details on using hashes here.

File details

Details for the file duo_ai-1.0.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: duo_ai-1.0.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for duo_ai-1.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e0990011f1fea5306afbbc3b067d3a53075e6022d9cd2e71c8d561a12257d3
MD5 2b5ebbcd8d0d5a10e9171d9764fd97ca
BLAKE2b-256 2314beb6cb25da2bece9f2283d0dfae55debc86b36ca1a83c512fa43c2ab0025

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