Metadata-Version: 2.5
Name: evoloop-cli
Version: 0.1.2
Summary: Minimalistic CLI to install and update Evoloop skills in .agents/skills.
Project-URL: Homepage, https://github.com/NachoBrito/evoloop
Project-URL: Repository, https://github.com/NachoBrito/evoloop
Project-URL: Issues, https://github.com/NachoBrito/evoloop/issues
Author: Nacho Brito
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai-agents,cli,evaluation,evoloop,skills
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# Evoloop Command-Line Interface (`evoloop-cli`)

`evoloop-cli` is a minimalistic Python Command-Line Interface (CLI) that bootstraps Evoloop in any project.
It has zero third-party runtime dependencies and runs on Python 3.11 or newer.

When you run `evoloop init`, the tool does two things:

1. Creates `.agents/skills` if the directory does not exist.
2. Copies or updates every Evoloop skill in `.agents/skills`.

The tool leaves non-Evoloop skills in `.agents/skills` intact.

---

## Prerequisites

Verify that you have these tools before you install `evoloop-cli`:

- **Python 3.11 or newer** (`python3 --version`).
- **[uv](https://docs.astral.sh/uv/)** (`uv --version`) for global tool installation or one-off execution. You can also use `pipx` or `pip`.

---

## Install `evoloop-cli`

### Option 1: Install from PyPI with `uv` (Recommended)

Install the `evoloop` command globally from the Python Package Index (PyPI):

```bash
uv tool install evoloop-cli
```

Upgrade an installed tool to the latest version:

```bash
uv tool upgrade evoloop-cli
```

### Option 2: Run Without Installation (`uvx`)

Run `evoloop` one time without a global install:

```bash
uvx --from evoloop-cli evoloop init
```

### Option 3: Install with `pipx` or `pip`

You can also install `evoloop-cli` with `pipx` or `pip`:

```bash
pipx install evoloop-cli
# Or inside a virtual environment:
pip install evoloop-cli
```

### Option 4: Install from a Local Clone

Install the CLI globally from a local clone of the `evoloop` repository:

```bash
uv tool install ./cli
```

For local development with live edits to `cli/` and `.agents/skills/`, use an editable install:

```bash
uv tool install --editable ./cli
```

Or run the script directly without installation:

```bash
python3 cli/evoloop_cli/cli.py init /path/to/your-project
```

---

## Verify Installation

Run `evoloop version` to confirm that the CLI is on your `PATH`:

```bash
evoloop version
```

List the bundled Evoloop skills:

```bash
evoloop list
```

---

## Usage

### Bootstrap a Project

Install or update every Evoloop skill in the current directory:

```bash
evoloop init
```

You can also pass `--here` or a target directory path.
If the target directory does not exist, the tool creates it:

```bash
evoloop init --here
evoloop init my-new-agent
```

### Update Skills

Update an existing repository after you upgrade `evoloop-cli`:

```bash
evoloop update
```

`evoloop update` is an alias of `evoloop init`.
The tool installs missing skills, updates changed skills, and skips up-to-date skills.

### Preview Changes

Use `--dry-run` to inspect planned changes without file modifications:

```bash
evoloop init --dry-run
```

### Install to a Custom Skills Directory

Use `--skills-dir` to install into a custom or global skills directory:

```bash
evoloop init --skills-dir ~/.agents/skills
```

### Command Reference

| Command | Purpose |
| :--- | :--- |
| `evoloop init [target]` | Creates `.agents/skills` if needed and installs or updates every Evoloop skill. |
| `evoloop update [target]` | Updates every Evoloop skill in `.agents/skills`. |
| `evoloop list` | Lists every bundled Evoloop skill. |
| `evoloop version` | Prints the installed `evoloop-cli` version. |

| Option (`init` and `update`) | Purpose |
| :--- | :--- |
| `--here` | Targets the current working directory. |
| `--skills-dir PATH` | Overrides the destination directory (default: `.agents/skills`). |
| `--source PATH` | Reads skills from a custom local directory instead of the bundled skills. |
| `--dry-run` | Prints planned actions without writing files. |

---

## Build Distributions Locally

Build source distribution (`.tar.gz`) and wheel (`.whl`) archives inside `cli/dist/`:

```bash
uv build cli/
```

The custom Hatchling build hook in [`hatch_build.py`](./hatch_build.py) packages `../.agents/skills/` into both archives.
This approach keeps `.agents/skills/` as the single source of truth with zero duplicated skill files in Git.

---

## Run CLI Tests

Run the unit tests for `evoloop-cli`:

```bash
uv run --with pytest --with hatchling pytest cli/tests/test_cli.py
```
