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.
More from coding & agent
- Codex feels so productive it may be hiding your real progress, dev warns — alexmacgregor__ · 2026-09-13
- Building a company AI desktop stack: hunting a Claude Cowork alternative for non-technical staff — Feeling_Dog9493 · 2026-09-13
- Auto-manage your credit card rewards via Muse + CardStack's MCP connector — armand_ruiz · 2026-09-13
- Function calling explained: the 4-step loop behind every coding agent — Al_Grigor · 2026-09-13
- Fully offline camera app runs YOLOv8n + fine-tuned 0.8B VLM on-device, open-sourced — divinetribe1 · 2026-09-13
- Building a sleeping interactive character on Waveshare ESP32 with Copilot CLI — DanWahlin · 2026-09-13