autoloop

Iteratively propose edits, run experiments, and commit metric improvements.

23|4|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/marlandoj/zouroboros --skill autoloop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autoloop
Source: https://github.com/marlandoj/zouroboros/tree/main/packages/workflow/docs/autoloop
Command: npx skills add https://github.com/marlandoj/zouroboros --skill autoloop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Autoloop removes the manual, repetitive process of iterating code or configuration changes to improve a single numeric metric by automating propose→run→measure→commit loops and handling regressions automatically.

Core Features & Use Cases

  • Autonomous Optimization Loop: Continuously proposes edits to one target file, runs experiments, extracts a numeric metric, and keeps only improvements via git commits while reverting regressions.
  • Resilience & Guardrails: Stagnation detection, retry/fix attempts on crashes, and cost/duration/experiment limits prevent runaway runs.
  • MCP Management: Exposes MCP tools to start, monitor, list, stop, and fetch results for campaigns, enabling integration with AI assistants and services.
  • Use Cases: Trading backtests, prompt optimization, site performance tuning, hyperparameter experiments, or any workflow with a single clear numeric metric and a non-interactive run command.

Quick Start

Start an autoloop campaign by running bun Skills/autoloop/scripts/autoloop.ts --program /path/to/your/project/program.md to iterate edits, run experiments, measure the metric, and persist improvements via git commits.

Frequently Asked Questions about autoloop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative code edits to optimize a single numeric metric?

Automating iterative code edits to optimize a single numeric metric requires a continuous propose, run, and measure loop. This Skill autonomously proposes file edits, runs experiments, extracts metrics, and commits improvements via git while reverting regressions.

Can I use an autonomous optimization loop for trading backtest experiments?

Yes, you can use an autonomous optimization loop for trading backtest experiments. It supports any workflow with a clear single numeric metric and a non-interactive run command, including prompt optimization and site performance tuning.

How do I start an autonomous metric optimization campaign?

To start an autonomous metric optimization campaign, run the autoloop script with a path to your program.md file. This program.md must define your target file, run commands, and extract commands within a git repository.

Do I need a git repository to run autonomous experiment loops?

Yes, you need a git repository to run autonomous experiment loops. The optimization process relies on git commits and branch management to persist metric improvements and automatically revert regressions.

What guardrails prevent runaway automated optimization loops?

Stagnation detection, retry attempts on crashes, and cost, duration, and experiment limits prevent runaway automated optimization loops. These guardrails ensure campaigns stop automatically when hitting constraints or failing to improve.

How does MCP integration work for monitoring optimization campaigns?

MCP integration for monitoring optimization campaigns exposes tools to start, monitor, list, stop, and fetch results. This enables direct integration with AI assistants and external services to manage campaign states.