UnifyApps Headless
Logo
What a loop is

What a loop is

Logo

3 mins READ

A loop runs a whole piece of work from start to end. This page explains what a loop does, why it helps, and how to start one.

Before you start

  • A folder set up with /ua:setup. In Codex, type $ua:setup.

Why loops exist

A small change is quick. You ask in chat, and UnifyApps Headless builds it and reads it back.

Bigger work needs more care. A page must match its design. A feature must do what you asked. A fix must really fix the problem.

A loop handles this for you. It plans the work, builds it, and checks the result. When the check finds a problem, it fixes it and checks again. It stops only when the work is done.

So at the end you get proof, not just a claim. You see what was checked and what passed.

The loop runs Plan → Build → Check → Fix, then goes back to Check — repeats while the check finds a problem. It is done when the check passes.

The 5 loops

There are 5 loops. Each one is for a different kind of job.

  • Build loop: Build a page, a feature or a ticket, with proof that it works.

  • Repair loop: Fix what is wrong. It finds the problem first, then fixes and retests.

  • Scope loop: Turn an idea or call notes into a plan and tickets.

  • Test loop: Write, automate and run tests for a web app or an AI agent.

  • Review loop: Review a finished app before a demo or go-live.

Each loop first works out what your ask is about. It might be a web page, a mobile app, an AI agent or an automation. Then it runs the right steps for that thing.

Typing a loop or saying it in words

You can start a loop in two ways.

Step 1: Type the loop

Type the loop name, then say what you want after it.

/ua:build-loop Build the Purchase Orders list page from this Figma: <link>

Step 2: Or just say it

You can also just say the job in your own words. UnifyApps Headless picks the right loop for you.

Fix the approval automation

Both ways do the same work. Use the one you like.

Agent

How to start a loop

Claude Code, OpenCode, Gemini CLI

Type /ua:build-loop and the other loop names

Codex

Type $ua: instead of /ua:, for example $ua:build-loop

GitHub Copilot CLI

Ask in words, for example "build this page from the Figma"

Tip: Not sure which loop you need? Just describe the job. You do not need to know the loop names.

Loops leave drafts

Loops leave pages and apps as drafts. A draft is saved work that your users cannot see yet.

Nothing is published until you say so. You can look at the drafts first, then decide.

What a loop needs from you

  • Stay for the start. A loop asks its questions first. Then it works alone.

  • Answer when it asks. If you are away, it waits at its next question. It never says yes for you.

  • Keep your sign-in valid. If your sign-in runs out, the checks stop until you sign in again.

  • Do the steps it has no tool for. It lists them, for example a change in the app builder. Then it waits for "Done".

Checks run in a separate test browser, not your own Chrome. The first check downloads it, about 100 MB, once. Web checks run up to 6 browsers at once, so free memory makes a run faster.

Note: UnifyApps Headless always asks before it deletes anything.

When there is no loop

Some things have no loop of their own. These include objects, connections and records.

For these, just ask in chat. Builder agents build objects and records. A connection is set up with you in chat, because you give its sign-in.

Next steps