Claude Code tips: /goal sets finish lines, /loop polls changing inputs like CI

addyosmani · x · 2026-09-13

Addy Osmani clarifies how Claude Code's commands differ: /goal <cond> drives the agent to a finish line — give it a check plus a ceiling (e.g. "tests pass or stop after 20 turns"); /loop <prompt> revisits changing inputs such as CI or code reviews; a bare /loop tends the PR; and /usage shows per-loop cost so you can keep spending in check.

Original post →

More from coding & agent

coding & agent channel →