Skip to main content

CLI-First deterministic multi-agent orchestration library

Project description

DeterminAgent

CLI-First Deterministic Multi-Agent Orchestration Library

PyPI version Python 3.10+ License: Apache 2.0 Coverage

Orchestrate powerful AI workflows at zero extra cost. DeterminAgent controls multiple AI CLI tools (Claude Code, Copilot CLI, Gemini CLI, OpenAI Codex) using LangGraph to create deterministic pipelines powered by your existing flat-rate subscriptions.


🚀 First Contact

DeterminAgent is a Python library for developers who want to build complex, multi-agent systems without paying for expensive per-token API calls. By wrapping the CLI tools you already pay for, DeterminAgent allows you to build production-grade workflows for $0 in variable costs.

Key Features

  • Library-Only: Full control in pure Python. No proprietary YAML DSL.
  • Subscription Arbitrage: Uses your flat-rate CLI subscriptions.
  • Deterministic: Powered by LangGraph state machines.
  • Zero-Latency: Controls local tools via subprocess.

📦 Installation

From PyPI (Recommended)

pip install determinagent

From Source

For the latest development version or to contribute:

# Clone the repository
git clone https://github.com/Experto-AI/determinagent.git
cd determinagent

# Install dependencies and set up environment
poetry install

# Verify installation
poetry run python -c "import determinagent; print(determinagent.__version__)"

Prerequisites


⚡ Quick Start

Library Usage

from determinagent import UnifiedAgent, SessionManager

# Create a deterministic agent
writer = UnifiedAgent(
    provider="claude",
    model="balanced",
    role="Technical Blogger",
    session=SessionManager("claude")
)

# Send a prompt - zero per-token cost!
response = writer.send("Explain LangGraph in 3 sentences.")
print(response)

Template Flows

Don't start from scratch. Use our pre-built Python templates in the flows/ directory:

  • flows/blog/: Complete Writer → Editor → Reviewer workflow with human review.

To run the blog flow:

python flows/blog/main.py "My Blog Topic" --writer claude --editor copilot

🧩 Compatibility Matrix

Provider Adapter Status Session Support Web Search Model Aliases
Claude Code ✅ Alpha ✅ Native ✅ Yes fast, balanced, powerful, reasoning, free
Copilot CLI ✅ Alpha ✅ Native ✅ Yes fast, balanced, powerful, reasoning, free
Gemini CLI ✅ Alpha ✅ Native ✅ Yes fast, balanced, powerful, reasoning, free
OpenAI Codex ✅ Alpha ✅ Native ❌ No fast, balanced, powerful, reasoning, free

🎯 Model Alias Map

DeterminAgent resolves model aliases per provider so you can keep flows consistent.

Alias Claude Code Gemini CLI Copilot CLI OpenAI Codex
fast haiku gemini-3-flash-preview claude-haiku-4.5 gpt-5.1-codex-mini
balanced sonnet gemini-3-pro-preview claude-sonnet-4.5 gpt-5.1-codex
powerful opus gemini-3-pro-preview claude-opus-4.5 gpt-5.1-codex-max
reasoning opus gemini-3-pro-preview gpt-5.2 gpt-5.1-codex
free haiku gemini-3-flash-preview claude-haiku-4.5 gpt-5.1-codex-mini

Notes:

  • You can always pass an exact model string to override the alias.
  • Availability depends on your provider plan and CLI version.
  • Gemini 3 preview models require enabling Preview Features in Gemini CLI; if unavailable, pass gemini-2.5-pro or gemini-2.5-flash.
  • Codex CLI does not enumerate models in --help; defaults mirror Codex model names exposed by Copilot CLI.

🛠️ Troubleshooting

Common Issues

  1. ProviderNotAvailable: CLI command 'claude' not found

    • Ensure the tool is installed and available in your $PATH.
    • Run claude --version manually to verify.
  2. Authentication Errors

    • DeterminAgent uses your local sessions. Ensure you are logged in to the CLI tool (e.g., copilot auth status or claude login).
  3. Subprocess Timeouts

    • Some agents (like Writer) can take a few minutes for long content. Ensure your environment doesn't kill long-running processes.

Debug Mode

Set LOG_LEVEL=DEBUG to see the full subprocess commands and raw output.


📖 Documentation

Core Documentation

API Reference

Tutorials

Community


📜 License

Apache License 2.0 - see LICENSE for details.

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

determinagent-0.13.0.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

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

determinagent-0.13.0-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file determinagent-0.13.0.tar.gz.

File metadata

  • Download URL: determinagent-0.13.0.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for determinagent-0.13.0.tar.gz
Algorithm Hash digest
SHA256 12c09e9fb931519d89f3cba3a5284fa7dc4871a1ce4c9f6313ce925795386230
MD5 afe05a531ef0edbab1131619d7aadff0
BLAKE2b-256 9abe8aa71e7506bdcbb43c50c5e92795e643967b977bc305ba48353a0496476b

See more details on using hashes here.

Provenance

The following attestation bundles were made for determinagent-0.13.0.tar.gz:

Publisher: publish.yml on Experto-AI/determinagent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file determinagent-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: determinagent-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for determinagent-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c37ae8163ac96ee7f5cb4c9ff8b1ee1e196158a93708494310031d038df4367a
MD5 b8b83c196653a34a07eef2f70ef0e1b2
BLAKE2b-256 012d8f5031c607b7ba011230bfd5bb95398b4be954bbcf042d75d0ae04efcbef

See more details on using hashes here.

Provenance

The following attestation bundles were made for determinagent-0.13.0-py3-none-any.whl:

Publisher: publish.yml on Experto-AI/determinagent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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