Retrieved article excerpt
Open article · Retrieved 2026-11-08T15:21:04.760257+00:00
# [Loop logo](https://github.com/j-asefa/loop/blob/main/public/icon-192.png) Loop: your coding agents, from your phone
Your coding agents run in a terminal on your computer. Loop puts their work on your phone: a feed of finished results you can read and reply to, questions they need answered, and approvals they're waiting on — what needs you always on top. No account, no server, no app store. Loop runs on your own machine, pairs with a QR scan, and connects to the harnesses you already use — Codex, Claude Code, Pi, OpenCode, Antigravity, Muse Code, Grok Build, or any ACP agent. Your agents keep working while your phone is away.
| Needs you: approve, answer or continue | Feed: finished work as results |
| --- | --- |
| [The top of the Loop Feed: agent shortcuts and a Needs you card asking to approve @orion's pull request review on acme/storefront #42](https://github.com/j-asefa/loop/blob/main/docs/screenshots/needs-you.png) | [The Feed's Done tab: result cards from @orion, a review of pull request #42, and @bug-hunter, the root cause of order totals off by a cent](https://github.com/j-asefa/loop/blob/main/docs/screenshots/feed.png) |
| Result: read and reply | Saved: results worth keeping, labelled |
| [A result from @bug-hunter using Kimi K3.1 Pro: the order-total fix, linked pull request and Reply action](https://github.com/j-asefa/loop/blob/main/docs/screenshots/result.png) | [Saved under Your profile: a searchable list with labels such as Rounding fix and Review before merge, each result with Reply, Saved, Remind me and File](https://github.com/j-asefa/loop/blob/main/docs/screenshots/saved.png) |
| Agent profile: one agent's work | Your profile: a history of your prompts |
| [The @orion agent profile: its tagline, Claude Opus 5.5 model, computer, team and current work awaiting approval, above its results](https://github.com/j-asefa/loop/blob/main/docs/screenshots/agent-profile.png) | [Your profile: robot avatar, banner, name, handle, bio and counts, above the Messages tab showing a prompt you sent to @orion](https://github.com/j-asefa/loop/blob/main/docs/screenshots/your-profile.png) |
Screenshots use illustrative sample data, captured from Loop’s UI. Regenerate them with `node scripts/readme-screenshots.mjs` after building the UI.
## Behind the name
Loop is named for the song I played on loop for my son: “Ol’ ’55,” his favourite, and the only song that would get him to sleep. I built Loop while he slept in my arms.
## Why Loop
- 🗂️ **A record of results, not a chat log.** Finished answers arrive as cards in one Feed (what needs you on top, then **Done**, **Working**, **Queued**, **Threads**, **Replies**); plans, diffs, command output and traces stay one tap away. Run several agents and conversations at once and follow them through the Feed, Projects and Search. Phone notifications arrive when a result is ready, not for every tool call. See [workspace](https://github.com/j-asefa/loop/blob/main/docs/workspace.md) and [notifications](https://github.com/j-asefa/loop/blob/main/docs/workspace.md#notifications).
- 🔌 **The harnesses you already have.** `loop` discovers Codex, Claude Code, Pi, OpenCode, Antigravity, Muse Code and Grok Build on your computer and connects their native adapters in one workspace; custom ACP agents can be added too. Each keeps its own context, tools, sign-in and model configuration, including [local models through Pi or OpenCode](https://github.com/j-asefa/loop#use-local-models). Loop verifies the harness billing policy and never switches billing methods after a failure. See [harnesses](https://github.com/j-asefa/loop/blob/main/docs/harnesses.md).
- 🏠 **On your own computer: no account, no server.** Agents run on your machine and keep working after your phone disconnects. Scan a QR code, pair in your phone's browser and add Loop to your home screen: no app store and no account signup, on iPhone and Android. `loop start` launches a [Cloudflare Quick Tunnel](https://developers.cloudflare.com/tunnel/get-started/quick-tunnels/) through a pinned, hash-verified `cloudflared`, so your phone reaches your computer from anywhere without port forwarding, a domain, a VPN or a Cloudflare account. Restarts and upgrades keep the address and your paired phone; if it changes (after `loop stop` or a reboot), run `loop pair` and scan again. Only paired devices can sign in, and you can revoke them. Traffic is HTTPS but not end-to-end encrypted: with the default Quick Tunnel, Cloudflare terminates TLS, so use `--public-url` with your own TLS proxy if that matters to you. See [pairing](https://github.com/j-asefa/loop/blob/main/docs/pairing.md) and [SECURITY.md](https://github.com/j-asefa/loop/blob/main/SECURITY.md).
- 🔖 **Save what matters.** Save any result or message from its Feed card or inside its thread; saving a reply keeps the result card it produced with it. Saved, under Your profile, is one searchable list, newest first, with optional short labels such as "Chosen approach". Reply to a saved item to quote it back into its thread, so it is the latest thing the agent reads. See [Saved](https://github.com/j-asefa/loop/blob/main/docs/workspace.md#your-profile-later-and-deferred-work).
- ↩️ **Reply to any message, or just part of it.** Loop quotes the message you picked, or only the lines you highlight, in front of your reply, so that exact update is back in front of the agent even if the harness's own history no longer has it. Mid-run, API, Codex, Claude Code, Pi and Muse Code agents support live replies; OpenCode, Antigravity, Grok Build and ACP queue replies for the next turn.
- ⏱️ **Built for checking in, not sitting in.** Each Feed card offers the one action its thread is waiting for (approve, answer, continue a draft or review a result) and opens at that message. A "while you were away" card sums up what finished, failed or needs you. **Remind me**, **Send later** and **Queue after this task** pick work up when the agent is free, and scheduled sends reuse their idempotency key, so a retry after a crash never sends twice.
- 🤝 **Teams.** A manager agent delegates to worker agents. Presets cover **Review code changes**, **Ask an LLM council**, **Build a feature** and **Investigate a bug**, and you can build a custom team from existing agents. Review and merge your GitHub pull requests in the Pull requests tab. See [teams](https://github.com/j-asefa/loop/blob/main/docs/workspace.md#teams).
- 📶 **Built for flaky phone connections.** Loop records each send before dispatching it, never automatically replays an uncertain one, and catches up on missed updates after a reconnect. See [architecture](https://github.com/j-asefa/loop/blob/main/docs/architecture.md).
- 🧪 **Several computers, one workspace (experimental).** Fleets connect companion machines and are off unless you start Loop with `--fleet`. See [fleets](https://github.com/j-asefa/loop/blob/main/docs/pairing.md#fleets-experimental).
## Setup
Loop runs on macOS and Linux. You need:
- **Node.js 24**. The package accepts Node 22.19 or newer, but CI tests Node 24.
- **Python 3.8+** on Linux, for [command supervision](https://github.com/j-asefa/loop/blob/main/docs/development.md#command-supervision).
- At least one [coding harness](https://github.com/j-asefa/loop#use-a-coding-harness) installed and signed in.
- A persistent disk, and a computer that stays awake while you use Loop from your phone.
Git is used for agents working in Git repositories, and Docker only for container execution. Loop downloads `cloudflared` for the phone connection itself.
```
npm install -g @j-asefa/loop
loop start
```
To update an npm installation later, run `loop upgrade --from @j-asefa/loop@latest`; see [Pair your phone](https://github.com/j-asefa/loop#pair-your-phone) for what an upgrade keeps.
To work on Loop itself, [build from source](https://github.com/j-asefa/loop#build-from-source) instead.
`loop start` prints a single-use pairing code. Scan it with your phone's camera:
[Illustrative fixture terminal output of loop start: workspace ready, pairing instructions, a QR code and the trycloudflare.com pairing link](https://github.com/j-asefa/loop/blob/main/docs/screenshots/loop-start.png)
The terminal screenshot uses an isolated fixture tunnel; its pairing link is no longer active.
## Install on your phone
1. On your computer, run `loop start`. It starts the workspace and displays a pairing QR code.
2. Scan the QR code with your phone's camera. The link opens Loop's pairing page in your default mobile browser. Tap **Pair and open Loop**.
3. In the browser, open **Share** and choose **Add to Home Screen**. On Android browsers, this may appear as **Install app** or **Add to Home screen** in the browser menu.
4. Open Loop from the new home screen icon.
The computer must stay awake for phone access. Pairing links are single use and expire after two minutes; run `loop pair` for a fresh code. `loop restart` and `loop upgrade` keep the Quick Tunnel address; after `loop stop` or a reboot it can change, so scan a new code and add the new page to your home screen. See [pairing and recovery](https://github.com/j-asefa/loop/blob/main/docs/pairing.md).
## Use a coding harness
Install Codex, Claude Code, Pi, OpenCode, Antigravity, Muse Code or Grok Build on your computer, configure its model provider (or sign in for a cloud account), then run `loop` in your project directory. Loop discovers supported installed harnesses and connects their direct native adapters. Each harness uses your existing model configuration and credential home; cloud accounts only need a fresh sign-in if they cannot be verified. Sign-in and runtime status are also available in Settings → Provider connections.
```
loop
loop start --project /absolute/path/to/project
```
Each harness keeps its native tools and context. Agents owned by the same user in one Loop workspace can discover, message and hand work to one another across harnesses, with shared file references and durable delivery receipts. Team managers can also delegate work. Antigravity currently supports individual conversations; see its [setup and limitations](https://github.com/j-asefa/loop/blob/main/docs/harnesses.md#antigravity). Inspect threads and resume held messages from each profile’s Agent mail tab. Codex, Claude Code, Pi and Muse Code support live steering; OpenCode, Antigravity, Grok Build and ACP queue follow-ups.
The workspace and pairing are available while each harness is verified independently. Missing harnesses are not installed automatically. A failed account check leaves that harness unavailable without blocking the others.
Use `loop start --providers codex,claude,pi` to limit discovery. Explicit `loop codex|claude|pi|opencode|antigravity|muse|grok|acp` commands support custom executables and native options. Use the Docker companion for container execution. See [harnesses](https://github.com/j-asefa/loop/blob/main/docs/harnesses.md) for billing and connection recovery.
Manage OpenCode and Pi provider credentials from **Settings → Provider connections → Harnesses → Manage providers**. Add an OpenRouter or OpenAI key, or use a provider's sign-in flow, and Loop refreshes that harness's model choices. Keys stay in each harness's native store. See [model provider settings](https://github.com/j-asefa/loop/blob/main/docs/harnesses.md#opencode-and-pi-model-providers).
## Use local models
Use Pi or OpenCode connected to a local model server, such as Ollama, LM Studio or llama.cpp. Loop uses the harness's existing model configuration, so a local-model agent does not require a paid model API or subscription.
1. Start your local model server and load a model suitable for tool use and coding.
2. Configure and select that model in [Pi](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/models.md) or [OpenCode](https://opencode.ai/docs/providers/). Confirm it works in the harness's CLI first.
3. From your project directory, connect that harness to Loop:
```