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.1.tar.gz (34.8 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.1-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file duo_ai-1.0.1.tar.gz.

File metadata

  • Download URL: duo_ai-1.0.1.tar.gz
  • Upload date:
  • Size: 34.8 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.1.tar.gz
Algorithm Hash digest
SHA256 8ef36aca27405cefdc76382d2a5f3e405bbc2af30f44bf39cc80aa287b63310c
MD5 bd9e034f331e9e3f8e606d323b697d2a
BLAKE2b-256 6f624e93366315a793c7bd7e9e6b287112671719938fc25ac01117725b723a6a

See more details on using hashes here.

File details

Details for the file duo_ai-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: duo_ai-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 46.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11966139107e71210a3355201aa7735040cf3fd18636314faaff9a5e0b82fc65
MD5 40188e4e5bec46b9b45f1a4d5fab89f2
BLAKE2b-256 b72057b302b91d4d86caed878f626447f1fa5cd44ca7b88361913b949165e362

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