v0.2.1 // Claude + Gemini + Codex

iter-loop

Iterative Multi-Engine AI Orchestration

Combine Claude, Gemini, and Codex in a quality-scored iteration loop. File-based event bus. Multi-agent orchestration. Zero external dependencies.

$ npm install -g @lawrence369/iter-loop click to copy

Quality-scored iteration loop

Your task enters a feedback loop. An executor builds, a reviewer scores, and the cycle repeats until quality passes your threshold.

Input Task
Executor Claude
Result Output
Reviewer Gemini
Result Score
Score ≥ 9?
↓ Yes
Done!
Score < 9?
↓ No
Feedback → Repeat
↑ loop feeds reviewer feedback back into executor

Everything you need. Nothing you don't.

>_

Multi-Engine

Claude, Gemini, Codex support. Unified Engine interface. Swap providers with a flag.

Smart Iteration

Quality-scored loop. Auto-approve at threshold. Configurable max iterations and scoring.

>|

Event Bus

File-based JSONL. Crash-safe. Git-friendly. Zero dependencies. Survives restarts.

</>

Multi-Agent

Background daemon. IPC orchestration. Activity-aware routing between agents.

#!

Skills System

Executable markdown. Auto-injected prompts. Extensible skill library.

[]

Terminal Adapters

Terminal.app, iTerm2, tmux, PTY. Pluggable backends. Works everywhere.

Up and running in seconds

iter-loop — zsh
# Install
$ npm install -g @lawrence369/iter-loop

# Interactive mode
$ iter-loop

# Direct execution
$ iter-loop "Build a REST API with Express" --executor claude --reviewer gemini

# Agent wrappers
$ lclaude    # Claude in loop mode
$ lgemini    # Gemini in loop mode

# Management
$ iter-loop daemon start
$ iter-loop bus status
$ iter-loop chat

Clean layers. Zero coupling.

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
   CLI UI           Core Loop          Engines   
  @clack     ────  executor   ────  Claude     
  blessed           reviewer          Gemini     
  dashboard         scoring           Codex      
└─────────────┘     └──────┬──────┘     └─────────────┘
                           
                    ┌──────┴──────┐
                      Event Bus  
                      JSONL      
                      queues     
                    └──────┬──────┘
                           
              ┌────────────┼────────────┐
                                      
       ┌─────────┐  ┌───────────┐  ┌───────────┐
        Agents    Orchestrator   Terminal  
        PTY        Daemon       Adapters  
        wrapper    IPC          tmux/iTerm
       └─────────┘  └───────────┘  └───────────┘

Why iter-loop?

Feature Individual CLIs iter-loop
Multi-engine Manual switching Unified interface
Quality control None Auto-scored iteration
Agent coordination Copy-paste Event bus + IPC
Context sharing Manual Shared plan file
Background work Not possible Daemon + orchestrator