Yirifi Ops Claude Code Agent
A standalone agent that executes Claude Code tasks dispatched from the Yirifi Ops Dashboard.
Installation
pip install yirifi-ops-code-claude-agent
# or
git clone https://github.com/yirifi/yirifi-ops-code-claude-agent
cd yirifi-ops-code-claude-agent && pip install -e .
Quick Start
-
Configure the agent with your API token:
export FLASK_URL=http://your-dashboard-url export AGENT_API_TOKEN=your-api-token
-
Start the agent:
# Polling mode (simpler, works with any network) yirifi-claude-agent --mode polling # Or using python module python -m yirifi_ops_code_claude_agent.run --mode polling # WebSocket mode (lower latency, requires direct connection) yirifi-claude-agent --mode websocket
Operating Modes
Polling Mode (Default)
- Polls a Redis queue for tasks at regular intervals
- Works with any network setup
- Simpler to configure and debug
- Slightly higher latency
WebSocket Mode
- Maintains persistent WebSocket connection
- Tasks are pushed directly to the agent
- Lower latency
- Requires direct network connectivity to dashboard
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
FLASK_URL |
Dashboard server URL | http://localhost:5000 |
AGENT_API_TOKEN |
Authentication token | (none) |
AGENT_NAME |
Unique agent name | claude-agent-1 |
AGENT_MODE |
Operating mode | polling |
REDIS_URL |
Redis connection URL | redis://localhost:6379/0 |
CLAUDE_PATH |
Path to Claude CLI | claude |
LOG_LEVEL |
Logging level | INFO |
Command Line Options
yirifi-claude-agent --help
Options:
--mode {polling,websocket} Operating mode (default: polling)
--name NAME Agent name (default: claude-agent-1)
--flask-url URL Flask server URL
--redis-url URL Redis URL (for polling mode)
--mock Use mock executor for testing
-v, --verbose Enable verbose logging
Requirements
- Python 3.11+
- Claude Code CLI installed (
claudecommand available) - Redis (for polling mode)
- Network access to Yirifi Ops Dashboard
Development
# Clone the repository
git clone https://github.com/yirifi/yirifi-ops-code-claude-agent
cd yirifi-ops-code-claude-agent
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Run linting
ruff check .
License
MIT
Metadata
Release files for yirifi-ops-code-claude-agent 0.1.5
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 |
|---|---|---|---|---|
| yirifi_ops_code_claude_agent-0.1.5.tar.gz | 30.5 kB | Without provenance | Details for yirifi_ops_code_claude_agent-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yirifi_ops_code_claude_agent-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for yirifi_ops_code_claude_agent-0.1.5-py3-none-any.whl |
Total release size: 53.6 kB
Release files / yirifi_ops_code_claude_agent-0.1.5.tar.gz
| Download URL | yirifi_ops_code_claude_agent-0.1.5.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a35c989c23ed298f6c3d88b3fc95562b31e6b6f5d7807e3519848e3abf6f24a
|
|
BLAKE2b-256 checksum How to use checksums |
56cd1b9a2c0d5629575355bd108aa13e7be75297b7c4997508bd5c5610d68c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / yirifi_ops_code_claude_agent-0.1.5-py3-none-any.whl
| Download URL | yirifi_ops_code_claude_agent-0.1.5-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0e565c3c5c9ab95ec2b8d5d9de374d531c6af1ffc001b6066f655f1af845d48
|
|
BLAKE2b-256 checksum How to use checksums |
7e8db128a568475c15cd6567c66c62ab85c5346b4c584346da2fbbed87dbc6d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for yirifi-ops-code-claude-agent 0.1.5
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.