>_

Loop

agent-ready non-interactive

UNIX's missing `loop` command

How to install Loop

brew install loop

Loop use case

Automate repetitive shell command execution with advanced termination conditions and timers for monitoring or polling tasks.

When to use Loop

  • Polling an endpoint or command until it returns a specific success or failure status
  • Running a background task periodically at a fixed time interval
  • Processing lines of standard input as items in a programmatic loop
  • Monitoring a command's output until it changes or remains static

When not to use Loop

  • Complex logic requiring multi-step state management better suited for a script
  • High-performance data processing where shell execution overhead is a bottleneck
  • Simple infinite loops that require no specific termination logic or interval control

Loop features

  • · Timed execution intervals
  • · Termination based on output string matching
  • · Iterating over standard input items
  • · Termination based on exit codes (success/failure)
  • · Summary reporting for run statistics

Want your agent to find this automatically?

Add the MCP server to your agent config and it will discover tools like Loop on its own.

Set up MCP →

Similar tools to Loop