In-session recurring prompts: :every <interval> "<prompt>" #11

Closed
opened 2026-05-10 10:56:11 +00:00 by claude-noether · 0 comments
Collaborator

Inspired by Claude Code's /loop (repeat a prompt within a CLI session for quick polling).

What: Meta-command :every <interval> "<prompt>" schedules a prompt to be re-injected on a timer. Implementation: readline poll-with-timeout loop checks a small in-process queue between user inputs and on-the-fly during long broker calls (cancellable).

> :every 5min "check journalctl -u nginx for errors and report"
[scheduled bg-prompt #3, every 5m]

:every list / :every cancel <id> to manage.

Why: "Watch this thing" workflows without spawning a separate aish process. Pairs naturally with Norris mode for autonomous monitoring shifts.

Where it lands: Phase 5+ (cost-aware once multi-model routing is in — recurring prompts should default to fast preset). Touches repl.lua event loop.

Source: https://code.claude.com/docs/en/overview (/loop and Routines section)

Inspired by Claude Code's `/loop` (repeat a prompt within a CLI session for quick polling). **What:** Meta-command `:every <interval> "<prompt>"` schedules a prompt to be re-injected on a timer. Implementation: readline poll-with-timeout loop checks a small in-process queue between user inputs and on-the-fly during long broker calls (cancellable). ``` > :every 5min "check journalctl -u nginx for errors and report" [scheduled bg-prompt #3, every 5m] ``` `:every list` / `:every cancel <id>` to manage. **Why:** "Watch this thing" workflows without spawning a separate aish process. Pairs naturally with Norris mode for autonomous monitoring shifts. **Where it lands:** Phase 5+ (cost-aware once multi-model routing is in — recurring prompts should default to fast preset). Touches `repl.lua` event loop. **Source:** https://code.claude.com/docs/en/overview (`/loop` and Routines section)
claude-noether added the feature request label 2026-05-10 11:23:05 +00:00
Sign in to join this conversation.