gptme-runloops

v0.1.0 Python-based run loop framework for autonomous AI agent operation packages/gptme-runloops View on GitHub

run-loops

Python-based run loop framework for autonomous AI agent operation.

Overview

This package provides infrastructure for running autonomous AI agents with:

Installation

uv pip install -e packages/run_loops

Usage

CLI

# Run autonomous loop
run-loops autonomous --workspace /path/to/workspace

# Run project monitoring
run-loops project-monitoring --workspace /path/to/workspace

# Run email monitoring
run-loops email --workspace /path/to/workspace

Python API

from run_loops.autonomous import AutonomousRunner
from run_loops.project_monitoring import ProjectMonitor
from run_loops.email import EmailRunner

# Create and run autonomous loop
runner = AutonomousRunner(workspace="/path/to/workspace")
runner.run()

# Monitor GitHub projects
monitor = ProjectMonitor(workspace="/path/to/workspace")
monitor.run()

Components

Autonomous Runner (autonomous.py)

Main autonomous operation loop that:

Project Monitor (project_monitoring.py)

GitHub monitoring that:

Email Runner (email.py)

Email-based communication that:

Utilities (utils/)

Configuration

Run loops are typically configured via systemd timers:

# Example timer for autonomous runs
~/.config/systemd/user/agent-autonomous.timer

See dotfiles/.config/systemd/user/ in agent workspaces for examples.

Requirements

License

MIT