Skip to content

[Feature]: Support /loop command in TUI for scheduled in-session prompts (similar to Claude Code) #531

Open

Description

@GoldTest

Product or interface

CLI / TUI

Use case and problem

When working on tasks that require continuous monitoring (e.g., polling CI/CD status, watching long build/test runs, or waiting for external deploy events) in the terminal TUI, users currently have to repeatedly trigger prompts manually. Although Desktop has a Schedules feature, it lacks a lightweight, in-session recurring trigger for the CLI/TUI.

Desired behavior / Feature proposal

Support a /loop slash command in the interactive TUI to re-run prompts on an interval within the current session:

  1. Fixed interval loop:
    • /loop 5m check PR status and fix failing CI
    • /loop 2m check if build completed
  2. Cancellation:
    • Stop via Esc or /stop at any time.
    • Automatically exit once target criteria are satisfied or max retries reached.
  3. In-session context retention:
    • Executes in the current session rather than spawning new sessions, preserving recent turn context.

Platform

All platforms (macOS, Linux, Windows)

Alternatives and additional context

Currently running shell scripts with sleep loops via bash, which lacks seamless integration with the active session context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions