Working With AI Agents

Loop Engineering

Stop one-shot prompting. The way to ship real work with AI coding agents is to run a steered goal loop: a goal, skills, steering, review, and verification with your own eyes.

Nicolas Fry
Nicolas FryFounder & CEO
June 27, 20267 min read

Loop engineering is the practice of building with AI coding agents by running a steered goal loop instead of one-shot prompting. You set a high-level objective, let the agent use specialized skills, steer it as it works, review the result with more skills, optionally parallelize with workflows, and verify the outcome with your own eyes. The prompt is one input. The loop is the system.

Prompt engineering optimizes a sentence. Loop engineering optimizes the system.

A perfect prompt still gives you one shot. Agents are good enough now that the bottleneck is not the wording of a single message; it is everything around it. What objective did you give it? Which skills did it use? Did you steer when it drifted? Did you review the diff and actually look at the result?

Loop engineering treats those as the real surface area. You stop polishing prompts and start running a loop you can steer and trust.

The goal loop

Six moves. The first four are the core; the last two are how you scale it and trust it.

1. Set a high-level objective

Open with a /goal that names the outcome, not the steps. "Rank for best e-signature for small business" or "add a signable invoice flow." A goal keeps the agent working across many turns and self-correcting against the target, instead of stopping after one answer.

2. Use skills

Let the agent reach for specialized skills rather than improvising. Skills carry the procedure: how to audit SEO, how to debug systematically, how to design a feature. The agent loads the right one for the task and follows it, so you get expert behavior instead of a generic guess.

3. Steer

This is the part people skip, and it is the whole game. Stay in the loop. Read what the agent is doing, correct course in plain language, and redirect the moment it drifts. You are not writing the code; you are steering the thing that writes the code. Short, frequent nudges beat one perfect prompt.

4. Review with skills

Close the loop with a review skill, not a vibe check. Run /code-review on the diff to catch correctness bugs and over-engineering before they ship. Reviewing with a skill is repeatable and adversarial in a way that "looks good to me" never is.

5. (Optional) Parallelize with workflows

When the work is big or repetitive, use /workflows to organize, serialize, or parallelize it. Fan out one agent per file, run an audit across the whole repo, or pipeline a find then verify then fix. The loop scales from one change to a hundred without you babysitting each one.

6. Let me see it

Verify with your own eyes. Point the agent at the real product with a browser tool like Chrome so it can load the page, click through the flow, and confirm the change actually works. Tests and diffs are necessary; seeing it render is what tells you it is done.

Skills that matter

Skills are where the loop gets its leverage. These are the ones I reach for on almost every run.

/feature-dev

Guided feature development that studies your codebase patterns first, then proposes an architecture and a build sequence before writing code.

/superpowers

The process skills that make agents reliable: brainstorming before building, test-driven development, and systematic debugging instead of guess-and-check.

/code-review

Adversarial review of the working diff for real bugs and reuse or simplification cleanups. The review step that closes the loop.

/ponytail

The GOAT. Forces the laziest solution that actually works: standard library before custom code, native features before dependencies, one line before fifty. The antidote to agent over-engineering.

Chrome (browser tool)

Let the agent drive a real browser to load pages, click flows, and verify the change in the actual product, not just in a test runner.

Steering is the skill you cannot delegate

Every other move can be handed to the agent. Steering cannot. The agent will happily build the wrong thing well, so your job is to watch the loop and pull it back on target with small, frequent corrections. The teams getting the most out of agents are not writing better prompts. They are steering better loops.

Frequently asked questions

What is loop engineering?

Loop engineering is the practice of building with AI coding agents by running a steered goal loop instead of one-shot prompting. You set a high-level objective, let the agent use specialized skills, steer it as it works, review the result with more skills, optionally parallelize with workflows, and verify the outcome with your own eyes.

How is loop engineering different from prompt engineering?

Prompt engineering optimizes a single message. Loop engineering optimizes the whole feedback loop: the objective, the skills the agent uses, the steering you apply mid-run, and the review and verification at the end. The prompt is one input; the loop is the system.

What is a /goal in this workflow?

A /goal sets a high-level objective and keeps the agent working toward it across many steps, instead of stopping after one answer. You name the outcome you want, not the individual steps, and the agent plans, executes, and self-corrects against that goal while you steer.

Do I need workflows and a browser tool to do loop engineering?

No. The core loop is objective, skills, steering, and review. Workflows are an optional add-on for organizing, serializing, or parallelizing large work, and a browser tool like Chrome lets the agent verify changes in the real product. Both are powerful, but you can practice loop engineering without them.

Keep reading

Put the loop to work

Add e-signatures, document generation, or quoting to your product by prompting an agent against the real TurboDocx API. Free to start, no sales calls.

Start free