Answer: For a self-paced loop, press `Esc` on an empty prompt while it waits for its next iteration (or `Ctrl+C` while Claude is idle, except in an attached background session). For a fixed-interval loop such as `/loop 5m`, ask Claude to cancel it, for example `cancel the deploy check loop`, since `Esc` and `Ctrl+C` don't stop it. Status: Confirmed Entry: tool/claude-code/commands-and-shortcuts/stop-loop Revision: 2 Digest: sha256:ce9d032c65e8d372 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:34Z Last changed: 2026-11-17T12:30:31Z (detach version: — → v2.1.295) Last verified: 2026-11-20T12:24:40Z Next check: 2026-11-21T12:24:40Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of self-paced stop key | Esc | [1] | 2026-11-20 self-paced alternate stop | Ctrl+C | [1] | 2026-11-20 cancellation confirmation | Pending wakeup cancelled | [1] | 2026-11-20 fixed-interval example | /loop 5m | [1] | 2026-11-20 fixed-interval cancel example | cancel the deploy check loop | [1] | 2026-11-20 fixed-interval expiry | seven days | [1] | 2026-11-20 detach key | Ctrl+C | [1] | 2026-11-20 detach version | v2.1.295 | [1] | 2026-11-20 Sources: [1] Anthropic. "Run prompts on a schedule". https://code.claude.com/docs/en/scheduled-tasks.md Role: primary. Accessed: 2026-11-20T12:24:40Z Quote: "while the loop is waiting for its next iteration, press `Esc` on an empty prompt to stop it" (Supports: self-paced stop key) Quote: "You can also stop it with `Ctrl+C` while Claude is idle" (Supports: self-paced alternate stop) Quote: "A `Pending wakeup cancelled` notice confirms that the loop won't fire again." (Supports: cancellation confirmation) Quote: "to stop a loop such as `/loop 5m`, ask Claude to cancel it" (Supports: fixed-interval example) Quote: "ask Claude to cancel it, for example `cancel the deploy check loop`" (Supports: fixed-interval cancel example) Quote: "A loop you don't cancel ends when [seven days elapse](#seven-day-expiry)." (Supports: fixed-interval expiry) Quote: "press `Ctrl+C` twice on an empty prompt to detach" (Supports: detach key) Quote: "Detaching with `Ctrl+C` without stopping the loop requires Claude Code v2.1.295 or later." (Supports: detach version) Published: 2026-11-20T02:51:59Z Snapshot SHA-256: 3bbc729ac8e338b9bd8a7f0ba9a1fbc56b3916fc34b8202974f2ec449f6c18ce (captured 2026-11-20T12:24:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:24:40Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:40Z Last attempt: 2026-11-20T12:24:40Z Notes and limitations: Extracted automatically from a single official source (section "Stop a loop"). Related: https://latestn.com/tool/claude-code/commands-and-shortcuts/system-prompt-flags What CLI flags does Claude Code support for customizing the system prompt? https://latestn.com/tool/claude-code/commands-and-shortcuts/teleport-cloud-session-to-terminal How do I continue a Claude Code cloud session in my terminal with --teleport? https://latestn.com/tool/claude-code/commands-and-shortcuts/toggle-fast-mode How do I toggle fast mode on or off in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/scroll-conversation-fullscreen How do I scroll the conversation in Claude Code fullscreen mode? https://latestn.com/tool/claude-code/commands-and-shortcuts/set-goal-condition How do I set a completion condition with /goal in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/start-remote-control-session How do I start a Remote Control session in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:30:31Z | changed | detach version: — → v2.1.295 | [1] 2026-11-17T12:30:31Z | changed | fixed-interval cancel example: — → cancel the deploy check loop | [1] 2026-11-17T12:30:31Z | changed | fixed-interval example: — → /loop 5m | [1] 2026-11-17T12:30:31Z | changed | cancellation confirmation: — → Pending wakeup cancelled | [1] 2026-11-17T12:30:31Z | changed | self-paced alternate stop: — → Ctrl+C | [1] 2026-11-17T12:30:31Z | changed | detach minimum version: v2.1.295 → — | [1] 2026-11-17T12:30:31Z | changed | fixed-interval keys that don't work: Esc → — | [1] 2026-11-17T12:30:31Z | changed | fixed-interval stop method: cancel the deploy check loop → — | [1] 2026-11-13T03:05:34Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/commands-and-shortcuts/stop-loop/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/stop-loop POST: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/stop-loop with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/stop-loop?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I stop a loop in Claude Code? Revision 2, last verified 2026-11-20T12:24:40Z. https://latestn.com/tool/claude-code/commands-and-shortcuts/stop-loop (accessed 2026-11-21T10:00:40Z). @misc{LatestN_tool_claude_code_commands_and_shortcuts_stop_loop_r2, title = {How do I stop a loop in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/commands-and-shortcuts/stop-loop}}, note = {Revision 2; digest sha256:ce9d032c65e8d372; last verified 2026-11-20T12:24:40Z; accessed 2026-11-21T10:00:40Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/commands-and-shortcuts/stop-loop