{"slug": "stop-prompting-start-writing-loops", "title": "Stop prompting. Start writing loops", "summary": "Boris Cherny, head of Claude Code, advocates replacing manual prompting with agent loops that automate coding tasks. Bun's team used such loops to rewrite 750,000 lines of code in 11 days with 99.8% test pass rate, and Stripe compressed a migration in a 50-million-line codebase into a single day. The article details four loop types—turn-based, goal-based, time-based, and proactive—and offers 12 recipes for implementing them.", "body_md": "# Stop prompting. Start writing loops\n\n### The Claude Code team just published how loops actually work. Here is the mental model free, and the 12 ready-to-run loop recipes that hand your busywork to an agent\n\nThe head of Claude Code stopped prompting.\n\n“I don’t prompt Claude anymore. I have loops running that prompt Claude and figuring out what to do. My job is to write loops.”\n\nThat is Boris Cherny, and the numbers behind the shift are public now. Bun’s team used [agent](https://www.the-ai-corner.com/t/ai-agents?r=1krivi) loops to rewrite roughly 750,000 lines from Zig to Rust in 11 days, with 99.8% of tests passing. Stripe compressed a migration inside a 50-million-line codebase into a single day. One dev shipped a $50K contract for $297 in tokens.\n\nA loop is an agent repeating cycles of work until a stop condition is met. The skill is picking the right one, and the [Claude Code](https://www.the-ai-corner.com/t/claude-and-anthropic?r=1krivi) team defines four:\n\n**Turn-based.** You prompt, Claude works, you check. Every session you already run. You hand off*the check*by encoding verification as a skill.\n\n**Goal-based (/goal).** You define done, and a second model judges every attempt to stop. You hand off*the stop condition*.\n\n**Time-based (/loop, /schedule).** The prompt reruns on an interval, locally or in the cloud. You hand off*the trigger*.**Proactive.** Schedule + goal + parallel workflows, running with zero humans in the loop. You hand off*the prompt itself*.\n\nRead that list again as a ladder. Each rung hands the agent one more piece of your job, and most people stay parked on rung one.\n\nThat mental model is yours free. The gap between knowing it and running it is the exact commands, the verification skills, the stop conditions that resist gaming, and the cost guardrails, because the same primitives that shipped Bun’s rewrite have burned teams for $47,000 when left alone.\n\nBehind the paywall:\n\n▫️\n\nexact copy-paste commands for engineering and non-engineering workThe 12 loop recipes,▫️\n\nwhy a second model judges “done” and how to write conditions it can verifyThe /goal evaluator mechanic,▫️\n\nthe single change Boris says 2-3x’s output qualityThe verification skill template,▫️\n\nwhat a loop beat costs, the $1,000-a-month cadence trap, and the model-routing leverThe cost math,▫️\n\nturn caps, circuit breakers, and the blowup stories behind each ruleThe guardrail checklist,▫️\n\nreward hacking, agentic laziness, and the Dumb ZoneThe failure-mode file,▫️\n\nwhich loop for which job, on one screenThe decision table,▫️\n\nfrom your first /goal to a proactive loop that runs while you sleepThe escalation path,\n\n### One subscription unlocks every system\n\nThis is one build in a growing library. Premium opens all of them:\n\n▫️ [Loop engineering for coding agents](https://www.the-ai-corner.com/p/loop-engineering-coding-agents-2026?r=1krivi)\n\n▫️ [The Claude managed agents guide](https://www.the-ai-corner.com/p/claude-managed-agents-guide-2026?r=1krivi)\n\nPlus a fresh system every week. One loop that babysits your PRs for a month pays the subscription back in an afternoon.\n\n# 🔁 The Loop Library\n\nThe 12 recipes, the evaluator mechanic, the verification template, the cost math, the guardrails, and the decision table, in one system.\n\n**Try premium free for 7 days. Or get 50% off this week only.**\n\n## Get **The Loop Library** below 👇\n\n## Keep reading with a 7-day free trial\n\nSubscribe to The AI Corner to keep reading this post and get 7 days of free access to the full post archives.", "url": "https://wpnews.pro/news/stop-prompting-start-writing-loops", "canonical_source": "https://www.the-ai-corner.com/p/claude-code-loops-library-goal-schedule-recipes-2026", "published_at": "2026-07-07 13:48:59+00:00", "updated_at": "2026-07-07 14:05:31.491966+00:00", "lang": "en", "topics": ["ai-agents", "large-language-models", "ai-tools", "developer-tools", "ai-products"], "entities": ["Claude Code", "Boris Cherny", "Bun", "Stripe", "Anthropic"], "alternates": {"html": "https://wpnews.pro/news/stop-prompting-start-writing-loops", "markdown": "https://wpnews.pro/news/stop-prompting-start-writing-loops.md", "text": "https://wpnews.pro/news/stop-prompting-start-writing-loops.txt", "jsonld": "https://wpnews.pro/news/stop-prompting-start-writing-loops.jsonld"}}