loop.js logo

loop.js

A loop engineering framework — state a Goal; Rounds run until a skeptical, read-only Verify agent settles it.

npmdocs loop  js.mintlify.site
Website GitHub

What is it?

What it is

**Loop.js is the framework for loop engineering.** You state a goal and what "done" means. The engine runs an agent at it, Round after Round —

Why it exists

A loop engineering framework — state a Goal; Rounds run until a skeptical, read-only Verify agent settles it.

Who should use it

Teams building with TypeScript who want an open-source, self-hosted option.

Who should avoid it

Teams that need a fully managed SaaS with enterprise SLAs out of the box.

How it works

A quick walkthrough in plain English

How loop.js works

Step 1 of 3

You interact with it

Open loop.js, send a request, or connect it to your stack.

Features

Agent Framework
Agent Loop
Agent Verification
Ai Agents
Anthropic
Autonomous Agents

Advantages

  • Open source (Apache-2.0)
  • Active TypeScript ecosystem
  • Self-hosted deployment options

Disadvantages

  • Requires operational ownership for self-hosted setups
  • Community support varies by project maturity

Installation

native

**Loop engineering** is designing the system that prompts an agent instead of prompting it
turn by turn: a goal, a way to work, a way to verify, a stop discipline — the loop does the
iterating. loop.js is that system as a framework:
[what is loop engineering →](https://loop-js.mintlify.site/loop-engineering)

## Why loops need a framework

Running an agent in `while (true)` is one line. Whether that loop ever *converges* is
everything around it — and that is the part loop.js owns:

| The pain | The machinery |
| --- | --- |
| The agent says "done" when it isn't | A separate **Verify** agent — own session, own (cheaper, if you like) model, **read-only by default** — judges every Round. Only its verdict settles the Loop; the worker never grades its own homework. |
| Long sessions bloat and d

FAQ

What is loop.js?

loop.js is an open-source project licensed under Apache-2.0.

What language is loop.js built with?

Primary language: TypeScript.

Is it free to use?

Yes. Licensed under Apache-2.0. Check the license for commercial use.

Loading documentation…
View on GitHub

Featured in Videos

YouTube tutorials and walkthroughs for loop.js

Alternatives

Similar projects ranked by category, topics, and text overlap.

Compare
loop.js | MushyBook