Skip to main content

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

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",
   instructions="Write concise, technically accurate content.",
    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.
Blog Flow

To run the blog flow:

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

🧩 Compatibility Matrix

Provider Adapter Status DeterminAgent Session Mode Upstream CLI Resume Search / Web in Upstream CLI Current Library Surface
Claude Code ✅ Alpha ✅ Deterministic --session-id + --resume ✅ Yes ✅ Yes Models, deterministic sessions, web tools, custom allowed tools
Copilot CLI ✅ Alpha ⚠️ Fresh session by default ✅ Yes (provider-managed) ✅ Yes Models, non-interactive prompts, tool/url permission flags
Gemini CLI ✅ Alpha ⚠️ Fresh session by default ✅ Yes (provider-managed) ✅ Yes Models, headless --prompt, JSON output, sandbox/tool passthrough
OpenAI Codex ✅ Alpha ⚠️ Fresh session by default ✅ Yes (provider-managed) ✅ Yes Models, JSON exec mode, sandbox, structured event parsing

Audit Snapshot — March 2026

  • Claude Code remains the only provider where DeterminAgent can create a deterministic first-call session ID itself.
  • Copilot CLI, Gemini CLI, and Codex CLI now document resume flows upstream, but those session IDs are provider-owned. DeterminAgent still defaults to fresh sessions there to keep multi-agent orchestration deterministic.
  • The library now aligns better with current CLIs by:
    • using Gemini headless mode via --prompt
    • emitting Codex exec --json with --model
    • forwarding configured sandbox and tools from UnifiedAgent into adapters
    • using current Claude --allowed-tools / --resume forms

If you need a provider capability that exists upstream but is not yet abstracted cleanly here, pass an exact model string or extend the adapter directly.


🎯 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-flash-preview gpt-5-mini gpt-5.4
powerful opus gemini-3.1-pro-preview claude-opus-4.6 gpt-5.3-codex
reasoning opus gemini-3.1-pro-preview gpt-5.4 gpt-5.4
free haiku gemini-3-flash-preview gpt-5-mini 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 aliases now target current Gemini 3.x CLI-safe models: gemini-3-flash-preview for fast/default work and gemini-3.1-pro-preview for top-end reasoning.
  • gemini-3.1-flash-lite-preview exists in the Gemini API, but current Gemini CLI validation does not reliably expose it yet.
  • Copilot powerful and reasoning use newer premium models and may require broader plan access than gpt-5-mini.
  • Codex and Copilot model inventories change frequently; aliases are conservative defaults, not an exhaustive upstream model list.

🛠️ 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

DeterminAgent Architecture

Core Documentation

API Reference

Tutorials

Community


📜 License

Apache License 2.0 - see LICENSE for details.

Metadata

Release files for determinagent 0.15.0

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

Source distribution (sdist)

Source distribution for determinagent 0.15.0
File Size Uploaded Provenance
determinagent-0.15.0.tar.gz 31.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 69.6 kB

Release files / determinagent-0.15.0.tar.gz

Download URL determinagent-0.15.0.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9a9714d632e0d43775f802c036921f6a95484d4d2e2ce91e1e6928a2962c5e0
BLAKE2b-256 checksum
How to use checksums
fbefce354b398076b2c75cf01519bc9be81833d209b1378ec77db126886b480d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 14, 2026.

Transparency log

Release files / determinagent-0.15.0-py3-none-any.whl

Download URL determinagent-0.15.0-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
789164ad48153cf3b4a10c1ff747132d7bb28177839f01192b994307ed2c9708
BLAKE2b-256 checksum
How to use checksums
8eabe8c240ad9e8caf8b2caa74919c9864f29b08657b5f45ffe4cbbb8d562564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 14, 2026.

Transparency log

Security for determinagent 0.15.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for determinagent-0.15.0.tar.gz

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 Mar 14, 2026.

Transparency log

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.

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