no-sleep-process-monitoring

no-sleep-process-monitoring is a cursor rule for Cursor from cdbattags/ai. It costs 318 tokens per session, scanned A, original, MIT.

A set of rules for waiting on commands and monitoring running processes. It uses the shell's built-in waiting time and terminal output instead of repeated delays or polling loops.

In plain words
What is it for?
Run commands that take time, monitor background processes, check terminal output for completion, and confirm that a development server is listening.
Why use it?
It prevents wasteful waiting patterns and makes it clearer whether a build, test, or development server has finished or is ready.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Run commands that take time, monitor background processes, check terminal output for completion, and confirm that a development server is listening.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cdbattags/ai/no-sleep-process-monitoring
View source ↗ cdbattags/ai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/cdbattags/ai

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for no-sleep-process-monitoring

README.md
[![agentmods](https://agentmods.dev/badge/rules/cdbattags/ai/no-sleep-process-monitoring/github.svg)](https://agentmods.dev/rules/cdbattags/ai/no-sleep-process-monitoring)
Your own site
<a href="https://agentmods.dev/rules/cdbattags/ai/no-sleep-process-monitoring"><img src="https://agentmods.dev/badge/rules/cdbattags/ai/no-sleep-process-monitoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for no-sleep-process-monitoring

Your own site · 80×15
<a href="https://agentmods.dev/rules/cdbattags/ai/no-sleep-process-monitoring"><img src="https://agentmods.dev/badge/rules/cdbattags/ai/no-sleep-process-monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 318 This file is loaded in full into every session.
When invoked 318 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00318 $0.00318
Opus 5 $0.00159 $0.00159
Sonnet 5 $0.00064 $0.00064
Haiku 4.5 $0.00032 $0.00032

Measured 12d ago against content hash 1a0fa14ffa7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

no-sleep-process-monitoring scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**ABSOLUTE RULE: Never use `sleep`, polling loops (`while ! curl; do sleep; done`), or `for` loops with delays in the Cursor Shell tool.**
src/rules/no-sleep-process-monitoring.mdc · 32 lines

What it actually says

No Sleep Commands - Use Shell Tool's Built-In Waiting

ABSOLUTE RULE: Never use sleep, polling loops (while ! curl; do sleep; done), or for loops with delays in the Cursor Shell tool.

The Shell tool already has block_until_ms for waiting and terminal files for monitoring. You never need to build your own waiting logic.

Quick Reference

Scenario Pattern
Terminating command (build, seed, test) Set block_until_ms > expected runtime
Dev server / watcher block_until_ms: 0, then Read terminal file for readiness
Check if background command finished Read terminal file, look for exit_code footer
Verify server is up Read terminal file for "ready in" / "listening" marker

Before Using sleep — STOP

If you are about to type sleep in a shell command, do not. Instead:

  1. For commands that finish: increase block_until_ms
  2. For servers: read the terminal file for output markers
  3. For checking process state: read the terminal file header for running_for_seconds or exit_code

Detailed Skill

For full patterns and examples, read: ~/.cursor/skills/process-monitoring/SKILL.md

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 32 lines · 318 tokens per session scan A 1a0fa14ffa7b

Subscribe to this mod's changes

no-sleep-process-monitoring is a cursor rule published in the GitHub repository cdbattags/ai (4 stars, last pushed 6mo ago), licensed MIT. It adds 318 tokens to every session, about $0.0016 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.