Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

loop

Skill by QwenLM

Loop runs a prompt now and then follows up on a fixed schedule or with self-paced wakeups. It suits users who want a build, deploy or pull request checked repeatedly.

  • Score 94
  • 31k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install loop

Built from the published package, never by AI.

git clone --depth 1 https://github.com/QwenLM/qwen-code /tmp/qwen-code && mkdir -p ~/.claude/skills && cp -r /tmp/qwen-code/packages/core/src/skills/bundled/loop ~/.claude/skills/loop

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install loop in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The loop skill runs a prompt right away and then follows up. You can set a fixed interval such as 5m or "every 30m", or let the assistant choose its own wakeup delays. The /loop list and /loop clear subcommands show scheduled jobs and cancel them.

Fixed intervals are converted to cron expressions and created with CronCreate. The source says these jobs expire after 7 days by default unless the configured limit differs. Self-paced loops use LoopWakeup with delays between 60 and 3600 seconds. The skill also has an autonomous mode for a bare /loop and a task-file mode that reads .qwen/loop.md. It is aimed at users who want a prompt, such as checking a build or a pull request, rechecked over time.

Written from the project's SKILL.md and checked against it.

What it can do

  • Fixed-interval loopsRuns a prompt on a recurring cron schedule, such as every 5 minutes or every 30 minutes.
  • Self-paced wakeupsSchedules the next check with LoopWakeup, choosing a delay between 60 and 3600 seconds.
  • Job listingThe /loop list subcommand shows scheduled jobs through CronList.
  • Job cancellationThe /loop clear subcommand cancels all jobs by calling CronDelete for each one.
  • Autonomous modeA bare /loop keeps advancing work already started in the conversation, without inventing new work.
  • Task-file modeWorks through a task list kept in .qwen/loop.md or ~/.qwen/loop.md on each fire.

What you need

  • Access to the CronCreate, CronList, CronDelete and LoopWakeup tools

Try asking

  • /loop check the build
  • /loop 5m check the build
  • /loop check the PR every 30m

Good to know

  • Intervals are rounded to cron granularity, with a 1 minute minimum.
  • Scheduled cron jobs expire after 7 days by default, per the source.
  • Self-paced delays are clamped to 60 to 3600 seconds.
  • Day intervals above 30 days are not supported and need a smaller value.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/core/src/skills/bundled/loop/SKILL.md, packages/core/src/skills/bundled/loop/SKILL.test.ts, packages/core/src/skills/bundled/loop/autonomous-loop.test.ts, packages/core/src/skills/bundled/loop/autonomous-loop.ts, packages/core/src/skills/bundled/loop/loop-task-file.test.ts, packages/core/src/skills/bundled/loop/loop-task-file.ts, packages/core/src/skills/bundled/loop/loop-tick-resolver.test.ts, packages/core/src/skills/bundled/loop/loop-tick-resolver.ts, packages/core/src/skills/bundled/loop/managed-loop-skill.test.ts. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • SKILL.test.ts5 KB
  • autonomous-loop.test.ts2 KB
  • autonomous-loop.ts8 KB
  • loop-task-file.test.ts28 KB
Show all 11 files
  • loop-task-file.ts16 KB
  • loop-tick-resolver.test.ts36 KB
  • loop-tick-resolver.ts20 KB
  • managed-loop-skill.test.ts42 KB
  • managed-loop-skill.ts23 KB
  • regenerate-managed-loop-assets.ts3 KB

Alternatives to loop

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

loop: common questions

How do I stop a running loop?

Run /loop clear to cancel all jobs, or use CronDelete with a job ID to cancel one job sooner. The source says the skill confirms how many jobs were cancelled.

What is the difference between a fixed interval and a self-paced loop?

A fixed interval such as 5m is scheduled with CronCreate and fires on a cron schedule. A self-paced loop has no interval and uses LoopWakeup to choose the next delay after each check.

Does a loop keep running after a restart?

Only if the user asks for persistence, such as 'keep doing this' or 'every day even after restart'. Otherwise the job is session-only by default.

How do I install loop?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is loop free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is loop safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to loop?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

Add to stack

Loading.