Claude Code Agent for Yirifi Ops Dashboard - AI-assisted coding task execution
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yirifi_ops_code_claude_agent-0.1.0.tar.gz.
File metadata
- Download URL: yirifi_ops_code_claude_agent-0.1.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb16c7dba32b0ac71cc749b95bc6d6376421cb3db96dde471a47e8f418bbecc
|
|
| MD5 |
337aafa126cc85e3b7225b687d3ef3f6
|
|
| BLAKE2b-256 |
782977e3c940fcd8406f6de254df2482bf9f909ac05543ad9c860ee45fde3641
|
File details
Details for the file yirifi_ops_code_claude_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yirifi_ops_code_claude_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87f5acf88ac2d0c4b5d650907c1ef4d1d6d2359409072ab3bea29034d95d0519
|
|
| MD5 |
95ea56077a3c745613f67fd04bb5de99
|
|
| BLAKE2b-256 |
90d27ddb42c6b08eea7f06e69007659131d6c6fd754f0c0781f16720dec99614
|