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:
-
analyzer
- Code analysis and insights agent
- Capabilities: syntax-analysis, complexity-metrics
-
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
Metadata
Release files for collet 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collet-0.0.1.tar.gz | 9.8 kB | Without provenance | Details for collet-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collet-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for collet-0.0.1-py3-none-any.whl |
Total release size: 20.8 kB
Release files / collet-0.0.1.tar.gz
| Download URL | collet-0.0.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d699d3d8f7181646eac8c2ce0e5ac583135e2ddc98ae595391cc6511168c4439
|
|
BLAKE2b-256 checksum How to use checksums |
073c5c779201e9ea9ab7f30c0ad7414a4d25181fa4450c07c3f3bf38e91040b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / collet-0.0.1-py3-none-any.whl
| Download URL | collet-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8877bc78472383c37eca523beb2cc6727ca7ec5ba6af5e9c80cea4267b73856b
|
|
BLAKE2b-256 checksum How to use checksums |
38c76c68945ed957b8ed773d24a3f39ed9116a688d52cd22c0765ab706e5cee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for collet 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.