Skip to main content

Protocol-driven agent loops for shipping real code with less babysitting.

Project description

Autoloop

Protocol-driven agent loops for shipping real code with less babysitting.

Autoloop is a stateful orchestration runtime for repository work. It runs plan, implement, and test producer/verifier pairs with durable state, resumable runs, phase scoping, provider-neutral sessions, and git-backed checkpoints.

Requirements

  • Python 3.10+
  • One supported provider CLI:
    • codex for provider.name: codex (default)
    • claude for provider.name: claude, with local claude auth status already working
  • git is optional when running with --no-git

Install

Install from PyPI:

python3 -m pip install autoloop
autoloop --help

Install from this repository:

python3 -m pip install -e .
autoloop --help
python3 -m autoloop --help

Or use the bundled installer:

./install_autoloop.sh

The installer sets up Autoloop itself and the packaged skill, but it does not install provider CLIs for you. Install codex or claude separately based on the provider you plan to run. Reruns are intentionally conservative: use ./install_autoloop.sh --dry-run to preview changes, --overwrite to replace an existing launcher or skill file, --recreate-venv to replace an existing virtualenv, and --skill-target both|codex|agents|none to control where the packaged skill is installed.

Quickstart

Put config in either:

  • ~/.config/autoloop/autoloop.yaml (or $XDG_CONFIG_HOME/autoloop/autoloop.yaml) for global defaults
  • /path/to/workspace/autoloop.yaml for workspace-local overrides

Minimal Codex config:

provider:
  name: codex

Minimal Claude config:

provider:
  name: claude

First run:

autoloop --workspace /path/to/workspace --intent "Describe the task you want shipped"

Expected success artifacts under the workspace:

  • .autoloop/tasks/<task-id>/request.md
  • .autoloop/tasks/<task-id>/runs/<run-id>/raw_phase_log.md
  • .autoloop/tasks/<task-id>/runs/<run-id>/events.jsonl

Useful follow-up commands:

autoloop --workspace /path/to/workspace --list-tasks
autoloop --workspace /path/to/workspace --task-id <task-id> --resume

Troubleshooting:

Symptom Fix
codex is missing for the default setup Install Codex with npm i -g @openai/codex, or switch to provider.name: claude and verify claude auth status.
autoloop command is not found after running the installer Add the installer bin directory to PATH, or run python3 -m autoloop --help from the repo checkout.
Autoloop is not picking up your config Put exactly one autoloop.yaml or autoloop.config file in the global config directory or workspace root.
git is unavailable Install git, or run Autoloop with --no-git if you do not need checkpoints.

Configuration

Autoloop reads configuration from these directories, in this order:

  1. $XDG_CONFIG_HOME/autoloop/ or ~/.config/autoloop/
  2. the selected workspace root passed to --workspace

Within each directory it looks for:

  • autoloop.yaml
  • autoloop.config
  • legacy read-only fallback: superloop.yaml
  • legacy read-only fallback: superloop.config

If more than one config file exists in the same directory, Autoloop fails fast instead of guessing.

Use the nested provider shape for new configs:

provider:
  name: codex
  codex:
    model: gpt-5.4
    model_effort: null
  claude:
    model: null
    effort: null
    permission_strategy: inherit
runtime:
  pairs: plan,implement,test
  max_iterations: 15
  phase_mode: single
  intent_mode: preserve
  full_auto_answers: false
  no_git: false

Notes:

  • Legacy flat Codex keys provider.model and provider.model_effort are still read for backward compatibility.
  • --model and --model-effort are Codex-only CLI overrides.
  • Claude defaults intentionally inherit the operator's existing Claude Code environment. Default Claude runs do not add strict mode, --bare, tool restriction flags, or stream-json.
  • runtime.full_auto_answers now uses the active provider instead of being Codex-only.

Runtime State

Fresh runs write state under .autoloop/.

For the first Autoloop release, resume and task listing can still read legacy .superloop/ workspaces when no .autoloop/ state exists for the requested task or run.

Session files now store provider-neutral provider and session_id fields. Legacy Codex session files that only contain thread_id remain load-compatible.

Claude Validation

Maintainer live-validation steps for inherited-environment Claude repos and resume config-drift checks are recorded in docs/claude_rollout_checklist.md.

Skill

The packaged Autoloop skill lives at src/autoloop/skill/SKILL.md.

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

autoloop-0.1.1.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

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

autoloop-0.1.1-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

File details

Details for the file autoloop-0.1.1.tar.gz.

File metadata

  • Download URL: autoloop-0.1.1.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for autoloop-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8268c805c448122b40a78c55a5e65897a8ec9bf7624e528c4a39208c7fde2c9f
MD5 f7843c9466f58221b623db69bf6071ad
BLAKE2b-256 07f4e521c13a3ca28ea2ea7ce0a00cd65a115d0f30530fae5dbea1a85a781d2b

See more details on using hashes here.

File details

Details for the file autoloop-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: autoloop-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 61.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for autoloop-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41ad7ea1a40e2736e10b3078214287fed81b0cb0c8557105879be2b52de0f4f4
MD5 c6627c67b0205f341315862881291c39
BLAKE2b-256 6133f410f3147a1a02791859744058ab85c656f09a8b3e7cd28849c2167d57c4

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