Skip to main content

Agent hub CLI — manage and run AI agents

Project description

collet

Agent hub CLI — manage and run AI agents

A command-line interface for managing, monitoring, and running AI agents in a centralized hub.

Features

  • 📋 List all registered agents
  • 🎯 Enable/disable agents
  • ▶️ Run agents with parameters
  • 📊 Monitor agent status
  • 📤 Export agent information (JSON, table)
  • 🔧 Agent metadata and configuration

Installation

pip install collet

Quick Start

# List all agents
collet agents list

# Show hub status
collet agents status

# Run an agent
collet agents run analyzer

# Enable/disable agents
collet agents enable analyzer
collet agents disable executor

# Show agent details
collet agents info analyzer

# Export as JSON
collet agents list --format json

Commands

List Agents

# List all agents
collet agents list

# List agents by status
collet agents list --status running
collet agents list --status idle
collet agents list --status error

# Export as JSON
collet agents list --format json

# Export as table (default)
collet agents list --format table

Show Status

# Show overall hub status
collet agents status

Run Agent

# Run an agent
collet agents run analyzer

# Run with parameters
collet agents run processor --params '{"input": "data.txt"}'

Enable/Disable

# Enable an agent
collet agents enable executor

# Disable an agent
collet agents disable executor

Agent Info

# Show detailed agent information
collet agents info analyzer

Library Usage

from collet.agents import AgentHub, AgentConfig, AgentStatus

# Create hub
hub = AgentHub()

# List agents
for agent in hub.list():
    print(f"{agent.config.name}: {agent.status.value}")

# Get specific agent
agent = hub.get("analyzer")
if agent:
    print(f"Status: {agent.status.value}")
    print(f"Enabled: {agent.config.enabled}")

# Register new agent
config = AgentConfig(
    name="my-agent",
    description="My custom agent",
    version="1.0.0"
)
agent = hub.register(config)

# Change agent status
hub.set_status("my-agent", AgentStatus.RUNNING)

# Export as JSON
json_str = hub.to_json()

Default Agents

The hub comes with two default agents:

  1. analyzer

    • Code analysis and insights agent
    • Capabilities: syntax-analysis, complexity-metrics
  2. executor

    • Task execution and workflow agent
    • Capabilities: task-execution, workflow-orchestration

Output Examples

List Output (Table)

┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━━┓
┃ Name     ┃ Description          ┃ Version ┃ Status ┃ Enabled ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━━┩
│ analyzer │ Code analysis agent  │ 0.1.0   │ idle   │ ✓       │
│ executor │ Task execution agent │ 0.1.0   │ idle   │ ✓       │
└──────────┴──────────────────────┴─────────┴────────┴─────────┘

Total agents: 2

Status Output

Agent Hub Status
Total Agents: 2

By Status:
  Idle: 2
  Running: 0
  Error: 0
  Disabled: 0

Top Agents:
  • analyzer (idle)
  • executor (idle)

Agent States

  • idle - Agent is available but not running
  • running - Agent is currently executing
  • error - Agent encountered an error
  • disabled - Agent is disabled and cannot run

Options

--status <STATUS>     Filter by status (idle, running, error, disabled)
--format <FORMAT>     Output format (table, json) [default: table]
--params <PARAMS>     JSON parameters for agent execution
--version             Show version and exit

Environment

The CLI respects these environment variables:

  • COLLET_HOME - Home directory for agent configuration (default: ~/.collet)
  • COLLET_VERBOSE - Enable verbose logging (any value enables)

License

Apache-2.0

Support

For issues and questions, visit: https://github.com/collet/collet-ext

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

collet-0.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

collet-0.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file collet-0.0.1.tar.gz.

File metadata

  • Download URL: collet-0.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for collet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d699d3d8f7181646eac8c2ce0e5ac583135e2ddc98ae595391cc6511168c4439
MD5 09bdb8a59cccea9451daf4cbb5a3ad04
BLAKE2b-256 073c5c779201e9ea9ab7f30c0ad7414a4d25181fa4450c07c3f3bf38e91040b8

See more details on using hashes here.

File details

Details for the file collet-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: collet-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for collet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8877bc78472383c37eca523beb2cc6727ca7ec5ba6af5e9c80cea4267b73856b
MD5 2cec880d42dae0b4b7e9f546d8ca9ffb
BLAKE2b-256 38c76c68945ed957b8ed773d24a3f39ed9116a688d52cd22c0765ab706e5cee4

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