# "wtf is Loop Engineer & how to setup for real"
<!--
ref: @content/youtube/ai-jason/wtf-is-loop-engineer-how-to-setup-for-real
tags: [loop engineering, agent harness, shared signals, codebase harness, Playwright CLI, verifier agent, automation loops]
version: 2
updated_at: 2026-11-22T13:44:17.531Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=W6x-hb44C0c)**

# wtf is Loop Engineer & how to setup for real

*Synthesized from AI Jason, 2026-06-18; the speaker is not named in the source.*

A solo explainer from someone whose team runs several automated agent loops against their own product and marketing; the transcript is a rough machine translation.

## Core Thesis
The presenter argues that "loop engineering" is the outer layer of an agent harness: instead of prompting a coding agent, you design triggers, shared files and contracts so agents wake up on their own and deliver work. Loops compound when they read and write the same shared folders, and they only work safely when the codebase lets agents run and verify their work in parallel.

## Key Insights
- **Term history.** Prompt engineering (2023) steered single calls; context windows grew from around 4,000 tokens to 128k and then 1 million, though the presenter says the effective window is about 128k to 200k, which drove prompt-cache, compaction and skill techniques. By 2026 one-shot tasks of 30 minutes to 2 hours and cross-session work needed state tracking outside the agent, which is the harness (first described by LangChain as everything non-model).
- **Two optimization layers.** The inner agent loop (Claude Code, Codex, a custom agent) makes one task finish well; the outer loop decides what to work on, triggers the runtime, and keeps state and logs.
- **Triggers.** Cron jobs, another agent, or webhooks such as a server incident can wake an agent. Each run investigates, acts and leaves a backlog for the next run.
- **Support loop example.** Every 30 minutes the agent reviews tickets, replies to unhandled ones, and logs friction and ideas; a stronger version triggers a coding agent to implement fixes and then monitors whether complaints stop.
- **Signals folder.** Loops write markdown "signal" files (for example several users asking how to export files becomes one export-file signal listing who hit it). An SEO loop runs daily at 9 a.m. and also writes signals, such as a page with many clicks but weak conversion; an ads loop's keyword findings can feed the SEO loop. Their SEO loop output 20 to 40 pages a day over two days.
- **Four ingredients.** Triggers, file structure, tools and connectors, and a codebase set up for parallel, autonomous work.
- **Codebase must be legible, executable and verifiable.** Keep an indexed agents.md pointing to docs for progressive discovery; add custom lint rules that surface errors (for example imports from legacy mono-repo folders); give a single dev script that starts the server; keep it worktree-friendly; add scripts to jump to specific states; use Playwright CLI, which can record video attached to the GitHub PR; keep end-to-end tests for critical flows (upgrade, sign-up).
- **Do not self-verify.** The PR skill tells the agent to spawn a read-only verifier agent with a detailed spec, because self-verification did not work well.
- **Three file types.** Artifacts (shared outputs such as docs, signals, tasks, tickets; each folder has a README covering what belongs, process and schema, plus frontmatter and a timeline); loop contracts (a README per loop with goal, workflow, backlog and timeline); and a global work-log markdown file that agents read the last 5 to 10 entries of before starting and append to when done.
- **Setup order for a support loop.** Create skills (Intercom tickets, Stripe, Supabase, Render logs, a triage skill), have the agent research the business into a CLAUDE.md, add an architecture.md describing artifact types, loop domains and log conventions, scaffold the folders, run the workflow manually once, then ask the agent to write the contract and schedule the loop hourly.

## Actionable Takeaways
1. Run the workflow by hand once, calibrate it, then have the agent write the loop contract and schedule it.
2. Give every loop a README contract (goal, workflow, boundaries, backlog, timeline).
3. Create a shared signals folder and let each loop read and write it.
4. Require a read-only verifier subagent before any PR is submitted.
5. Add a one-command dev server script and custom lint rules to the repo before adding loops.

## Notable Quotes
> "don't get agent to self-verify its own work. It just generally didn't work that well." — the presenter (not named in the transcript)

> "All those different loops are happening every hour or every day share the same brain." — the presenter (not named in the transcript)

---

*Related: `@content/youtube/langchain/managed-deep-agents-conceptual-video` · `@content/youtube/cole-medin/the-creators-of-claude-code-and-openclaw-don-t-prompt-their-agents-anymore` · `@content/youtube/liam-ottley/openclaw-will-never-actually-run-your-business-try-this-instead` · `@content/youtube/aie/healthcare-s-agent-bytecode-x12-as-the-harness-for-ai-agents-vasant-kearney-onlay` · `@content/youtube/indy-dev-dan/top-1-opportunity-for-senior-engineers-agentic-engineering`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*