AI product Open source
loop.js is a TypeScript framework and CLI for loop engineering: it runs an agent against a declared goal and verification criterion until a separate, skeptical Verify agent judges the work complete. Each round starts with fresh context and reads state and handoff notes from disk; the worker agent cannot approve its own work, and a failed verification supplies a reason for the next round.
The framework provides round, spending, and per-round timeout guards; typed exits; crash recovery; idempotent resumption from a stored cursor; and a compare-and-set lock with heartbeat to prevent overlapping live runs and take over dead ones. It can run from a terminal, be embedded in a product, or be scheduled through crontab, launchd, Task Scheduler, or Modal's cloud.
1 use taken from transcripts — each links to the moment in the video.
A TypeScript framework and CLI that runs an AI agent repeatedly until a separate verification agent confirms the work is complete. It supports fresh context, disk-based state, handoff notes, resource guards, crash recovery, and scheduled runs.
1 in the library.