Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.71 Home All releases olderv2.1.70 v2.1.72newer
Claude Code v2.1.71

/loop Command (Scheduled Recurring Prompts)

What

A new /loop slash command that schedules prompts to run on a recurring interval, enabling automated monitoring, polling, and periodic tasks within a Claude Code session.

Usage
/loop 5m /babysit-prs
/loop 30m check the deploy
/loop 1h /standup 1
/loop check the deploy          (defaults to 10m interval)
Details
  • Supports intervals in seconds, minutes, hours, or days (e.g., 5m, 30m, 2h, 1d). Minimum granularity is 1 minute
  • Also supports standard 5-field cron expressions for precise scheduling (e.g., "/5 " for every 5 minutes, "30 14 * 1-5" for weekdays at 2:30pm)
  • Jobs are session-only by default (die when Claude exits), but can be persisted to .claude/scheduled_tasks.json to survive restarts
  • Recurring tasks auto-expire after 3 days
  • A small deterministic jitter is added to fire times to avoid thundering-herd effects
  • Only fires while the REPL is idle (not mid-query)
  • Uses file-based locking so only one Claude session runs the scheduler at a time
  • Three new internal tools: CronCreate, CronDelete, CronList
Evidence

Cron expression parser (search for "Standard 5-field cron expression") — _a6 at line ~449603. Loop command (search for "/loop")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.71 →