Answer: Use the /loop command with an interval, either leading the prompt as a bare token like `30m` or trailing it as a clause like `every 2 hours`. Supported units are `s` for seconds, `m` for minutes, `h` for hours, and `d` for days. Status: Confirmed Entry: tool/claude-code/agents-and-automation/run-prompt-fixed-interval Revision: 2 Digest: sha256:e0de558590b67eda (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:34Z Last changed: 2026-11-18T12:19:45Z (unclean interval examples: — → 7m) 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 command | /loop 5m check if the deployment finished and tell me what happened | [1] | 2026-11-20 leading interval example | 30m | [1] | 2026-11-20 trailing interval example | every 2 hours | [1] | 2026-11-20 supported units | s | [1] | 2026-11-20 seconds rounding | nearest minute | [1] | 2026-11-20 unclean interval examples | 7m | [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: "/loop 5m check if the deployment finished and tell me what happened" (Supports: command) Quote: "The interval can lead the prompt as a bare token like `30m`" (Supports: leading interval example) Quote: "or trail it as a clause like `every 2 hours`" (Supports: trailing interval example) Quote: "Supported units are `s` for seconds, `m` for minutes, `h` for hours, and `d` for days." (Supports: supported units) Quote: "Seconds are rounded up to the nearest minute since cron has one-minute granularity." (Supports: seconds rounding) Quote: "Intervals that don't map to a clean cron step, such as `7m` or `90m`, are rounded to the nearest interval that does" (Supports: unclean interval examples) 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 "Run on a fixed interval"). Related: https://latestn.com/tool/claude-code/agents-and-automation/scale-concurrency-hosting How do I scale and handle concurrency when hosting the Claude Code Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/schedule-options What schedule options (frequency and timing) can I set for a scheduled task in Claude Code Desktop? https://latestn.com/tool/claude-code/agents-and-automation/sdk-input-modes What input modes does the Claude Agent SDK support for interacting with agents? https://latestn.com/tool/claude-code/agents-and-automation/run-bundled-workflow How do I run a bundled workflow in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/run-non-interactively How do I run Claude Code non-interactively from the command line? https://latestn.com/tool/claude-code/agents-and-automation/run-plugin-evals-in-ci How do I run Claude Code plugin evals in CI and gate on the score? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:19:45Z | changed | unclean interval examples: — → 7m | [1] 2026-11-18T12:19:45Z | changed | seconds rounding: Seconds are rounded up to the nearest minute → nearest minute | [1] 2026-11-13T03:05:34Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/run-prompt-fixed-interval/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/agents-and-automation/run-prompt-fixed-interval POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/run-prompt-fixed-interval with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/run-prompt-fixed-interval?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I run a prompt repeatedly on a fixed interval in Claude Code? Revision 2, last verified 2026-11-20T12:24:40Z. https://latestn.com/tool/claude-code/agents-and-automation/run-prompt-fixed-interval (accessed 2026-11-21T10:03:35Z). @misc{LatestN_tool_claude_code_agents_and_automation_run_prompt_fixed_interval_r2, title = {How do I run a prompt repeatedly on a fixed interval in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/run-prompt-fixed-interval}}, note = {Revision 2; digest sha256:e0de558590b67eda; last verified 2026-11-20T12:24:40Z; accessed 2026-11-21T10:03:35Z} } 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/agents-and-automation/run-prompt-fixed-interval