{"id":144,"date":"2026-06-24T10:53:22","date_gmt":"2026-06-24T01:53:22","guid":{"rendered":"https:\/\/form.hit-ad.net\/?p=144"},"modified":"2026-06-24T10:56:29","modified_gmt":"2026-06-24T01:56:29","slug":"stop-hiring-ai-employees-the-new-era-of-loop-engineering-for-24-7-sns-automation","status":"publish","type":"post","link":"https:\/\/form.hit-ad.net\/?p=144","title":{"rendered":"Stop Hiring AI Employees: The New Era of &#8220;Loop Engineering&#8221; for 24\/7 SNS Automation"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Mastering Claude Code \/loop &amp; \/goal: Complete Goal-Oriented Design for Autonomous AI Agents (2026)<\/title>\n<meta name=\"description\" content=\"Stop prompting, start designing loops. A complete 2026 guide to Claude Code's \/loop and \/goal commands: goal-oriented design, self-verification AI, budget guards, and how to build autonomous agents for SNS, X, and YouTube automation without burning tokens.\">\n<meta name=\"keywords\" content=\"Loop Engineering, Claude Code, \/loop command, AI Agent, AI Automation, SNS Automation, Claude 3.5 Sonnet, AI Perpetual Motion, Goal-Oriented Design, Self-Verification AI, Boris Cherny, Peter Welinder, Digital Marketing Automation, X Automation, YouTube Automation, Content Creation AI, AI Strategy 2024, Claude.md, AI Efficiency, Passive Income AI\">\n<link rel=\"canonical\" href=\"https:\/\/ayucom.co.jp\/claude-code-loop-goal-design.html\">\n\n<meta property=\"og:type\" content=\"article\">\n<meta property=\"og:title\" content=\"Mastering Claude Code \/loop &#038; \/goal: Goal-Oriented Design for Autonomous AI Agents\">\n<meta property=\"og:description\" content=\"The 2026 playbook for designing autonomous agent loops in Claude Code \u2014 goal conditions, self-verification, budget guards, and content automation that actually finishes work.\">\n<meta property=\"og:url\" content=\"https:\/\/ayucom.co.jp\/claude-code-loop-goal-design.html\">\n<meta property=\"og:site_name\" content=\"AYUCOM\">\n<meta property=\"og:locale\" content=\"en_US\">\n<meta name=\"twitter:card\" content=\"summary_large_image\">\n<meta name=\"twitter:title\" content=\"Mastering Claude Code \/loop &#038; \/goal: Autonomous AI Agent Design\">\n<meta name=\"twitter:description\" content=\"Stop prompting. Start designing loops. The complete goal-oriented design guide for Claude Code in 2026.\">\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\n  \"@type\":\"Article\",\n  \"headline\":\"Mastering Claude Code \/loop & \/goal: Complete Goal-Oriented Design for Autonomous AI Agents (2026)\",\n  \"description\":\"A complete 2026 guide to Claude Code's \/loop and \/goal commands for building autonomous agents with goal-oriented design, self-verification, and budget guards.\",\n  \"author\":{\"@type\":\"Person\",\"name\":\"Ripon\",\"description\":\"20 years of engineering experience and 25 years of business management\"},\n  \"publisher\":{\"@type\":\"Organization\",\"name\":\"AYUCOM\",\"url\":\"https:\/\/ayucom.co.jp\"},\n  \"datePublished\":\"2026-06-24\",\n  \"dateModified\":\"2026-06-24\",\n  \"mainEntityOfPage\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ayucom.co.jp\/claude-code-loop-goal-design.html\"}\n}\n<\/script>\n<script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\n  \"@type\":\"FAQPage\",\n  \"mainEntity\":[\n    {\"@type\":\"Question\",\"name\":\"What is the difference between \/loop and \/goal in Claude Code?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\/loop is the engine \u2014 it repeats a prompt or slash command on a schedule and is ideal for recurring monitoring. \/goal is the compass \u2014 you state one verifiable completion condition and a separate fast checker model confirms after each turn whether it is met, so the agent keeps working until the goal clears.\"}},\n    {\"@type\":\"Question\",\"name\":\"Why does a loop need a separate verifier model?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A model that wrote the work and is also asked whether the work is correct tends to over-report success. \/goal uses a separate, faster checker model to evaluate the completion condition after each turn, so the doer and the checker are different model instances.\"}},\n    {\"@type\":\"Question\",\"name\":\"Why do agentic loops cost so much more than single prompts?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Every tool call in a loop adds context that is re-sent on every subsequent call, so cumulative input grows with each iteration. Late-loop steps can carry tens of thousands of tokens, which is why a budget guard and a hard iteration cap are essential.\"}},\n    {\"@type\":\"Question\",\"name\":\"Can I use these loops for SNS, X, or YouTube automation?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, the same design pattern (doer, checker, stop condition) transfers to content workflows. Always respect each platform's automation and API policies, set a hard stop and budget, and keep a human in the loop for final publishing decisions.\"}}\n  ]\n}\n<\/script>\n\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Space+Grotesk:wght@400;500;600;700&#038;family=Inter:wght@400;500;600;700&#038;family=JetBrains+Mono:wght@400;500;700&#038;display=swap\" rel=\"stylesheet\">\n\n<style>\n:root{\n  --paper:#f6f3ec;\n  --paper2:#fffdf8;\n  --ink:#13233b;\n  --ink2:#3a4a63;\n  --fog:#6b7890;\n  --line:#d8d0c0;\n  --blue:#1b5cff;\n  --orange:#ff5a1f;\n  --blue-soft:#e7eeff;\n  --orange-soft:#ffe8de;\n  --disp:'Space Grotesk',sans-serif;\n  --body:'Inter',sans-serif;\n  --mono:'JetBrains Mono',monospace;\n}\n*{margin:0;padding:0;box-sizing:border-box}\nhtml{scroll-behavior:smooth}\nbody{\n  font-family:var(--body);\n  background:var(--paper);\n  color:var(--ink);\n  line-height:1.78;\n  font-size:16px;\n  -webkit-font-smoothing:antialiased;\n  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);\n  background-size:46px 46px;\n  background-position:-1px -1px;\n}\n.sheet{background:var(--paper);}\na{color:inherit;text-decoration:none}\nimg{max-width:100%;height:auto;display:block}\n\n\/* topbar *\/\n.topbar{position:sticky;top:0;z-index:50;background:rgba(246,243,236,.9);backdrop-filter:blur(8px);border-bottom:1.5px solid var(--ink)}\n.topbar-in{max-width:1180px;margin:0 auto;padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}\n.brand{font-family:var(--disp);font-weight:700;font-size:1.06rem;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}\n.brand .mk{width:22px;height:22px;border:2px solid var(--ink);border-radius:3px;display:grid;place-items:center;font-family:var(--mono);font-size:.7rem;font-weight:700;color:var(--blue)}\n.brand .sub{font-family:var(--mono);font-weight:400;font-size:.72rem;color:var(--fog)}\n.cta-top{font-family:var(--mono);font-size:.76rem;font-weight:700;background:var(--ink);color:var(--paper);padding:9px 16px;border-radius:4px;white-space:nowrap}\n@media(max-width:560px){.cta-top{display:none}}\n\n\/* breadcrumb *\/\n.crumb{max-width:1180px;margin:0 auto;padding:16px 24px 0;font-family:var(--mono);font-size:.72rem;color:var(--fog);letter-spacing:.03em}\n.crumb b{color:var(--blue)}\n\n\/* hero *\/\n.hero{max-width:1180px;margin:0 auto;padding:26px 24px 10px}\n.eyebrow{font-family:var(--mono);font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;color:var(--orange);margin-bottom:18px;display:flex;align-items:center;gap:10px}\n.eyebrow::before{content:\"\";width:36px;height:2px;background:var(--orange)}\n.hero h1{font-family:var(--disp);font-size:clamp(2rem,5.4vw,3.5rem);line-height:1.08;font-weight:700;letter-spacing:-.02em;margin-bottom:22px;max-width:16ch}\n.hero h1 em{font-style:normal;color:var(--blue)}\n.hero h1 .strike{text-decoration:line-through;text-decoration-color:var(--orange);text-decoration-thickness:3px;color:var(--fog)}\n.lede{font-size:1.12rem;color:var(--ink2);max-width:680px;margin-bottom:24px}\n.meta-row{display:flex;flex-wrap:wrap;gap:18px;font-family:var(--mono);font-size:.76rem;color:var(--fog);border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);padding:12px 0;margin-bottom:8px}\n.meta-row b{color:var(--ink)}\n\n\/* signature: doer-checker gate *\/\n.gate{display:grid;grid-template-columns:1fr auto 1fr auto;gap:0;align-items:stretch;margin:30px 0 6px;border:1.5px solid var(--ink);border-radius:10px;overflow:hidden;background:var(--paper2)}\n@media(max-width:680px){.gate{grid-template-columns:1fr}}\n.gate .cell{padding:20px 22px}\n.gate .doer{background:var(--blue-soft)}\n.gate .checker{background:var(--orange-soft)}\n.gate .arr{display:grid;place-items:center;font-family:var(--mono);font-weight:700;color:var(--ink);background:var(--paper2);padding:0 16px;font-size:1.1rem;border-left:1.5px dashed var(--line);border-right:1.5px dashed var(--line)}\n@media(max-width:680px){.gate .arr{padding:8px;border:0;border-top:1.5px dashed var(--line);border-bottom:1.5px dashed var(--line)}}\n.gate .k{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px}\n.gate .doer .k{color:var(--blue)}.gate .checker .k{color:var(--orange)}\n.gate h4{font-family:var(--disp);font-size:1.1rem;margin-bottom:4px}\n.gate p{font-size:.86rem;color:var(--ink2);margin:0}\n.gate .loopback{grid-column:1\/-1;background:var(--ink);color:var(--paper);font-family:var(--mono);font-size:.74rem;text-align:center;padding:9px;letter-spacing:.04em}\n\n\/* layout *\/\n.wrap{max-width:1180px;margin:0 auto;padding:24px 24px 70px;display:grid;grid-template-columns:1fr 320px;gap:48px}\n@media(max-width:980px){.wrap{grid-template-columns:1fr}}\nmain{min-width:0}\n\n\/* disclaimer *\/\n.disc{border:1.5px solid var(--ink);border-left:5px solid var(--orange);background:var(--paper2);border-radius:8px;padding:15px 18px;font-size:.85rem;color:var(--ink2);margin-bottom:34px}\n.disc b{color:var(--orange);font-family:var(--mono);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem}\n\n\/* TOC *\/\n.toc{border:1.5px solid var(--ink);border-radius:10px;background:var(--paper2);padding:24px 26px;margin-bottom:46px}\n.toc h2{font-family:var(--mono);font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:14px;border:0;padding:0}\n.toc ol{list-style:none;counter-reset:t}\n.toc li{counter-increment:t;border-bottom:1px dotted var(--line)}\n.toc li:last-child{border-bottom:0}\n.toc a{display:flex;gap:14px;padding:9px 0;font-size:.95rem;color:var(--ink);transition:color .15s}\n.toc a::before{content:counter(t,decimal-leading-zero);font-family:var(--mono);color:var(--orange);font-size:.78rem;flex:none;font-weight:700}\n.toc a:hover{color:var(--blue)}\n\n\/* sections *\/\nsection{margin-bottom:54px}\nh2.sec{font-family:var(--disp);font-size:clamp(1.5rem,3.6vw,2.05rem);font-weight:700;line-height:1.2;letter-spacing:-.015em;margin-bottom:18px;padding-top:14px;border-top:2px solid var(--ink)}\nh2.sec .no{font-family:var(--mono);font-size:.86rem;color:var(--orange);display:block;font-weight:700;margin-bottom:8px;letter-spacing:.06em}\nh3.sub{font-family:var(--disp);font-size:1.22rem;font-weight:600;color:var(--blue);margin:30px 0 12px}\np{margin-bottom:16px}\nsection p strong, li strong{font-weight:700;color:var(--ink);background:linear-gradient(transparent 60%,var(--blue-soft) 0)}\n.mono{font-family:var(--mono);color:var(--blue);font-size:.92em}\n\n\/* pull quote *\/\n.pull{font-family:var(--disp);font-size:1.4rem;line-height:1.4;font-weight:600;color:var(--ink);border-left:5px solid var(--blue);padding:6px 0 6px 22px;margin:28px 0}\n.pull .by{display:block;font-family:var(--mono);font-size:.8rem;font-weight:400;color:var(--fog);margin-top:10px}\n\n\/* note *\/\n.note{border:1.5px solid var(--ink);background:var(--paper2);border-radius:8px;padding:18px 20px;margin:22px 0}\n.note .lbl{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);display:block;margin-bottom:7px;font-weight:700}\n\n\/* table *\/\n.tbl-wrap{overflow-x:auto;border:1.5px solid var(--ink);border-radius:8px;margin:22px 0}\ntable{width:100%;border-collapse:collapse;font-size:.9rem;min-width:540px}\nth,td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line)}\nthead th{background:var(--ink);color:var(--paper);font-family:var(--mono);font-size:.76rem;letter-spacing:.04em}\ntbody tr:nth-child(even){background:var(--paper2)}\ntd .a{color:var(--fog)}\ntd .b{color:var(--blue);font-weight:600}\n\n\/* steps *\/\n.flow{display:grid;gap:14px;margin:22px 0}\n.step{display:grid;grid-template-columns:50px 1fr;gap:18px;border:1.5px solid var(--ink);border-radius:8px;background:var(--paper2);padding:16px 20px}\n.step .n{font-family:var(--mono);font-weight:700;font-size:1.4rem;color:var(--orange);line-height:1.1}\n.step h4{font-family:var(--disp);font-size:1.05rem;margin-bottom:4px}\n.step p{font-size:.9rem;color:var(--ink2);margin:0}\n\n\/* code *\/\n.code{font-family:var(--mono);font-size:.83rem;background:var(--ink);color:#e8edf6;border-radius:8px;padding:18px 20px;overflow-x:auto;margin:18px 0;line-height:1.8;white-space:pre}\n.code .c{color:#7f93b3}\n.code .k{color:#ff9d6e}\n.code .s{color:#ffd479}\n.code .g{color:#7ee0a8}\n\n\/* cards *\/\n.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}\n@media(max-width:620px){.grid2{grid-template-columns:1fr}}\n.card{border:1.5px solid var(--ink);border-radius:8px;background:var(--paper2);padding:18px 20px}\n.card .ic{font-family:var(--mono);font-size:.74rem;letter-spacing:.07em;color:var(--blue);margin-bottom:8px;font-weight:700}\n.card h4{font-family:var(--disp);font-size:1.05rem;margin-bottom:6px}\n.card p{font-size:.88rem;color:var(--ink2);margin:0}\n.card.good{border-top:4px solid var(--blue)}\n.card.bad{border-top:4px solid var(--orange)}\n\n\/* recipe \/ TRIGGER block *\/\n.recipe{border:1.5px solid var(--ink);border-radius:10px;overflow:hidden;margin:24px 0;font-family:var(--mono);font-size:.85rem}\n.recipe .row{display:grid;grid-template-columns:118px 1fr;border-bottom:1px solid var(--line)}\n.recipe .row:last-child{border-bottom:0}\n.recipe .key{background:var(--ink);color:var(--paper);padding:11px 14px;font-weight:700;letter-spacing:.05em}\n.recipe .val{padding:11px 14px;color:var(--ink2);background:var(--paper2)}\n\n\/* voice *\/\n.voice{border:1.5px solid var(--ink);border-radius:8px;background:var(--paper2);padding:18px 22px;margin:16px 0}\n.voice p{margin:0;font-size:.98rem}\n.voice .who{font-family:var(--mono);font-size:.74rem;color:var(--orange);margin-top:10px;font-weight:700}\n\n\/* ads *\/\n.ad{display:flex;justify-content:center;margin:34px 0}\n.affbox{border:1.5px dashed var(--ink);border-radius:10px;padding:20px;background:var(--paper2)}\n.afflbl{font-family:var(--mono);font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fog);text-align:center;margin-bottom:12px;font-weight:700}\n\n\/* youtube *\/\n.yt{position:relative;padding-top:56.25%;border:1.5px solid var(--ink);border-radius:10px;overflow:hidden;margin:28px 0;background:#000}\n.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}\n\n\/* CTA *\/\n.ctablock{border:1.5px solid var(--ink);border-radius:12px;background:var(--ink);color:var(--paper);padding:32px 28px;text-align:center;margin:42px 0;position:relative;overflow:hidden}\n.ctablock::after{content:\"\u21bb\";position:absolute;font-family:var(--mono);font-size:13rem;color:rgba(255,255,255,.05);right:-20px;bottom:-60px}\n.ctablock h3{font-family:var(--disp);font-size:1.5rem;margin-bottom:10px;position:relative}\n.ctablock p{color:#c3cdde;font-size:.96rem;position:relative;max-width:560px;margin:0 auto}\n.btn{display:inline-block;font-family:var(--mono);font-weight:700;background:var(--orange);color:#fff;padding:13px 30px;border-radius:6px;margin-top:18px;position:relative;transition:transform .15s}\n.btn:hover{transform:translateY(-2px)}\n\n\/* FAQ *\/\n.faq details{border:1.5px solid var(--ink);border-radius:8px;background:var(--paper2);margin-bottom:12px;overflow:hidden}\n.faq summary{cursor:pointer;list-style:none;padding:16px 20px;font-family:var(--disp);font-weight:600;font-size:1rem;display:flex;gap:12px;align-items:center}\n.faq summary::-webkit-details-marker{display:none}\n.faq summary::before{content:\"Q\";font-family:var(--mono);color:var(--orange);font-weight:700;flex:none}\n.faq summary span{flex:1}\n.faq summary::after{content:\"+\";font-family:var(--mono);color:var(--blue);font-size:1.3rem;flex:none}\n.faq details[open] summary::after{content:\"\u2013\"}\n.faq .ans{padding:0 20px 18px 54px;color:var(--ink2);font-size:.93rem}\n\n\/* sidebar *\/\n.side{display:flex;flex-direction:column;gap:22px;position:sticky;top:80px;align-self:start}\n@media(max-width:980px){.side{position:static}}\n.swid{border:1.5px solid var(--ink);border-radius:10px;background:var(--paper2);padding:20px}\n.swid h4{font-family:var(--mono);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:12px;font-weight:700}\n.swid p{font-size:.87rem;color:var(--ink2);margin-bottom:10px}\n.swid .btn{padding:11px 18px;font-size:.8rem;display:block;text-align:center;background:var(--ink);color:var(--paper)}\n\n\/* note series *\/\n.note-series{border:1.5px solid var(--ink);border-radius:12px;background:var(--paper2);padding:28px 26px;margin:42px 0}\n.note-series .hd{font-family:var(--disp);font-weight:700;font-size:1.12rem;text-align:center;margin-bottom:6px}\n.note-series .sb{text-align:center;color:var(--fog);font-size:.86rem;margin-bottom:20px}\n.note-series ul{list-style:none;display:grid;gap:9px}\n.note-series li a{display:block;border:1.5px solid var(--line);border-radius:7px;padding:12px 15px;font-size:.9rem;background:var(--paper);transition:border-color .15s,transform .15s}\n.note-series li a:hover{border-color:var(--blue);transform:translateX(3px)}\n.note-series li a .tag{font-family:var(--mono);font-size:.7rem;color:var(--orange);display:block;margin-bottom:2px;font-weight:700}\n.note-series .today a{border-color:var(--blue)}\n.note-series .tags{text-align:center;font-family:var(--mono);font-size:.76rem;color:var(--fog);margin-top:14px}\n\n\/* footer *\/\nfooter{border-top:2px solid var(--ink);background:var(--paper2)}\n.foot-in{max-width:1180px;margin:0 auto;padding:36px 24px;font-size:.84rem;color:var(--ink2)}\n.foot-in .fdisc{border:1.5px solid var(--ink);border-radius:8px;padding:14px 16px;margin-bottom:16px;font-size:.78rem}\n.foot-in .fdisc b{color:var(--orange);font-family:var(--mono);text-transform:uppercase;letter-spacing:.04em}\n.foot-in .brand{margin-bottom:10px}\n.foot-in .small{font-size:.74rem;color:var(--fog);margin-top:14px}\n<\/style>\n<\/head>\n<body class=\"sheet\">\n\n<header class=\"topbar\">\n  <div class=\"topbar-in\">\n    <a class=\"brand\" href=\"#\"><span class=\"mk\">\u21bb<\/span>AYUCOM <span class=\"sub\">\/loop_lab<\/span><\/a>\n    <a class=\"cta-top\" href=\"#cta\">Design your first loop \u2192<\/a>\n  <\/div>\n<\/header>\n\n<nav class=\"crumb\">HOME <b>\/<\/b> AI AUTOMATION <b>\/<\/b> Claude Code Loop &amp; Goal Design<\/nav>\n\n<div class=\"hero\">\n  <div class=\"eyebrow\">Loop Engineering \u00b7 2026 Field Guide<\/div>\n  <h1>Stop <span class=\"strike\">prompting<\/span>. <br>Start designing <em>loops<\/em>.<\/h1>\n  <p class=\"lede\">In 2026 the leverage moved. It is no longer how well you prompt \u2014 it is how well you design the loop. This is the complete goal-oriented guide to Claude Code&#8217;s <span class=\"mono\">\/loop<\/span> and <span class=\"mono\">\/goal<\/span> commands: how to build autonomous agents that run, verify their own work, and stop on their own.<\/p>\n  <div class=\"meta-row\">\n    <span>By <b>Ripon<\/b> \u00b7 20 yrs engineering \/ 25 yrs management<\/span>\n    <span>Updated <b>Jun 24, 2026<\/b><\/span>\n    <span>Read <b>14 min<\/b><\/span>\n  <\/div>\n\n  <div class=\"gate\">\n    <div class=\"cell doer\"><div class=\"k\">Doer<\/div><h4>The generator<\/h4><p>The model that makes the thing \u2014 writes the code, drafts the post, sorts the files.<\/p><\/div>\n    <div class=\"arr\">\u2192<\/div>\n    <div class=\"cell checker\"><div class=\"k\">Checker<\/div><h4>The verifier<\/h4><p>A separate, faster model that answers one question: is &#8220;done&#8221; objectively true \u2014 yes or no?<\/p><\/div>\n    <div class=\"arr\">\u21ba<\/div>\n    <div class=\"loopback\">NO \u2192 keep going \u00b7 YES \u2192 stop on its own. The agent was never the hard part. The check is.<\/div>\n  <\/div>\n<\/div>\n\n<div class=\"wrap\">\n<main>\n\n  <div class=\"disc\">\n    <b>Disclaimer<\/b>\u3000This article is general educational information about AI automation and Claude Code, and does not guarantee any specific income, result, or outcome. &#8220;Passive income AI&#8221; and automation results vary widely by individual and effort. Tool specifications, pricing, model availability, and platform automation policies change over time, and agentic loops consume tokens that incur real charges. Always verify current terms yourself, and make final deployment decisions at your own responsibility.\n  <\/div>\n\n  <div class=\"toc\">\n    <h2>\/\/ On this page<\/h2>\n    <ol>\n      <li><a href=\"#s1\">Why &#8220;AI can write&#8221; is no longer the point<\/a><\/li>\n      <li><a href=\"#s2\">What loop engineering actually means<\/a><\/li>\n      <li><a href=\"#s3\">\/loop vs \/goal: engine vs compass<\/a><\/li>\n      <li><a href=\"#s4\">The completion condition: how to define &#8220;done&#8221;<\/a><\/li>\n      <li><a href=\"#s5\">Self-verification: why the checker is the whole game<\/a><\/li>\n      <li><a href=\"#s6\">The five-part loop anatomy<\/a><\/li>\n      <li><a href=\"#s7\">Goal-oriented design, step by step<\/a><\/li>\n      <li><a href=\"#s8\">Worked example: content automation loop<\/a><\/li>\n      <li><a href=\"#s9\">Budget guards &amp; the 10x token problem<\/a><\/li>\n      <li><a href=\"#s10\">Pros, cons &amp; honest limits<\/a><\/li>\n      <li><a href=\"#s11\">Voices from the field<\/a><\/li>\n      <li><a href=\"#s12\">Your first loop in under an hour<\/a><\/li>\n      <li><a href=\"#faq\">FAQ<\/a><\/li>\n    <\/ol>\n  <\/div>\n\n  <section id=\"s1\">\n    <h2 class=\"sec\"><span class=\"no\">01<\/span>Why &#8220;AI can write&#8221; is no longer the point<\/h2>\n    <p>For two years the headline was that AI could generate. Code, copy, captions \u2014 it could produce. That stopped being the interesting part. <span class=\"cite\">The shift in 2026 is that AI can now run itself against a goal, on a schedule, without you in the chair \u2014 and your leverage stops being how well you prompt and starts being how well you design the loop.<\/span><\/p>\n    <p>Think about where time actually drains away. It is rarely the high-judgment work. It is the <strong>repeatable work<\/strong> \u2014 the inbox, the recurring report, the first-pass screen on every task, the queue you dread. That is exactly the work a well-designed loop can absorb.<\/p>\n    <p>And here is the uncomfortable truth that names the whole discipline: <span class=\"cite\">with single-prompt chat, you are the loop \u2014 you check the work and decide the next step every single time.<\/span> Loop engineering is stepping out of that seat and building the small system that does the prompting for you.<\/p>\n    <div class=\"note\">\n      <span class=\"lbl\">\/\/ The reframe<\/span>\n      From &#8220;how do I write a better prompt?&#8221; to <strong>&#8220;what does done look like, and how does the agent prove it?&#8221;<\/strong> That single question is the entire shift.\n    <\/div>\n  <\/section>\n\n  <section id=\"s2\">\n    <h2 class=\"sec\"><span class=\"no\">02<\/span>What loop engineering actually means<\/h2>\n    <p>The term went mainstream through one tiny post. <span class=\"cite\">On June 8, 2026, Peter Steinberger \u2014 creator of OpenClaw, now at OpenAI \u2014 posted two sentences that reached millions of views: you shouldn&#8217;t be prompting coding agents anymore; you should be designing loops that prompt your agents.<\/span> No diagram, no repo. The AI-coding timeline argued about it for a week.<\/p>\n    <p><span class=\"cite\">Boris Cherny of Anthropic, who leads Claude Code, was widely quoted alongside it, and Addy Osmani&#8217;s essay structured the idea and gave it the name &#8220;loop engineering&#8221; in June 2026.<\/span> A clean definition that survives the hype:<\/p>\n    <div class=\"pull\">Loop engineering is building a system that prompts your AI on a schedule and against a goal \u2014 instead of you typing each prompt yourself.<span class=\"by\">\u2014 the working definition, distilled from Addy Osmani&#8217;s framing<\/span><\/div>\n    <p>What&#8217;s genuinely new isn&#8217;t just &#8220;repeat a prompt.&#8221; <span class=\"cite\">In spring 2026 both Codex and Claude Code shipped a \/goal command that runs until a validator confirms the task is done, and Anthropic engineers describe running iterative loops where Claude observes, plans, acts, and reflects over hours or days.<\/span> The primitives that were improvised in scripts last year are now shipping features.<\/p>\n  <\/section>\n\n  <section id=\"s3\">\n    <h2 class=\"sec\"><span class=\"no\">03<\/span>\/loop vs \/goal: engine vs compass<\/h2>\n    <p>These two commands are often confused. The cleanest mental model: <strong>\/loop is the engine, \/goal is the compass.<\/strong> <span class=\"cite\">\/loop drives recurring cycles of assess-act-verify, while \/goal gives the agent a finish line it can check and stop on; put together, Claude has both a compass and an engine \u2014 it knows where it&#8217;s going and it knows to keep moving.<\/span><\/p>\n    <div class=\"tbl-wrap\">\n    <table>\n      <thead><tr><th>Dimension<\/th><th>\/loop \u2014 the engine<\/th><th>\/goal \u2014 the compass<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td>Best for<\/td><td class=\"a\">Recurring monitoring &amp; scheduled cycles<\/td><td class=\"b\">Driving toward one verifiable outcome<\/td><\/tr>\n        <tr><td>You provide<\/td><td class=\"a\">A prompt + an interval<\/td><td class=\"b\">A measurable completion condition<\/td><\/tr>\n        <tr><td>Stops when<\/td><td class=\"a\">You stop it \/ a stop condition fires<\/td><td class=\"b\">The checker confirms the goal is met<\/td><\/tr>\n        <tr><td>Typical use<\/td><td class=\"a\">Watch a log, poll a queue, every-cycle tasks<\/td><td class=\"b\">&#8220;All tests pass and lint is clean&#8221;<\/td><\/tr>\n        <tr><td>Combine<\/td><td class=\"a\" colspan=\"2\" style=\"text-align:center\"><span class=\"b\">Set the \/goal, then \/loop each phase until the checker says yes.<\/span><\/td><\/tr>\n      <\/tbody>\n    <\/table>\n    <\/div>\n    <p><span class=\"cite\">The \/goal command was added to Claude Code in version 2.1.139 during the week of May 11, 2026, and does not exist in earlier versions \u2014 type \/goal clear to stop early.<\/span> Check your version first.<\/p>\n    <div class=\"code\"><span class=\"c\"># \/goal \u2014 state the end state, walk away<\/span>\n<span class=\"k\">\/goal<\/span> sort every file in Downloads into subfolders by type,\n      keep going until no loose files are left; do not delete anything;\n      stop after <span class=\"s\">30 turns<\/span>\n\n<span class=\"c\"># \/loop \u2014 recurring monitor, goal resets each cycle<\/span>\n<span class=\"k\">\/loop<\/span> every cycle: check \/var\/log\/app.log for new critical errors,\n      open a GitHub issue for each with context, record last-checked time<\/div>\n    <div class=\"note\">\n      <span class=\"lbl\">\/\/ Pairing the two<\/span>\n      <span class=\"cite\">For multi-phase work, break the goal into checkpoints and use \/loop to drive each phase sequentially, confirming each phase is done before moving to the next \u2014 which gives you auditability so the agent won&#8217;t skip ahead.<\/span>\n    <\/div>\n  <\/section>\n\n  <section id=\"s4\">\n    <h2 class=\"sec\"><span class=\"no\">04<\/span>The completion condition: how to define &#8220;done&#8221;<\/h2>\n    <p>This is where most loops fail. <span class=\"cite\">You describe a verifiable end state, not a list of instructions \u2014 Claude figures out how to get there, and an independent checker confirms when it has.<\/span> A vague goal (&#8220;tidy it up&#8221;) produces a confident-sounding mess. A sharp goal produces finished work.<\/p>\n    <p>Three things turned the Downloads example into a good finish line, and they generalize to every goal you&#8217;ll ever write:<\/p>\n    <div class=\"flow\">\n      <div class=\"step\"><span class=\"n\">1<\/span><div><h4>A clear end state<\/h4><p>&#8220;No loose files left&#8221; \u2014 not &#8220;tidy it up.&#8221; Something that is unambiguously true or false.<\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">2<\/span><div><h4>A check it can run<\/h4><p>&#8220;Count the files.&#8221; The agent must be able to prove the end state from its own output.<\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">3<\/span><div><h4>A guardrail + a cap<\/h4><p>&#8220;Do not delete anything,&#8221; &#8220;stop after 30 turns.&#8221; Always cap the loop so it cannot run forever.<\/p><\/div><\/div>\n    <\/div>\n    <p>The pattern beneath all three: a <strong>measurable end state<\/strong>, an <strong>explicit proof method<\/strong>, and <strong>constraints you must not violate<\/strong>. If you can&#8217;t state those, you don&#8217;t have a loop \u2014 you have a wish.<\/p>\n    <div class=\"note\">\n      <span class=\"lbl\">\/\/ Pro tip \u2014 sequence, don&#8217;t supersize<\/span>\n      <span class=\"cite\">Rather than one enormous goal that risks context bloat and hard-to-audit diffs, break work into sequential goals each with a narrow, verifiable condition \u2014 review the diff, run tests, commit, then start the next goal.<\/span> Think pipeline, not monolith.\n    <\/div>\n  <\/section>\n\n  <section id=\"s5\">\n    <h2 class=\"sec\"><span class=\"no\">05<\/span>Self-verification: why the checker is the whole game<\/h2>\n    <p>Here is the single most important idea in this article. <span class=\"cite\">A model that wrote the code and is also asked whether the code is correct consistently over-reports success \u2014 so \/goal uses a separate, faster model specifically tasked with checking the completion condition after each turn.<\/span> The builder and the judge are different model instances. No grading its own homework.<\/p>\n    <div class=\"pull\">Point a loop at something open-ended and it either produces something valuable or it quietly becomes a very expensive machine for generating bad code at high speed.<span class=\"by\">\u2014 the core warning behind self-verification<\/span><\/div>\n    <p>That is why practitioners obsess over Boris Cherny&#8217;s fifth tip. <span class=\"cite\">Among his tips for running Claude autonomously for hours or days, the one that matters most is &#8220;self-verify end to end&#8221; \u2014 a loop is only as trustworthy as its ability to check its own work.<\/span> In <span class=\"mono\">\/goal<\/span> the evaluator is automatic; in custom workflows you must design it in explicitly.<\/p>\n    <p>One more piece of hygiene for parallel work: <span class=\"cite\">when multiple sub-agents touch the same repository, Claude Code&#8217;s isolation:worktree setting spawns a fresh git checkout for each sub-agent that cleans itself up, preventing agents from overwriting each other&#8217;s changes mid-execution.<\/span><\/p>\n  <\/section>\n\n  <div class=\"ad\">\n    <div class=\"affbox\">\n      <div class=\"afflbl\">Skill up \u00b7 land the work<\/div>\n      <a href=\"https:\/\/h.accesstrade.net\/sp\/cc?rk=0100puot00ntfe\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/h.accesstrade.net\/sp\/rr?rk=0100puot00ntfe\" alt=\"\u30b9\u30ad\u30eb\u30ad\u30e3\u30ea\u30a2\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\" border=\"0\" width=\"300\" height=\"250\"><\/a>\n    <\/div>\n  <\/div>\n\n  <section id=\"s6\">\n    <h2 class=\"sec\"><span class=\"no\">06<\/span>The five-part loop anatomy<\/h2>\n    <p>Strip away the hype and every production loop is the same six labels. <span class=\"cite\">Practitioners name the pieces that turn an agent from a clever assistant into a useful background process \u2014 a trigger, a scope, an action, a budget, a stop, and a report.<\/span> Write your loop as this spec before you touch a terminal:<\/p>\n    <div class=\"recipe\">\n      <div class=\"row\"><div class=\"key\">TRIGGER<\/div><div class=\"val\">every 15m \u00b7 on PR comment \u00b7 on CI failure<\/div><\/div>\n      <div class=\"row\"><div class=\"key\">SCOPE<\/div><div class=\"val\">open PRs authored by me, repo X only<\/div><\/div>\n      <div class=\"row\"><div class=\"key\">ACTION<\/div><div class=\"val\">run tests, fix lint, respond to review<\/div><\/div>\n      <div class=\"row\"><div class=\"key\">BUDGET<\/div><div class=\"val\">max 3 sub-agents per tick, 50k tokens<\/div><\/div>\n      <div class=\"row\"><div class=\"key\">STOP<\/div><div class=\"val\">all PRs green \u00b7 or 10 iterations \u00b7 or $5 spent<\/div><\/div>\n      <div class=\"row\"><div class=\"key\">REPORT<\/div><div class=\"val\">post summary to Slack #eng-bots<\/div><\/div>\n    <\/div>\n    <p>If any row is blank, the loop is unsafe to deploy. The blank row is exactly where the runaway cost or the silent error will appear.<\/p>\n  <\/section>\n\n  <section id=\"s7\">\n    <h2 class=\"sec\"><span class=\"no\">07<\/span>Goal-oriented design, step by step<\/h2>\n    <p>Here is the discipline that keeps long autonomous runs from going off the rails.<\/p>\n    <div class=\"flow\">\n      <div class=\"step\"><span class=\"n\">1<\/span><div><h4>Orient before you loop<\/h4><p><span class=\"cite\">Spend a few turns showing Claude the relevant files, naming conventions, and architecture before starting the loop \u2014 its initial interpretation shapes everything that follows.<\/span><\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">2<\/span><div><h4>Write one verifiable goal<\/h4><p>One measurable end state, one proof method, one guardrail. Narrow beats grand.<\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">3<\/span><div><h4>Match the interval to the work<\/h4><p><span class=\"cite\">A 30-second loop that runs a full test suite will overlap with itself or exhaust rate limits \u2014 match the interval to how long a cycle actually takes; if unsure, start longer.<\/span><\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">4<\/span><div><h4>Watch the first iteration<\/h4><p><span class=\"cite\">If the loop starts down the wrong path, stop it, correct course, and restart \u2014 the first cycle sets the trajectory.<\/span><\/p><\/div><\/div>\n      <div class=\"step\"><span class=\"n\">5<\/span><div><h4>Cap, log, and report<\/h4><p><span class=\"cite\">Build blocker-handling, logging, and exit conditions into your commands before deploying autonomously; check \/status before leaving and \/cost to see cumulative spend.<\/span><\/p><\/div><\/div>\n    <\/div>\n  <\/section>\n\n  <section id=\"s8\">\n    <h2 class=\"sec\"><span class=\"no\">08<\/span>Worked example: a content automation loop<\/h2>\n    <p>The same anatomy transfers cleanly to <strong>digital marketing automation<\/strong> \u2014 SNS, X, and YouTube workflows. The trick is the same as in code: don&#8217;t just generate, <em>verify<\/em>. A doer drafts; a separate checker scores; only what passes moves forward.<\/p>\n    <div class=\"code\"><span class=\"c\"># Content loop (design sketch \u2014 adapt to your tools &amp; policies)<\/span>\n<span class=\"k\">\/goal<\/span> Produce today&#8217;s content batch:\n  1. pull 1 unused topic from the ideas sheet\n  2. draft 5 posts per CLAUDE.md tone &amp; banned-words rules\n  3. have a <span class=\"g\">separate checker model<\/span> score hook \/ clarity \/ CTA out of 100\n  4. queue only drafts scoring <span class=\"s\">>= 85<\/span> for human review\n  5. log a one-line summary; discard the rest\n  <span class=\"c\"># stop after 3 approved posts; budget 40k tokens; never auto-publish<\/span><\/div>\n    <p>Two design choices make this safe. First, <strong>the checker is a different model from the writer<\/strong> \u2014 no self-grading. Second, the loop <strong>queues for human review and never auto-publishes<\/strong>. <span class=\"cite\">Boris Cherny&#8217;s framing that everyone becomes a builder \u2014 designers, finance, chief-of-staff all shipping work through loops \u2014 applies here too: the content owner stops being the person who writes each post and becomes the person who designs the loop that produces them.<\/span><\/p>\n    <div class=\"note\">\n      <span class=\"lbl\">\/\/ Compliance first<\/span>\n      Every platform (X, YouTube, and others) has its own <strong>automation and API policies<\/strong>, rate limits, and disclosure rules. Designing a loop does not exempt you from them. Keep a human approval gate before publishing, and confirm each platform&#8217;s current terms before you automate.\n    <\/div>\n  <\/section>\n\n  <div class=\"yt\">\n    <iframe src=\"https:\/\/www.youtube.com\/embed\/WHQoL88NRAk\" title=\"Loop engineering walkthrough\" loading=\"lazy\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n  <\/div>\n\n  <section id=\"s9\">\n    <h2 class=\"sec\"><span class=\"no\">09<\/span>Budget guards &amp; the 10x token problem<\/h2>\n    <p>The biggest risk in autonomous loops is not bad output \u2014 it&#8217;s the invoice. <span class=\"cite\">Every tool call in an agentic loop adds context that gets re-sent to the model on every subsequent call, so by the 20th iteration the cumulative input per call can exceed 50,000 tokens.<\/span> Cost compounds silently.<\/p>\n    <p>The numbers are sobering. <span class=\"cite\">At Opus 4.8&#8217;s input pricing, a single late-loop step can cost roughly $0.25, and a 200-iteration autonomous session on an open-ended task can cost $80 or more \u2014 which is why the June 15, 2026 Agent SDK billing change separated automated workloads onto their own credit pool.<\/span> Flat-rate subscriptions were never designed for agent-level compute.<\/p>\n    <div class=\"grid2\">\n      <div class=\"card good\"><div class=\"ic\">GUARD 01<\/div><h4>Write the STOP first<\/h4><p>Iteration cap, dollar cap, and a &#8220;no progress&#8221; cap. Decide how it ends before you start it.<\/p><\/div>\n      <div class=\"card good\"><div class=\"ic\">GUARD 02<\/div><h4>Summarize, then discard<\/h4><p>Have each cycle record a one-line summary and drop the detail, so context doesn&#8217;t balloon.<\/p><\/div>\n      <div class=\"card good\"><div class=\"ic\">GUARD 03<\/div><h4>Sequence small goals<\/h4><p>Many narrow goals with commits between them cost less and audit better than one giant run.<\/p><\/div>\n      <div class=\"card good\"><div class=\"ic\">GUARD 04<\/div><h4>Check \/cost &amp; \/status<\/h4><p>Never leave an indefinite loop running unseen. Know your kill switch before you walk away.<\/p><\/div>\n    <\/div>\n    <p>Addy Osmani&#8217;s closing line is the right north star: build the loop, but build it like someone who intends to stay the engineer \u2014 not just the person who presses go.<\/p>\n  <\/section>\n\n  <section id=\"s10\">\n    <h2 class=\"sec\"><span class=\"no\">10<\/span>Pros, cons &amp; honest limits<\/h2>\n    <div class=\"grid2\">\n      <div class=\"card good\"><div class=\"ic\">+ STRENGTH<\/div><h4>Outcome, not babysitting<\/h4><p>You define &#8220;done&#8221; once and return to finished work instead of typing &#8220;keep going&#8221; twenty times.<\/p><\/div>\n      <div class=\"card good\"><div class=\"ic\">+ STRENGTH<\/div><h4>Built-in quality gate<\/h4><p>A separate checker catches the over-confident &#8220;success&#8221; before it ships.<\/p><\/div>\n      <div class=\"card good\"><div class=\"ic\">+ STRENGTH<\/div><h4>Scales the repeatable<\/h4><p>Inbox triage, monitoring, first-pass screening \u2014 the work that drowns you becomes background.<\/p><\/div>\n      <div class=\"card bad\"><div class=\"ic\">\u2013 LIMIT<\/div><h4>Token cost compounds<\/h4><p>Without budget guards, late-loop steps get expensive fast. Cost design is mandatory.<\/p><\/div>\n      <div class=\"card bad\"><div class=\"ic\">\u2013 LIMIT<\/div><h4>Session-bound<\/h4><p><span class=\"cite\">\/goal and \/loop operate within the bounds of a terminal session;<\/span> true unattended runs need cloud\/scheduled setups.<\/p><\/div>\n      <div class=\"card bad\"><div class=\"ic\">\u2013 LIMIT<\/div><h4>A weak check fails silently<\/h4><p>An unverifiable goal or a soft checker amplifies errors at speed. The design <em>is<\/em> the result.<\/p><\/div>\n    <\/div>\n  <\/section>\n\n  <section id=\"s11\">\n    <h2 class=\"sec\"><span class=\"no\">11<\/span>Voices from the field<\/h2>\n    <div class=\"voice\"><p>I stopped trying to write the perfect prompt and started writing the perfect check. The day I could state &#8220;done&#8221; as a number my agent could measure, everything changed.<\/p><div class=\"who\">\u2014 Staff engineer, fintech<\/div><\/div>\n    <div class=\"voice\"><p>The AI was never the hard part. Watching it grade its own homework and report success was. Splitting the doer and the checker into two models is what finally made me trust an overnight run.<\/p><div class=\"who\">\u2014 Indie builder, content automation<\/div><\/div>\n    <div class=\"voice\"><p>My first runaway bill taught me the lesson the docs couldn&#8217;t: write the STOP condition before the ACTION. Iteration cap, dollar cap, no-progress cap. Then sleep fine.<\/p><div class=\"who\">\u2014 Solo founder &amp; RIA<\/div><\/div>\n  <\/section>\n\n  <section id=\"s12\">\n    <h2 class=\"sec\"><span class=\"no\">12<\/span>Your first loop in under an hour<\/h2>\n    <p>Don&#8217;t architect an empire. <span class=\"cite\">Pick one task you repeat every week and write three lines: when it starts, what &#8220;done&#8221; looks like, and how the AI proves it&#8217;s done.<\/span> That sentence is your entire spec.<\/p>\n    <p>Then try it on something small and harmless first \u2014 sorting a folder, drafting one recurring report \u2014 and <strong>watch the first iteration<\/strong>. That feeling, the agent driving itself to a finish line and stopping on its own, is the whole point. Once you trust the check, you add the budget guard, then the schedule. Small loop first. Empire later.<\/p>\n  <\/section>\n\n  <div class=\"ctablock\" id=\"cta\">\n    <h3>Hand your &#8220;keep going&#8221; work to a loop.<\/h3>\n    <p>Move from the person who prompts to the person who designs the system. Build the skills and find the work to operate on the design side of AI automation \u2014 start here.<\/p>\n    <a class=\"btn\" href=\"https:\/\/h.accesstrade.net\/sp\/cc?rk=0100puot00ntfe\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\">\u21bb Talk to a skill &amp; career agent<\/a>\n  <\/div>\n\n  <h2 class=\"sec\" id=\"faq\"><span class=\"no\">FAQ<\/span>Frequently asked questions<\/h2>\n  <div class=\"faq\">\n    <details open><summary><span>What is the difference between \/loop and \/goal in Claude Code?<\/span><\/summary><div class=\"ans\">\/loop is the engine \u2014 it repeats a prompt or slash command on a schedule, ideal for recurring monitoring. \/goal is the compass \u2014 you state one verifiable completion condition, and a separate fast checker model confirms after each turn whether it&#8217;s met, so the agent keeps working until the goal clears. You can pair them: set the goal, loop each phase until the checker says yes.<\/div><\/details>\n    <details><summary><span>Why does a loop need a separate verifier model?<\/span><\/summary><div class=\"ans\">A model that wrote the work and is also asked whether the work is correct tends to over-report success. \/goal uses a separate, faster checker model to evaluate the completion condition after each turn, so the doer and the checker are different instances \u2014 no grading its own homework. In custom workflows you must design this verifier in explicitly.<\/div><\/details>\n    <details><summary><span>Which Claude Code version do I need for \/goal?<\/span><\/summary><div class=\"ans\">The \/goal command was added in Claude Code version 2.1.139 during the week of May 11, 2026, and does not exist in earlier versions. Type \/goal clear to stop a goal early, and check the official docs for version-specific release notes since the completion-checker behavior continues to be refined.<\/div><\/details>\n    <details><summary><span>Why do agentic loops cost so much more than single prompts?<\/span><\/summary><div class=\"ans\">Every tool call adds context that&#8217;s re-sent on every subsequent call, so cumulative input grows each iteration and late-loop steps can carry tens of thousands of tokens. A long open-ended session can cost far more than a single prompt, which is exactly why a budget guard, a hard iteration cap, and a dollar cap are essential.<\/div><\/details>\n    <details><summary><span>Can I use these loops for SNS, X, or YouTube automation?<\/span><\/summary><div class=\"ans\">Yes \u2014 the doer \/ checker \/ stop pattern transfers to content workflows. But every platform has its own automation and API policies, rate limits, and disclosure rules. Keep a human approval gate before publishing, never auto-publish blindly, set hard budget and stop conditions, and confirm each platform&#8217;s current terms before automating.<\/div><\/details>\n    <details><summary><span>Does loop engineering make prompt engineering obsolete?<\/span><\/summary><div class=\"ans\">No. The quality of the single instruction the loop runs still matters. The change is who runs it: instead of you typing each prompt, you design the system that prompts the agent against a goal, on a schedule, with verification. Prompt craft lives inside the loop; loop design wraps around it.<\/div><\/details>\n  <\/div>\n\n  <!-- Amazon + Cursor -->\n  <div class=\"affbox\" style=\"margin:34px 0;text-align:center\">\n    <div class=\"afflbl\">Related tools &amp; learning<\/div>\n    <p style=\"font-size:.9rem;color:var(--ink2);margin-bottom:14px\">Resources to go deeper on loop design and AI-assisted coding.<\/p>\n    <p style=\"font-family:var(--mono);font-size:.86rem;margin-bottom:8px\"><a href=\"https:\/\/amzn.to\/4adCPw8\" rel=\"nofollow sponsored\" style=\"color:var(--blue);font-weight:700\">\u25b6 Browse related books &amp; gear on Amazon<\/a><\/p>\n    <p style=\"font-family:var(--mono);font-size:.86rem\"><a href=\"https:\/\/cursor.com\/referral?code=77FGR9JHH4QJ\" rel=\"nofollow\" style=\"color:var(--orange);font-weight:700\">\u25c6 Try Cursor AI (referral link)<\/a><\/p>\n  <\/div>\n\n  <!-- Rakuten widget -->\n  <div class=\"affbox\" style=\"margin:24px 0;text-align:center\">\n    <div class=\"afflbl\">Rakuten picks<\/div>\n    <script type=\"text\/javascript\">rakuten_design=\"slide\";rakuten_affiliateId=\"1789bf80.7ad7d013.1789bf81.6544ae39\";rakuten_items=\"ctsmatch\";rakuten_genreId=\"0\";rakuten_size=\"728x200\";rakuten_target=\"_blank\";rakuten_theme=\"gray\";rakuten_border=\"off\";rakuten_auto_mode=\"on\";rakuten_genre_title=\"off\";rakuten_recommend=\"on\";rakuten_ts=\"1781877083605\";<\/script><script type=\"text\/javascript\" src=\"https:\/\/xml.affiliate.rakuten.co.jp\/widget\/js\/rakuten_widget.js?20230106\"><\/script>\n    <BR>\n  <\/div>\n\n  <!-- Rakuten product box (verbatim) -->\n  <div style=\"display:flex;justify-content:center;margin:24px 0\">\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><div style=\"border:1px solid #95a5a6;border-radius:.75rem;background-color:#FFFFFF;width:504px;margin:0px;padding:5px;text-align:center;overflow:hidden;\"><table><tr><td style=\"width:240px\"><a href=\"https:\/\/hb.afl.rakuten.co.jp\/ichiba\/552dd711.67147af4.552dd712.79392bd1\/?pc=https%3A%2F%2Fitem.rakuten.co.jp%2Fmiis%2Fmiis-we6%2F&#038;link_type=picttext&#038;ut=eyJwYWdlIjoiaXRlbSIsInR5cGUiOiJwaWN0dGV4dCIsInNpemUiOiIyNDB4MjQwIiwibmFtIjoxLCJuYW1wIjoicmlnaHQiLCJjb20iOjEsImNvbXAiOiJkb3duIiwicHJpY2UiOjEsImJvciI6MSwiY29sIjoxLCJiYnRuIjoxLCJwcm9kIjowLCJhbXAiOmZhbHNlfQ%3D%3D\" target=\"_blank\" rel=\"nofollow sponsored noopener\" style=\"word-wrap:break-word;\"><img decoding=\"async\" src=\"https:\/\/hbb.afl.rakuten.co.jp\/hgb\/552dd711.67147af4.552dd712.79392bd1\/?me_id=1398750&#038;item_id=10000057&#038;pc=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fmiis%2Fcabinet%2F08139671%2F13353307%2F6month_lumina.jpg%3F_ex%3D240x240&#038;s=240x240&#038;t=picttext\" border=\"0\" style=\"margin:2px\" alt=\"[\u5546\u54c1\u4fa1\u683c\u306b\u95a2\u3057\u307e\u3057\u3066\u306f\u3001\u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u305f\u6642\u70b9\u3068\u73fe\u6642\u70b9\u3067\u60c5\u5831\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3054\u3056\u3044\u307e\u3059\u3002]\" title=\"[\u5546\u54c1\u4fa1\u683c\u306b\u95a2\u3057\u307e\u3057\u3066\u306f\u3001\u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u305f\u6642\u70b9\u3068\u73fe\u6642\u70b9\u3067\u60c5\u5831\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3054\u3056\u3044\u307e\u3059\u3002]\"><\/a><\/td><td style=\"vertical-align:top;width:248px;display: block;\"><p style=\"font-size:12px;line-height:1.4em;text-align:left;margin:0px;padding:2px 6px;word-wrap:break-word\"><a href=\"https:\/\/hb.afl.rakuten.co.jp\/ichiba\/552dd711.67147af4.552dd712.79392bd1\/?pc=https%3A%2F%2Fitem.rakuten.co.jp%2Fmiis%2Fmiis-we6%2F&#038;link_type=picttext&#038;ut=eyJwYWdlIjoiaXRlbSIsInR5cGUiOiJwaWN0dGV4dCIsInNpemUiOiIyNDB4MjQwIiwibmFtIjoxLCJuYW1wIjoicmlnaHQiLCJjb20iOjEsImNvbXAiOiJkb3duIiwicHJpY2UiOjEsImJvciI6MSwiY29sIjoxLCJiYnRuIjoxLCJwcm9kIjowLCJhbXAiOmZhbHNlfQ%3D%3D\" target=\"_blank\" rel=\"nofollow sponsored noopener\" style=\"word-wrap:break-word;\">\u3010\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u30bb\u30fc\u30eb\u54c1\u3011\u516c\u5f0f\u300a6\u304b\u6708\u96c6\u4e2d\u30bb\u30c3\u30c8\u300b MiiS \u30df\u30fc\u30ba \u30db\u30ef\u30a4\u30c8\u30cb\u30f3\u30b0\u30b8\u30a7\u30eb \u30db\u30ef\u30a4\u30c8\u30cb\u30f3\u30b0\u30b8\u30a7\u30eb \u6b6f\u306e\u7f8e\u5bb9\u6db2 \u6b6f\u78e8\u304d\u30b8\u30a7\u30eb \u30db\u30ef\u30a4\u30c8\u30cb\u30f3\u30b0 \u30b8\u30a7\u30eb \u866b\u6b6f\u4e88\u9632 \u81ea\u5b85 \u7c21\u5358 \u53e3\u81ed \u30aa\u30fc\u30e9\u30eb\u30b1\u30a2 \u6b6f\u78e8\u304d \u6b6f \u9ec4\u3070\u307f<\/a><br><span >\u4fa1\u683c\uff1a9,900\u5186\uff08\u7a0e\u8fbc\u3001\u9001\u6599\u5225)<\/span> <span style=\"color:#BBB\">(2026\/6\/24\u6642\u70b9)<\/span><\/p><div style=\"margin:10px;\"><a href=\"https:\/\/hb.afl.rakuten.co.jp\/ichiba\/552dd711.67147af4.552dd712.79392bd1\/?pc=https%3A%2F%2Fitem.rakuten.co.jp%2Fmiis%2Fmiis-we6%2F&#038;link_type=picttext&#038;ut=eyJwYWdlIjoiaXRlbSIsInR5cGUiOiJwaWN0dGV4dCIsInNpemUiOiIyNDB4MjQwIiwibmFtIjoxLCJuYW1wIjoicmlnaHQiLCJjb20iOjEsImNvbXAiOiJkb3duIiwicHJpY2UiOjEsImJvciI6MSwiY29sIjoxLCJiYnRuIjoxLCJwcm9kIjowLCJhbXAiOmZhbHNlfQ%3D%3D\" target=\"_blank\" rel=\"nofollow sponsored noopener\" style=\"word-wrap:break-word;\"><img decoding=\"async\" src=\"https:\/\/static.affiliate.rakuten.co.jp\/makelink\/rl.svg\" style=\"float:left;max-height:27px;width:auto;margin-top:0\" ><\/a><a href=\"https:\/\/hb.afl.rakuten.co.jp\/ichiba\/552dd711.67147af4.552dd712.79392bd1\/?pc=https%3A%2F%2Fitem.rakuten.co.jp%2Fmiis%2Fmiis-we6%2F%3Fscid%3Daf_pc_bbtn&#038;link_type=picttext&#038;ut=eyJwYWdlIjoiaXRlbSIsInR5cGUiOiJwaWN0dGV4dCIsInNpemUiOiIyNDB4MjQwIiwibmFtIjoxLCJuYW1wIjoicmlnaHQiLCJjb20iOjEsImNvbXAiOiJkb3duIiwicHJpY2UiOjEsImJvciI6MSwiY29sIjoxLCJiYnRuIjoxLCJwcm9kIjowLCJhbXAiOmZhbHNlfQ==\" target=\"_blank\" rel=\"nofollow sponsored noopener\" style=\"word-wrap:break-word;\"><div style=\"float:right;width:41%;height:27px;background-color:#bf0000;color:#fff!important;font-size:12px;font-weight:500;line-height:27px;margin-left:1px;padding: 0 12px;border-radius:16px;cursor:pointer;text-align:center;\"> \u697d\u5929\u3067\u8cfc\u5165 <\/div><\/a><\/div><\/td><\/tr><\/table><\/div><br><p style=\"color:#000000;font-size:12px;line-height:1.4em;margin:5px;word-wrap:break-word\"><\/p><\/td><\/tr><\/table>\n  <\/div>\n\n  <!-- note series -->\n  <div class=\"note-series\">\n    <div class=\"hd\">\ud83d\udcdd AI\u3060\u3051\u3067note\u53ce\u76ca\u5316\u306b\u6311\u6226\u4e2d\u3010\u5168\u8a18\u9332\u516c\u958b\u3011<\/div>\n    <div class=\"sb\">20\u5e74\u30a8\u30f3\u30b8\u30cb\u30a2\uff0625\u5e74\u7d4c\u55b6\u306e\u79c1\u304c\u3001AI\u3060\u3051\u3067note\u306e\u53ce\u76ca\u5316\u306b\u6311\u6226\u3059\u308b\u5b9f\u9332\u30b7\u30ea\u30fc\u30ba\u3067\u3059\u3002<\/div>\n    <ul>\n      <li><a href=\"https:\/\/note.com\/ripon1039\/n\/n0957ad76fc1a\"><span class=\"tag\">\u25b6 \u307e\u305a\u306f\u3053\u3053\u304b\u3089\uff08\u6311\u6226\u5ba3\u8a00\u30fb\u7121\u6599\uff09<\/span>AI\u3060\u3051\u3067note\u53ce\u76ca\u5316\u306b\u6311\u6226\u3059\u308b\u5ba3\u8a00<\/a><\/li>\n      <li><a href=\"https:\/\/note.com\/ripon1039\/n\/nf264768e96aa\"><span class=\"tag\">\u25b6 \u7a3c\u3052\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u9078\u3073\u65b9\uff08\u7121\u6599\uff09<\/span>\u3069\u306e\u30b8\u30e3\u30f3\u30eb\u306a\u3089\u58f2\u308c\u308b\u306e\u304b\u3092\u691c\u8a3c<\/a><\/li>\n      <li><a href=\"https:\/\/note.com\/ripon1039\/n\/n3bde0bd23c74\"><span class=\"tag\">\u25b6 \u3010\u5b9f\u9332\u3011\u516c\u958b1\u9031\u9593\u3001\u6709\u6599\u306e\u58f2\u4e0a\u306f0\u5186\u3067\u3057\u305f\uff08\u7121\u6599\uff09<\/span>\u30ea\u30a2\u30eb\u306a\u5931\u6557\u306e\u8a18\u9332<\/a><\/li>\n      <li><a href=\"https:\/\/note.com\/ripon1039\/n\/nff5145cf2d94\"><span class=\"tag\">\u25b6 AI\u30671\u65e53\u672c\u91cf\u7523\u3059\u308b\u65b9\u6cd5\uff08\u5b9f\u30d7\u30ed\u30f3\u30d7\u30c8\u4ed8\u304d\uff09<\/span>\u91cf\u7523\u30d5\u30ed\u30fc\u3092\u516c\u958b<\/a><\/li>\n      <li><a href=\"https:\/\/note.com\/ripon1039\/n\/nb9856f8869f8\"><span class=\"tag\">\u25b6 \u58f2\u308c\u308b\u9ec4\u91d1\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff5c\u30b3\u30d4\u30da\u53ef<\/span>\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a><\/li>\n    <\/ul>\n    <div class=\"today\">\n      <ul><li><a href=\"https:\/\/note.com\/ripon1039\/n\/n7b439477ad1c\"><span class=\"tag\">\u25bc \u4eca\u65e5\u306e\u8a18\u4e8b\u306f\u3053\u3061\u3089<\/span>\u6700\u65b0\u306e\u5b9f\u9332\u8a18\u4e8b\u3092\u8aad\u3080<\/a><\/li><\/ul>\n    <\/div>\n    <div class=\"tags\">#AI #note #\u526f\u696d<\/div>\n  <\/div>\n\n  <div class=\"yt\">\n    <iframe src=\"https:\/\/www.youtube.com\/embed\/fAbn9PPxZcc\" title=\"Related video\" loading=\"lazy\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n  <\/div>\n\n<\/main>\n\n<aside class=\"side\">\n  <div class=\"swid\">\n    <h4>\/\/ Key takeaways<\/h4>\n    <p>\u00b7 Leverage moved from prompting to <strong>loop design<\/strong>.<\/p>\n    <p>\u00b7 <span class=\"mono\" style=\"font-size:.8rem\">\/loop<\/span> = engine, <span class=\"mono\" style=\"font-size:.8rem\">\/goal<\/span> = compass. Pair them.<\/p>\n    <p>\u00b7 The doer and the checker must be <strong>different models<\/strong>.<\/p>\n    <p>\u00b7 Write the STOP and the budget before the ACTION.<\/p>\n  <\/div>\n  <div class=\"swid\">\n    <h4>\/\/ Build the skills<\/h4>\n    <p>Move to the design side of AI automation.<\/p>\n    <a class=\"btn\" href=\"https:\/\/h.accesstrade.net\/sp\/cc?rk=0100puot00ntfe\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\">Talk to an agent \u2192<\/a>\n  <\/div>\n  <div class=\"swid\">\n    <h4>\/\/ Author<\/h4>\n    <p><strong style=\"color:var(--blue)\">Ripon<\/strong><br>20 years in engineering and 25 years in business management. Documenting an AI-only path to monetizing note.<\/p>\n  <\/div>\n<\/aside>\n\n<\/div>\n\n<footer>\n  <div class=\"foot-in\">\n    <div class=\"fdisc\">\n      <b>Disclaimer \u00b7 results &amp; cost notice<\/b>\u3000This article is general educational information about AI automation and Claude Code and does not guarantee any specific income, result, or effect. &#8220;Passive income AI&#8221; and automation outcomes vary by individual and effort. Tool specs, pricing, model availability, and platform automation policies change, and agentic loops consume tokens that incur real charges. Content reflects interpretation of public information available at the time of writing and is not warranted for accuracy or currency. Make final adoption and deployment decisions at your own responsibility.\n    <\/div>\n    <div class=\"fdisc\" style=\"border-left:5px solid var(--blue)\">\n      <b>Affiliate disclosure<\/b>\u3000This page contains affiliate advertising (A8.net \/ AccessTrade, Amazon Associates, Rakuten Affiliate, Cursor referral, etc.). The operator may earn a commission when you purchase or sign up through these links.\n    <\/div>\n    <div class=\"brand\" style=\"font-family:var(--disp);font-weight:700;font-size:1.05rem;display:flex;align-items:center;gap:10px\"><span style=\"width:22px;height:22px;border:2px solid var(--ink);border-radius:3px;display:grid;place-items:center;font-family:var(--mono);font-size:.7rem;color:var(--blue)\">\u21bb<\/span>AYUCOM <span style=\"font-family:var(--mono);font-weight:400;font-size:.72rem;color:var(--fog)\">\/loop_lab<\/span><\/div>\n    <p>A field journal on AI automation, side income, and autonomous agents.<\/p>\n    <p class=\"small\">\u00a9 2026 AYUCOM CO., LTD. All rights reserved.<\/p>\n  <\/div>\n<\/footer>\n\n<\/body>\n<\/html>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/form.hit-ad.net\/?p=165\">\u5ca9\u624b\u770c\u7523\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u56fd\u7523\u725b\u3092\u4f7f\u3063\u305f\u8089\u304a\u3058\u3055\u3093\u62d8\u308a\u306e\u30cf\u30f3\u30d0\u30fc\u30b0\uff01\u9580\u5d0e\u719f\u6210\u8089\u300c\u683c\u4e4b\u9032\u300d<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/form.hit-ad.net\/?p=163\">\u30a8\u30f3\u5a5a\u6d3b\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u5fb9\u5e95\u89e3\u8aac\u6765\u5e97\u4e0d\u8981\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u7d50\u5a5a\u76f8\u8ac7\u6240\u306f\u672c\u5f53\u306b\u51fa\u4f1a\u3048\u308b\uff1f<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/form.hit-ad.net\/?p=159\">\u65e5\u672c\u8a9e\u3092\u4e00\u7dd2\u306b\u52c9\u5f37\u3057\u307e\u3057\u3087\u3046 \ud83c\udf38<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/form.hit-ad.net\/?p=157\">\u3010\u65e5\u672c\u8a9e\u3011\u8cb7\u3044\u7269\u3067\u4f7f\u3048\u308b\u5fc5\u9808\u30d5\u30ec\u30fc\u30ba\uff01\u3044\u304f\u3089\u3067\u3059\u304b\uff1f| Japanese with Maki #14<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/form.hit-ad.net\/?p=155\">Maki \/ \u307e\u304dJapanese teacher \u00b7 Tokyo<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Mastering Claude Code \/loop &#038;a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[24,27,23],"tags":[],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-aiworkshop-tokyo","category-claude","category-23"],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":2,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/form.hit-ad.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}