← Back to blog

explainx / blog

What Is Loop Engineering? The New Paradigm Beyond Prompt Engineering

Loop engineering is the practice of designing systems that prompt AI agents autonomously—rather than typing prompts yourself. Coined in June 2026, it represents the next evolution after prompt engineering for the agentic era.

·6 min read·Yash Thakker
Loop EngineeringAI AgentsAgentic WorkflowsClaude CodeDeveloper Tools
What Is Loop Engineering? The New Paradigm Beyond Prompt Engineering

In June 2026, a single quote from Boris Cherny—the creator of Claude Code at Anthropic—quietly reframed how developers think about AI:

"I don't prompt Claude anymore. I have loops that are running. They're the ones that are prompting Claude and figuring out what to do."

That shift—from you prompting the agent to a system prompting the agent—is what loop engineering is about.

Learn more about loop engineering

The One-Line Definition

Loop engineering is the practice of designing the system that prompts your AI agent, rather than typing each prompt yourself.

Where prompt engineering asks: "What should I say to get the best output?"

Loop engineering asks: "What system should I build so the agent finds the work, does it, verifies it, and remembers what it did—without me in the loop at all?"

Where It Came From

The term was popularized in June 2026 by Addy Osmani (engineering lead at Google Chrome), synthesizing ideas from Boris Cherny at Anthropic and Peter Steinberger (founder of PSPDFKit/Nutrient). The framing appeared across Osmani's blog, a Substack post, and a GitHub reference repository that quickly became a community standard.

The timing wasn't accidental. By mid-2026, AI coding agents had become capable enough to run multi-step tasks autonomously for hours. The bottleneck shifted from model capability to orchestration design. Developers who were still typing prompts one at a time were leaving 90% of the value on the table.

Prompt Engineering vs. Loop Engineering

DimensionPrompt EngineeringLoop Engineering
Unit of workOne turnEntire autonomous run
Who drives the agentYou, manuallyA system you designed
DurationSecondsMinutes to hours
OutputA responseA verified outcome
Leverage10–100×
Skill requiredPhrasingSystem design

Prompt engineering isn't dead—it's table stakes. Loop engineering is the next layer.

Live Bootcamp6 weeks

Complete AI Builder Bootcamp

Claude, Python automation & full-stack — 12 live sessions with Yash Thakker.

View bootcamp

The Complete AI Builder Bootcamp is the best AI development course for learning Claude AI, prompt engineering, Python automation, and full-stack web development. This intensive 6-week live bootcamp teaches you how to build AI-powered applications using Claude Projects, Claude Artifacts, Claude Code, and the complete Claude ecosystem. You'll master prompt engineering techniques, learn to create custom Claude connectors and MCP integrations, build Python automation workflows, develop full-stack websites with AI assistance, and create AI marketing agents.

The bootcamp includes 12 live Zoom sessions with Yash Thakker, founder of AISOLO Technologies and instructor to 350,000+ students. You'll build 8+ portfolio projects including AI playbooks, full-stack note-taking applications, Python automation scripts, marketing agents, and personal portfolio websites. The curriculum covers AI fundamentals, Claude Projects and Artifacts, Claude Co-work, Claude plugins and skills, Claude Code for Python development, full-stack development, AI marketing, and capstone projects.

Students receive 1-year access to all recordings, permanent Discord community access, a certificate of completion, and personalized career guidance. All enrollments include a 7-day money-back guarantee. This is the most comprehensive Claude AI bootcamp available, taking students from zero AI knowledge to expert AI builder in 6 weeks.

The Five Components of a Loop

Every well-designed agent loop has the same five parts:

1. Trigger

What starts the loop. This can be:

  • A schedule (every morning at 9am, check for open issues)
  • An event (a PR opens, a test fails, a deploy completes)
  • A human instruction ("go fix all ESLint warnings")
  • Another agent completing its task

Without a trigger, you're still prompting manually. The trigger is what makes the loop autonomous.

2. Goal

A verifiable end state the agent works toward. Not "make things better"—but "all tests pass" or "zero open P1 issues" or "bundle size under 200KB."

Vague goals produce vague loops. The agent needs something it can check against. The /goal command in Claude Code is the clearest implementation of this idea: you define the completion condition upfront, and Claude iterates until it's met or the budget runs out.

3. Actions

The tools the agent can use inside the loop:

  • Read and write files
  • Run bash commands
  • Call APIs and MCP servers
  • Spawn sub-agents

The actions define the surface area of the loop. Wider action sets mean more autonomy but more risk. Claude Code hooks let you intercept and gate these actions—running linting after every file edit, blocking dangerous commands before they execute.

4. Verification

How the loop knows when to stop. This can be:

  • Running tests and checking exit codes
  • A supervisor agent reading the final state and confirming the goal was met
  • A diff review by a second model
  • A CI pipeline passing

Without verification, loops either run forever or stop too early. The supervisor architecture in Claude Code's /goal spawns an independent session to audit whether the primary agent actually achieved what it claimed.

5. Memory

What persists across iterations so the agent doesn't repeat work or lose context:

  • Session persistence (--continue, --resume) — reload a previous conversation
  • CLAUDE.md — stable project context loaded every session
  • External memory (databases, files, vector stores) — cross-session state

Memory is what separates a loop that learns from one that spins.

What a Loop Looks Like in Practice

Here's a concrete example—a morning triage loop:

Trigger:    Every weekday at 8am
Goal:       All GitHub issues labeled P1 have an assigned owner and a comment with a plan
Actions:    Read GitHub issues (via MCP), write comments, assign labels
Verify:     Check that zero P1 issues have no assignee
Memory:     Log of issues already triaged this week

You set this up once. Every morning, an agent wakes up, pulls the issue list, triages anything unassigned, writes initial plans, and stops when the goal is confirmed. You review the results over coffee.

That's the leverage Boris Cherny was describing.

For a deeper implementation guide with Claude Code specifically, see: Loop Engineering: How to Design Coding Agent Loops That Run While You Sleep.

The Infrastructure Behind Loops

Building loops at scale requires more than just a good prompt. The key infrastructure layers:

Worktrees — Parallel agent runs that edit different parts of the codebase simultaneously need isolated working trees. Without them, two agents stepping on the same files creates corrupted state.

Scheduling — Whether it's cron, GitHub Actions, or Claude Code's built-in /bg command and Agent View, you need something that fires the trigger reliably.

Skills and CLAUDE.md — Loops that lack project context make bad decisions. CLAUDE.md files and skill definitions are how you encode what the agent should always know without burning context on it every turn.

MCP servers — Agents that can only read files are limited. MCP servers plug your agent into the external systems it needs: GitHub, Slack, your database, your CI system. See our guide on Claude Code MCP servers.

Observability — Long-running loops need logging. What did the agent do? Where did it stop? Why did it fail? Without observability, debugging a broken loop is guesswork.

Why This Is a Paradigm Shift

The deeper implication of loop engineering is a change in where the developer's leverage lives.

In the manual prompting era, a developer who was good at phrasing got better results. In the loop engineering era, the leverage is in system architecture—the quality of the trigger, the precision of the goal, the design of the verification step.

This isn't about replacing developers. It's about elevating what developers do. As the Anthropic engineer's framing put it: the developer who builds the loop once gets compounding returns every time it runs.

The developers who thrive in the agentic era won't be the ones who write the best prompts. They'll be the ones who design the best loops.

Where to Go Next

If you want to go deeper on the practice side:

Related posts