Skip to main content

Agent-agnostic CLI runner with loop control for Codex, Gemini, and Claude.

Project description

cli-ai-runner

The Deterministic Task Execution Engine for Agentic CLIs.

cli-ai-runner provides a professional, stable wrapper for running AI agents like Codex, Claude, and Gemini in automated loops. It solves the "completion problem" by enforcing a structured protocol between the human, the runner, and the AI.


🚀 Why cli-ai-runner?

  • Deterministic Control: Stop guessing if an agent finished. Rely on explicit RUN_STATUS signals.
  • Multi-Agent Support: Swappable adapters for the industry's leading agentic CLIs.
  • Strict Completion Gating: Automated verification against your project's Roadmap and Test suites before claiming victory.
  • Windows-First Reliability: Deep integration with Windows command resolution and PTY handling.

🛠 Installation

cli-ai-runner is distributed via PyPI and requires Python 3.11+.

pip install cli-ai-runner

🏁 Quick Start

1. Check your environment

See which agents are ready to work:

cli-ai-runner status

2. Setup missing agents

Automatically provision the necessary agent CLIs:

cli-ai-runner setup --yes

3. Run a project task

Execute a task with automatic continuation and verification:

cli-ai-runner "Implement the login module and add unit tests" --agent claude

📖 Documentation

  • User Guide: Detailed command references, environment variables, and troubleshooting.
  • Architecture: Deep dive into the adapter pattern and deterministic loop logic.
  • Roadmap: Future plans for multi-agent orchestration and cross-platform support.

⌨️ CLI Command Reference

Command Usage Description
run cli-ai-runner run "task" [options] Primary command. Starts a task loop.
status cli-ai-runner status Lists detected agents and their binary paths.
setup cli-ai-runner setup [--agent X] Installs missing agent binaries via NPM.

Global Options for run:

  • --agent {codex,gemini,claude}: Which adapter to use. (Default: codex)
  • --max-loops N: Exit after N iterations to prevent runaway costs. (Default: 50)
  • --no-strict-completion: Disable the mandatory verification pass.

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for local development setup and testing guidelines.

⚖️ License

Distributed under the MIT License. See LICENSE for more information.

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

cli_ai_runner-1.0.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

cli_ai_runner-1.0.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cli_ai_runner-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f64ee831d88b07d88a4bd19e8ce19c6eb5e1ca8186b35144bf025f8cec4faa02
MD5 5cf68dc7373cd8f96d41170dbea1f3cd
BLAKE2b-256 c90e3ae46795a8424fdf51f77d4f124d0544fe625f8b8e8e100ba631eb154c1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cli_ai_runner-1.0.1.tar.gz:

Publisher: release.yml on adw2323/cli-runner

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

File details

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

File metadata

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

File hashes

Hashes for cli_ai_runner-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c381ae006188b27a779aa9ab79a3fab6d6fe8cfe3f0b78ca111deefde0f3d9
MD5 34f319ad1a7f4a2a909b1da8ccbcf93d
BLAKE2b-256 82c9dfa9b8233f4ca7c617e38026eaa39891b4fb250238ef9a09b3f3b25bd582

See more details on using hashes here.

Provenance

The following attestation bundles were made for cli_ai_runner-1.0.1-py3-none-any.whl:

Publisher: release.yml on adw2323/cli-runner

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