Three months ago I closed a talk with that line.
Now the word means at least four different architectures.
Tonight: separate the hype from the mechanism, then design
a /loop that doesn’t just spin.
/loop — four modes, one file that matters
25 years of consulting for enterprise to Fortune 500. On-prem, cloud, AI, security, and development — paid projects in 30+ languages before AI came around.
Sole IT Engineer next to the CEO. Re-developed the platform from 2014–2019 serving 30M+ monthly users, then exited to eBay.
Tasked to fix a critical performance bottleneck. Found a $2M+ accounting error while rewriting the system. Cut monthly job runtime from 2+ hours to 5 minutes.
Rebuilt flash-sale push notification infra for the largest fashion retailer in the US. 10M+ concurrent pushes, delivery cut from 2 days to under 10 minutes.
If you recognize my last name, it’s probably because my grandfather invented the BobbyCar and was the founder of BIG Spielwaren.
Jan–Mar 2026 only. I picked vulnerability research as a hard, noisy, adversarial domain — if the loop pattern held there, it would hold anywhere.
Loop with validation gates beat ad-hoc prompting on the hardest domain I could find.
Separate personas, hard gates, feedback. The CVEs were artifacts of that, not the goal.
Same architecture, different domains: SaaS development, SEO, paid ads, infra automation.
Not security. The mechanism underneath — /loop as a Claude Code primitive.
I didn’t know this would become a thing.
Act, observe, decide, repeat inside one task. Tool results and environment feedback close it.
Restart the agent against the same spec until tests and compliance pass. Fresh context is the feature.
Triage, spec, implement, review, verify, ship, monitor. The software factory around the codebase.
Autoresearch over the factory itself: prompts, harnesses, model choices, evals, and feedback filters.
You can run a fully autonomous execution loop inside a heavily supervised product loop. The engineering question is not “auto or not.” It is where the checkpoint belongs.
/loop has
four modes
--resume. Also invokable as /proactive per the docs.
/loop 5m check the deploy — cron-scheduled, your prompt fires on every tick.
/loop check whether CI passed — Claude picks the next interval each iteration. 1 min to 1 hour.
/loop alone — runs the built-in maintenance prompt, or .claude/loop.md if you have one.
/loop 30m /review-pr 1234 — re-run a saved skill on a schedule.
/loop 5m check if the deploy at port 3000 returns 200
Tell me when state changes. Stop reading the GitLab UI every two minutes.
/loop 30m /review-pr 1234
A skill that knows how to review the PR. The loop just supplies the cadence. Skills compose; intervals don’t.
/loop check whether CI passed and address review comments
No interval. Claude decides: tight while CI is running, long when the PR goes quiet. Can also exit on its own when the work is “provably complete.”
Esc stops a waiting loop. The 7‑day expiry kills forgotten ones.
.claude/loop.md
is where it gets interesting.
/loop looks for .claude/loop.md (project) then ~/.claude/loop.md (user). First match wins.
loop.md,
iteration N+1 reads the new version. That is the only honest
“self-improvement” mechanism in the primitive.
; .claude/loop.md
Check the `release/next` PR.
If CI is red, pull the failing job log,
diagnose, and push a minimal fix.
If new review comments arrived,
address each one and resolve the thread.
If everything is green and quiet,
say so in one line.
/loop vs
/goal
/loop — cadence-driven
Start: /loop [interval] [prompt]. Both args optional.
Rhythm: a clock tick, a dynamic self-paced delay, or whatever your nested skill needs.
Stops: Esc while waiting, or Claude self-ends in dynamic mode.
You design: the interval, the prompt, the exit condition, and what each iteration leaves behind.
Anything where others would reach for OpenClaw, Hermes Agent, or OpenFang. I design it, refine loop.md, and tune it until it’s an autonomous process most of the time.
/goal — condition-driven
Start: /goal <condition> — up to 4,000 chars in both CLIs.
Rhythm: no clock. The agent keeps taking turns until the condition holds.
Claude Code: a separate fast model judges the condition after every turn — fresh eyes, not the model doing the work.
Codex: objective persists across the thread; pause / resume / clear.
One-off problems with a clear finish line. “/goal build me a Rust version of Age of Empires 2, called OpenRAge.”
/goal; Claude Code and Grok Build also offer /loop.A loop without its signal
does not converge.
It just runs.
Memory entry, code change, edited loop.md, log line. If iteration N changes nothing, iteration N+1 runs against the same world.
Write to CLAUDE.md, MEMORY.md, the repo, or loop.md itself — not chat scrollback.
The loop fires; the signal (test, lint, HTTP probe, eval, review, production trace) decides whether the artifact survives. No signal = drift.
Who gets paged, who approves the merge, who kills the run? Cadence is cheap. Ownership is the design.
Interval too short for the work. The next iteration starts before the last artifact is ready. You burn tokens on context that hasn’t changed.
No named signal. The loop keeps running after the task is done; you trust it to notice. It does not. The 7-day expiry is your safety net, not your design.
Each iteration looks useful in the transcript but writes nothing durable. The loop is busy. The world is the same as it was an hour ago.
/loop is session-scoped.
Know when to reach past it.
--resume. Unexpired tasks come back when you continue the session.
CLAUDE_CODE_DISABLE_CRON=1.
A self-paced /loop watches managed GitLab and Kubernetes instances for critical updates, usually checking again after a few hours. loop.md remembers the last-seen state; relevant updates trigger release-note analysis and close on a green pipeline, healthy pods, and HTTP 200.
/seo-run — the SEO operating loopPulls Search Console + DataForSEO + Grok trends, writes a backlog to .codex/seo-run/, implements one evidence-backed change, verifies CI/deploy. Each iteration leaves a snapshot artifact the next iteration reads.
/ads-run — cross-channel ads watchdogChecks Meta + Google + X Ads delivery, spend, approvals, conversions. Writes a run report; never silently spends money. Drafts optimizations; I approve the irreversible step.
Real terminal panes. Persistent agents. One place to see what is working, blocked, or done.
<Switch to Terminal>
Name the artifact.
Name the signal.
Keep the oversight loop.
The prompt is the constant. The world is the variable. Pick the artifact each iteration leaves behind, pick the signal that accepts or rejects it — and you have a loop, not a polling script.