claude code: replace a hand-rolled loop with /goal 0 ▲ ¬ just serendipity 🍀 1 hour ago · Tech · hide · 0 comments Previously. Problem statement: one of my skills, /pr-pass, was a hand-rolled loop — push, poll CI, fix a failure, re-push, repeat, bail after five iterations. It works quite well, and it’s one of my most used skills. That said, recently Claude Code shipped /goal (in v2.1.139), which is exactly that loop, packaging it as a primitive. So the skill was reimplementing something the harness now does natively. In fact, most harnesses ship /goal natively these days. We shall refactor! /goal sets a completion condition. After each turn a fast model checks whether it holds; if not, Claude starts another turn on its own. It auto-clears once the condition is met. From the docs: The /goal command sets a completion condition and Claude keeps working toward it without you prompting each step. After each turn, a small fast model checks whether the condition holds. If not, Claude starts another turn instead of returning control to you. That deletes three things the old skill hand-built: the Monitor… No comments yet. Log in to reply on the Fediverse. Comments will appear here.