loopexec
Overview
LoopExec is a deterministic runtime for bounded agentic execution loops. Work progresses through an external check and stops on a computed reason - never because an agent says it is done.
Supply a work command and an external check. LoopExec bounds execution, detects regression, no progress and oscillation, applies integrity guards, and records replayable receipts. Opt-in workflows add usage evidence, scoped model-call budgets and candidate restoration. Isolation orchestration composes with operator-provided container, egress and credential hooks.
The runtime governs execution; adapters supply models, checks and infrastructure. Synthetic creative examples prove runtime mechanics, not production model quality. Observed spending cannot enforce a provider-side cap, a signature file requires explicit verification, and retaining a candidate does not establish owner acceptance.
Getting Started begins with an offline deterministic proof. SMALL describes plans, constraints, progress and handoff; LoopExec drives one bounded loop. SMALL is optional for consumers.
The normative contract is SPEC.md. The current source implements bounded execution, determinism probing, integrity and regression guards, offline-verifiable receipts, and opt-in unattended workflows. See SPEC.md section 11 for the implemented scope and remaining sub-parts.
Current status
Source identity: v0.5.0-rc.4, a recipe-enabled release candidate preserving RC2 recovery and adding visible model profiles and task/role assignments. See candidate notes and recovery/continuation. Stable promotion is held pending complete live accounting, recovery and independent review delivery; the Releases page establishes publication status. Workflow thresholds remain supplied by each integration.
LoopExec Recipes
All 33 LoopExec recipes are available in the v0.5.0-rc.4 candidate: discover a task, supply its inputs, bind a builder and independent checker, then run with finite limits and verify its receipt. Export 33 skills and Pi prompts from the same catalog. See recipes and live configuration.
60-second proof
Run the built-in deterministic demo with no model, API key, Python runner, or network access:
loopexec demoThe command creates a red local fixture, sends it through the real bounded loop, repairs it, observes the external check turn green, writes a typed JSONL receipt, and verifies the recorded check fingerprint through the same verifier used by loopexec replay. It proves the execution/check/receipt/replay contract, not agent intelligence.
For your own work command and check, follow Getting Started.
The receipt path in the output identifies the retained temporary workdir. To keep the proof at a known path, pass a fresh directory with --workdir <dir>; demo refuses to overwrite an existing .loopexec directory or status.txt fixture.
Release information
Stable CLI: v0.4.1. These docs also cover preview features in v0.5.0-rc.4.
Use recipes through the LoopExec CLI, or add the optional LoopExec for Pi integration for prompts and skills.