Nib
The fastest way for humans to review AI-generated software.
Nib is the human-decision layer for autonomous software. Software sends a portable request containing evidence, policy, and the decision it needs. A human or review agent returns a structured decision that the originating software can consume.
Tests verify behavior. Nib verifies intent.
const decision = await nib.request({
title: "Approve checkout redesign",
artifacts,
}).wait();
The protocol, .nib format, CLI, SDKs, reviewer, and integrations are open source under Apache 2.0. Nib Cloud provides the managed network, billing, routing, delivery, and organization controls. See the protocol, hosted request API, and open-core boundary.
Installation
macOS (Homebrew)
brew install douglance/tap/nib
Download Binary
Download the latest release for your platform from the Releases page.
Build from Source
Requires Rust 1.88+
git clone https://github.com/douglance/nib.git
cd nib
cargo build --release
Binary will be at target/release/nib.
Quick Start
# Capture a screen region
nib capture
# Open GUI editor
nib gui image.png
# Add annotation via CLI
nib add-annotation image.png -t rectangle -x 100 -y 100 -w 200 -H 50 -c "#ff0000"
# Render annotations onto image
nib render image.png
# Generate a UI image through the hosted service
export NIB_ACCESS_TOKEN="nib_live_..."
nib generate "A compact dark fleet analytics dashboard" --output dashboard.png
Commands
| Command | Description |
|---|
capture | Capture screen region interactively |
generate | Generate one UI image through the hosted Nib service |
gui <image> | Open GUI annotation editor |
add-annotation | Add annotation headlessly |
remove-annotation | Remove annotation by ID |
clear-annotations | Remove all annotations |
render | Bake annotations into image |
read | Extract QML from annotated image |
validate | Check QML syntax validity |
find-text | OCR text search in image |
grid | Add coordinate grid overlay |
feedback | Wait for human feedback in GPUI or a full-color terminal review window |
review | Open an existing feedback session in the terminal reviewer |
request create | Publish a durable request and return its request ID and review link |
request get | Read the current canonical request state |
request wait | Wait for a final structured decision without keeping CI alive |
request watch | Read replayable request events |
request approve, request reject, request request-changes | Submit a machine-readable decision |
pack, unpack, inspect | Create, extract, or inspect a portable SQLite .nib request pack |
watch | Watch a .nib file for annotation changes |
list | List recent captures |
info | Show image and annotation details |
Create a request directly from protocol JSON:
nib request create request.json
# { "request": { "id": "req_..." }, "reviewLink": "https://nibtool.com/r/..." }
nib request wait req_...
The GitHub Action, TypeScript SDK, Playwright reporter, Cypress adapter, and
delivery adapters live in integrations and packages.
Review links work in a browser without installing Nib or creating an account.
CLI Annotation Workflow
# 1. Capture screenshot
nib capture -o shot.png
# 2. Add annotation
nib add-annotation shot.png -t rectangle -x 100 -y 100 -w 50 -H 30 -c "#ff0000"
# Output: Added annotation [a1] rectangle at (100, 100)
# 3. Render to see result
nib render shot.png
# Output: shot.rendered.png
# 4. If wrong, remove and retry
nib remove-annotation shot.png a1
# 5. When done, clear all if needed
nib clear-annotations shot.png
Image-First Feedback Loop (Fast)
Nib is designed for image-based communication. After each annotation event, the agent must inspect the image (zoom first, then full if unclear).
# Publish to a configured Nib portal, then wait for the first response.
# If the portal is unavailable, auto falls back to terminal review in tmux or the GUI.
nib feedback shot.png -t 120
# Require a configured web reviewer (no local fallback)
nib feedback shot.png --ui web -m "Ship this image?" -t 0
# Keep the agent pane noninteractive while review happens in a temporary tmux window
nib feedback shot.png --ui terminal -m "Ship this image?" -t 0
# Open without blocking, then await the same deterministic .nib session
nib feedback shot.png --ui terminal --detach
nib await-submit shot.nib --feedback -t 0 --json
# Zoom in around the annotation (x1,y1,x2,y2)
nib grid shot.rendered.png --region "1900,650,2300,850" -o shot.zoom.png