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.
npx skills add cdbattags/ai --skill process-monitoringgit clone --depth 1 https://github.com/cdbattags/aiWrote 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.
[](https://agentmods.dev/skills/cdbattags/ai/process-monitoring)<a href="https://agentmods.dev/skills/cdbattags/ai/process-monitoring"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/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.
<a href="https://agentmods.dev/skills/cdbattags/ai/process-monitoring"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/process-monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00851 |
| Opus 5.5 | $0.00018 | $0.00340 |
| Sonnet 5.5 | $0.00009 | $0.00170 |
| Haiku 4.5 | $0.00004 | $0.00085 |
Grade A, and why
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 3mo 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.
Never use `sleep`, `for` loops with delays, or `while ! curl; do sleep` polling patterns in the Cursor Shell tool. The Shell tool has built-in mechanisms for waiting. How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Process Monitoring Without Sleep
Never use sleep, for loops with delays, or while ! curl; do sleep polling patterns in the Cursor Shell tool. The Shell tool has built-in mechanisms for waiting.
Core Principle
The Shell tool's block_until_ms parameter IS the wait mechanism. Terminal output files ARE the monitoring mechanism. You never need to build your own waiting logic.
Pattern 1: Terminating Commands (build, seed, install, test)
Set block_until_ms higher than expected runtime. The shell blocks until the command finishes or the timeout is reached.
# Good: block for up to 120 seconds
Shell(command="pnpm db:seed", block_until_ms=120000)
# Bad: background then sleep-poll
Shell(command="pnpm db:seed &")
Shell(command="sleep 10 && check result")
If the command exceeds block_until_ms, it moves to background automatically. Check the terminal file for the exit_code footer.
Pattern 2: Long-Running Commands (dev server, watcher)
Use block_until_ms: 0 to immediately background, then read the terminal file to check for readiness markers.
# Step 1: Start in background
Shell(command="pnpm dev", block_until_ms=0)
# Returns terminal file path immediately
# Step 2: Read terminal file to check if ready
Read(path="/path/to/terminal/file.txt", offset=-20)
# Look for "ready in" or "Local: http://localhost:3000"
Readiness markers by tool:
| Tool | Ready marker |
|---|---|
| Vite | ready in or Local: http://localhost: |
| Next.js | Ready in or started server on |
| Express/Fastify | listening on |
| Any build | exit_code: footer in terminal file |
Pattern 3: Checking if a Background Command Finished
Read the terminal file. If finished, an exit_code footer appears:
---
exit_code: 0
elapsed_ms: 12345
ended_at: 2026-03-01T...
---
If still running, the header shows running_for_seconds (updated every 5s).
Pattern 4: Verifying a Running Server
Instead of curl polling, just read the terminal file output:
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.
- 3mo ago First seen · 102 lines · 44 tokens per session scan A b13944b2bf3a
process-monitoring is a skill published in the GitHub repository cdbattags/ai (5 stars, last pushed 9mo ago), licensed MIT. It adds 44 tokens to every session and 851 once invoked, about $0.0002 per session on Opus 5.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.
process-monitoring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| process-monitoringcdbattags/ai | Skill | 5 | 9mo ago | MIT | A | 44 | Claude Code, Codex |
| sonic-setup-new-projectorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Claude Code |
| sonicg-setup-new-projectorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Claude Code, Codex |
| sonicc-setup-new-projectorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Cursor |
| sonic-setup-old-projectorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Claude Code |
| sonicc-setup-old-projectorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Cursor |
| sonic-localizeorbitalsonic/AndroidPilot | Skill | 1 | 1mo ago | none | A | 0 | Claude Code |