Skip to main content

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

  1. Configure the agent with your API token:

    export FLASK_URL=http://your-dashboard-url
    export AGENT_API_TOKEN=your-api-token
    
  2. 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 (claude command 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

yirifi_ops_code_claude_agent-0.1.3.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

yirifi_ops_code_claude_agent-0.1.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file yirifi_ops_code_claude_agent-0.1.3.tar.gz.

File metadata

File hashes

Hashes for yirifi_ops_code_claude_agent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 50e995c3fd44f2f2c2b79e6bbd955f371c5c28ac1fdb45e1204c7850fd19f8a4
MD5 515d640aabe6ebefbfcb168df464e944
BLAKE2b-256 2a89e5162980ed2c0c1a5cae3c54a469ac97e63dc1fdffd789cff3405b7283a0

See more details on using hashes here.

File details

Details for the file yirifi_ops_code_claude_agent-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for yirifi_ops_code_claude_agent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32526cb5f9a8761dfa0da290542060b7f6245caa278d7dddfd63b7e3e85b9ee6
MD5 fab7ad16c9df420a5757a1eb05e2170a
BLAKE2b-256 abe7fc542c46e172c573e62e2f01bc7898c3e14c375268871babb0cf7bce0657

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