AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Treadmill

skill-nwyin-labrat-treadmill · by nwyin

Run a command or prompt on a recurring interval, like a lab rat on a wheel. Use when the user wants to poll, repeat a task periodically, set up a recurring check, or keep a long-running process supervised. Pairs with /labrat for overnight research sessions.

No reviews yet
0 installs
16 views
0.0% view→install

Install

$ agentstack add skill-nwyin-labrat-treadmill

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-nwyin-labrat-treadmill)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Treadmill? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Treadmill

Run a command on a recurring interval using a background shell loop. Portable across all agent harnesses.

How to use

The bundled treadmill script handles start/stop/status. Set it up from the skill directory:

SKILL_DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH="${SKILL_DIR}/scripts:$PATH"

Or reference it directly: bash ${CLAUDE_SKILL_DIR}/scripts/treadmill

Start a treadmill

treadmill start  

Interval formats: 30s, 5m, 1h, or plain seconds (e.g. 300).

Examples:

# Check research status every 5 minutes
treadmill start 5m python .research/experiments/00-baseline/modal_app.py

# Poll a deployment
treadmill start 2m curl -s https://api.example.com/health

# Run a script every hour
treadmill start 1h python check_metrics.py

Stop

treadmill stop

Check status

treadmill status

View logs

treadmill log      # last 30 lines
treadmill log 100  # last 100 lines

State

Treadmill keeps its state in .treadmill/ in the current directory:

  • pid — PID of the background loop
  • config — interval, command, start time
  • log — stdout/stderr from each run

Pairing with labrat

For overnight ML research, start a treadmill that re-runs the labrat state-advance worker rather than a passive status printer:

# Reconcile state every 5 minutes
treadmill start 5m python /path/to/labrat/scripts/research-advance

Use research-status only for human-readable inspection. Use research-advance for automation, because it updates .research/state.json when artifacts appear.

If the harness is Codex, prefer the supervisor wrapper instead:

# Reconcile state, then wake Codex when the session is actionable
treadmill start 5m python /path/to/labrat/scripts/research-supervise

That wrapper gives you the missing /loop behavior: the background loop notices finished artifacts, updates .research/state.json, and only then starts a fresh non-interactive Codex run to do the next research step.

The agent can read treadmill logs to see what happened between invocations.

When to use this vs built-in loop

Some agent tools (like Claude Code) have a built-in /loop command. Use that when available. Use /treadmill when:

  • Your agent harness doesn't have a built-in loop
  • You want a detached background process that survives agent restarts
  • You need to run shell commands on a timer independent of the agent

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.