AI product Open source

loop.js

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.

View repository Visit site Mentioned in 1 video ↓

Overview

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.

What loop.js is used for

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.

Videos mentioning loop.js

1 in the library.