gptme-runloops

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

gptme-runloops

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/gptme-runloops

Usage

CLI

The primary entrypoint is gptme-runloops:

# Run autonomous loop
gptme-runloops autonomous --workspace /path/to/workspace

# Run project monitoring
gptme-runloops monitoring --workspace /path/to/workspace

# Run a single project-monitoring work item
gptme-runloops run-item \
  --workspace /path/to/workspace \
  --work-file /path/to/work-item.jsonl \
  --backend gptme

# Run email monitoring
gptme-runloops email --workspace /path/to/workspace

# Run team coordination
gptme-runloops team --workspace /path/to/workspace

Python API

from gptme_runloops.autonomous import AutonomousRun
from gptme_runloops.project_monitoring import ProjectMonitoringRun
from gptme_runloops.email import EmailRun

Components

Core Run Loops

autonomous.py — Main autonomous operation loop

project_monitoring.py — GitHub monitoring

email.py — Email-based communication

team.py — Multi-agent team coordination

run_item.py / run_item_config.py — Single run-item executor and config

PM Infrastructure

merge_lifecycle.py — PR merge lifecycle state machine

pm_bandit.py — Bandit-based project monitoring dispatch

pm_dispatch.py — Dispatch logic for PM work items

prompt_templates.py — Structured prompt templates for agent runs

worker_records.py — Worker session record tracking

PR Review (pr_review/)

Phase 0 tooling for evaluating PR reviewer models before deployment:

Phase 1 (in progress): CLI runner that produces ReviewArtifact JSON locally without publishing to GitHub.

Utilities (utils/)

Configuration

Run loops are configured via systemd timers. See dotfiles/.config/systemd/user/ in agent workspaces for examples.

Requirements

License

MIT