{"id":515954,"date":"2026-06-29T02:57:18","date_gmt":"2026-06-29T02:57:18","guid":{"rendered":"https:\/\/www.newsbeep.com\/il\/515954\/"},"modified":"2026-06-29T02:57:18","modified_gmt":"2026-06-29T02:57:18","slug":"i-stopped-babysitting-claude-code-by-giving-it-one-persistent-goal-instead-of-step-by-step-prompts","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/il\/515954\/","title":{"rendered":"I stopped babysitting Claude Code by giving it one persistent goal instead of step-by-step prompts"},"content":{"rendered":"<p>There are countless reasons why AI-assisted coding tools like Claude Code, Codex, Cursor, Windsurf, and so on, are incredible. They&#8217;ve practically removed the barrier there once was to begin coding, and turned what used to be hours of grinding through documentation into a conversation. You can now go from a chaotic idea spiraling in your head into a fully working prototype within seconds, and a non-technical person no longer needs to sign up to a months-long course just to build the thing they have in mind.<\/p>\n<p>These tools have also <a href=\"https:\/\/www.xda-developers.com\/every-developer-know-use-ai-coding-tools-daily-but-none-trust-code\/\" target=\"_blank\" rel=\"nofollow noopener\">removed a lot of the grunt-work developers never particularly enjoyed <\/a>in the first place. So while I&#8217;m a huge fan of these tools (despite them putting my future career in literal danger), they&#8217;re also what turned me into something I never quite signed up to be: a babysitter. That was until I began giving Claude Code one persistent goal instead of step-by-step prompts, and finally got to set the babysitting aside.<\/p>\n<p>Want to stay in the loop with the latest in AI? The XDA AI Insider newsletter drops weekly with deep dives, tool recommendations, and hands-on coverage you won&#8217;t find anywhere else on the site. Subscribe by <a href=\"https:\/\/www.xda-developers.com\/profile\/account\/\" target=\"_blank\" rel=\"nofollow noopener\">modifying your newsletter preferences<\/a>!<\/p>\n<p>                        Here&#8217;s what the average coding session turns you into<\/p>\n<p>            I was the loop<\/p>\n<p>        <img width=\"1650\" height=\"1100\" loading=\"lazy\" decoding=\"async\" alt=\"developer coding on laptop with terminal window displaying json and npm commands\" data-img-url=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2026\/06\/developer-coding-on-laptop-with-terminal-window-displaying-json-and-npm-commands.jpg\" src=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2026\/06\/developer-coding-on-laptop-with-terminal-window-displaying-json-and-npm-commands.jpg\" class=\"img-brightness-opt-out\"\/><\/p>\n<p>If you&#8217;ve been keeping up with the memes and TikTok surfacing lately, you&#8217;ve likely seen at least one post about someone walking around with their laptop open just so they can keep tabs on what their coding agent is doing. A lot of the time, it&#8217;s to prevent the screen from closing and Claude Code (or whatever agent they&#8217;re running) from pausing mid-task, waiting for a permission prompt that no one&#8217;s there to approve.<\/p>\n<p>However, at other times, it&#8217;s to catch the agent the moment it starts heading in the wrong direction, before it burns twenty minutes and a pile of tokens confidently building the wrong thing. And while I haven&#8217;t reached the point where I&#8217;m walking around with my laptop open in my hand, I&#8217;ve found myself doing the course-correcting far too many times.<\/p>\n<p>For every task I handed off, I&#8217;d hover over the terminal, watch it work, catch it the second it veered off course, and type some version of &#8220;no, not like that&#8221; until it got there. At other times, I would sit there waiting for it to finish a pass just so I could run tests myself, read what failed, paste the errors back, and send it in for another round. Given how terrible usage limits are nowadays, this back-and-forth would end up eating into my session limits significantly (despite being on the Max plan).<\/p>\n<p>Trust me, I tried everything. I made sure each prompt was as detailed as I could make it, front-loading every constraint and edge case I could think of so it wouldn&#8217;t wander off in the first place. One of Anthropic&#8217;s engineers&#8217; biggest tips has consistently been giving Claude a way to verify its own work, whether that&#8217;s through the Claude in Chrome extension or a test suite it can run against itself, so it can catch its own mistakes instead of waiting on me to catch them. Despite trying that, Claude Code verifying its own work and me verifying the output would always reap different results, and I would ultimately find myself in the same exact situation as before.<\/p>\n<p>                        The \/goal command was the only thing that finally closed that gap<\/p>\n<p>            It runs the loop so you don&#8217;t have to<\/p>\n<p>Anthropic rolled out the \/goal command back in May, and if you weren&#8217;t paying close attention, you might have just ignored it by labeling it as &#8220;yet another slash command&#8221; just like I did. However, it turned out to be the one thing that actually took me out of the loop I&#8217;d been stuck in. <\/p>\n<p>Here&#8217;s what it does. Normally, Claude Code does one pass at your task, stops, and hands control back to you. With \/goal, you set a condition instead, and Claude keeps working until that condition is met or until you stop it manually. The condition isn&#8217;t checked by the model doing the work, though. A separate, smaller model reads the session transcript after each pass and decides one thing: whether the condition has been met. If it hasn&#8217;t, the loop continues. (I went into the full mechanics of how that evaluator works in a <a href=\"https:\/\/www.xda-developers.com\/finally-understood-claude-code-goal-command\/\" target=\"_blank\" rel=\"nofollow noopener\">separate piece if you want more details<\/a>). <\/p>\n<p>That checking step is exactly what I&#8217;d been doing manually all along. I was the one reading each result, deciding whether it was good enough, and typing &#8220;keep going&#8221; or &#8220;no, not like that&#8221; until it got there. The \/goal command took that off my plate entirely. I set the condition once, and Claude handled the back-and-forth on its own instead of stopping to wait on me every round. <\/p>\n<p>So, what does this actually look like in practice? Anthropic <a href=\"https:\/\/code.claude.com\/docs\/en\/goal\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">lists a handful of use cases in its support documentation<\/a>, and they all share one trait \u2014 a finish line a second model can actually check. Migrating a module to a new API until every call site compiles and the tests pass. Splitting an oversized file into smaller modules until each one&#8217;s under a size budget. Working through a backlog of labeled issues until the queue is empty. <\/p>\n<p>                                                                                                                            <a href=\"https:\/\/www.xda-developers.com\/i-use-opencode-over-claude-code-and-its-every-bit-as-good\/\" rel=\"nofollow noopener\" target=\"_blank\"><br \/>\n                        <img width=\"440\" height=\"248\" loading=\"lazy\" decoding=\"async\" alt=\"laptop screen displaying code editor with terminal window showing html and css programming\" data-img-url=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2026\/06\/laptop-screen-displaying-code-editor-with-terminal-window-showing-html-and-css-programming.jpg\" src=\"https:\/\/www.newsbeep.com\/il\/wp-content\/uploads\/2026\/06\/laptop-screen-displaying-code-editor-with-terminal-window-showing-html-and-css-programming.jpg\"\/><\/p>\n<p>                    <\/a><\/p>\n<p>                    Related<\/p>\n<p>\t\t<a href=\"https:\/\/www.xda-developers.com\/i-use-opencode-over-claude-code-and-its-every-bit-as-good\/\" title=\"I use OpenCode over Claude Code, and it&#039;s every bit as good\" target=\"_blank\" rel=\"nofollow noopener\"><br \/>\n\t\t\tI use OpenCode over Claude Code, and it&#8217;s every bit as good<br \/>\n\t\t<\/a><\/p>\n<p class=\"display-card-excerpt\">Beat-for-beat, feature-for-feature.<\/p>\n<p>The thing they all have in common is a real, measurable end state, which is exactly what the condition needs. Anthropic recommends building yours around three things: one measurable end state (a test result, a build exit code, an empty queue), a stated check for how Claude should prove it (&#8220;npm test exits 0&#8221;), and any constraints that shouldn&#8217;t change along the way (&#8220;no other test file is modified&#8221;). <\/p>\n<p>Using the \/goal command is as straightforward as typing \/goal followed by the condition you want met. There&#8217;s no separate prompt to send afterward, and setting the goal kicks off the first turn on its own. A small indicator shows you how long it&#8217;s been running while it works.<\/p>\n<p>            I regret ignoring the \/goal command for so long<\/p>\n<p>Given how quickly Anthropic (and every other AI lab) has been dropping features lately, it&#8217;s incredibly easy to glance at a launch post and assume it&#8217;s another minor upgrade. That&#8217;s exactly the trap I fell into with \/goal, just for it to turn out to be the one feature that actually changed how I work.<\/p>\n","protected":false},"excerpt":{"rendered":"There are countless reasons why AI-assisted coding tools like Claude Code, Codex, Cursor, Windsurf, and so on, are&hellip;\n","protected":false},"author":2,"featured_media":515955,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[345,343,344,85,46,125],"class_list":["post-515954","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-il","tag-israel","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/515954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/comments?post=515954"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/515954\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media\/515955"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media?parent=515954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/categories?post=515954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/tags?post=515954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}