Harness 24h
thu-nmrc/OpenHarness
A production-grade framework for long-running, autonomous agents based on Harness Engineering principles.
Runs a prompt now and repeats it on a fixed interval or through self-paced wakeups, with subcommands to list or clear scheduled loop jobs.
$ npx skills add QwenLM/qwen-code --skill loop -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install QwenLM/qwen-code loop --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .claude/skills/loop && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .claude/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loopType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add QwenLM/qwen-code --skill loop -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install QwenLM/qwen-code loop --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .agents/skills/loop && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .agents/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add QwenLM/qwen-code --skill loop -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install QwenLM/qwen-code loop --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .cursor/skills/loop && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .cursor/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/QwenLM/qwen-code.git --path packages/core/src/skills/bundled/loop--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add QwenLM/qwen-code --skill loop -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install QwenLM/qwen-code loop --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .gemini/skills/loop && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .gemini/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install QwenLM/qwen-code loopInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add QwenLM/qwen-code --skill loop -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .github/skills/loop && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .github/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add QwenLM/qwen-code --skill loop -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install QwenLM/qwen-code loop --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/core/src/skills/bundled/loop .opencode/skills/loop && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/QwenLM/qwen-code/tree/main/packages/core/src/skills/bundled/loop into .opencode/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
loopRuns a prompt now and repeats it on a fixed interval or through self-paced wakeups, with subcommands to list or clear scheduled loop jobs.
The /loop command reads its input to decide the mode. A leading interval token such as 5m or 2h, or a trailing every clause like every 20m, makes a fixed-interval recurring job. A prompt with no interval runs a self-paced loop that creates no cron job, empty input starts an autonomous loop, and an interval with no prompt gives a fixed-interval autonomous loop.
The word every only counts when a time expression follows, so check every PR is treated as a plain prompt. /loop list shows existing jobs through CronList, and /loop clear deletes every job returned and reports how many were cancelled. If a background task notification starts a tick, that event is handled before the prompt runs again. The skill folder includes TypeScript helpers for the autonomous loop, task files and tick resolution, each with tests.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fe4d4e3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (TypeScript), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Recurring Prompt Loop loads about 2.5k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 1,431 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from QwenLM/qwen-code at commit fe4d4e3, republished under its Apache-2.0 licence (© QwenLM). 1,431 words, ~2,531 tokens.
.claude/skills/loop/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.If the input (after stripping the /loop prefix) is exactly one of these keywords, run the subcommand instead of scheduling:
list — call CronList and display the results. Done.clear — call CronList, then call CronDelete for every job returned. Confirm how many were cancelled. Done.Parse the input after removing the /loop prefix:
^\d+[smhd]$ (e.g. 5m, 2h), this is the fixed-interval recurring path. The rest is the prompt.every <N><unit> or every <N> <unit-word> (e.g. every 20m, every 5 minutes, every 2 hours), this is the fixed-interval recurring path. Extract that interval and strip it from the prompt. Only match when what follows "every" is a time expression — check every PR has no interval.If an interval was given but the prompt is empty (e.g. /loop 5m), this is a fixed-interval autonomous loop — see the Autonomous mode section.
Examples:
5m /babysit-prs → fixed interval 5m, prompt /babysit-prs (leading interval token)check the deploy every 20m → fixed interval 20m, prompt check the deploy (trailing "every" clause)run tests every 5 minutes → fixed interval 5m, prompt run tests (trailing "every" clause)check every PR → prompt-only self-paced path, prompt check every PR ("every" is not followed by a time expression)check the deploy → prompt-only self-paced path, prompt check the deploy<<autonomous-loop-dynamic>>)5m → fixed-interval autonomous loop (interval 5m, sentinel <<autonomous-loop>>)Use this path only when the user supplied a prompt and no interval.
<task-notification> block (a monitor or background event re-invoked you, not a bare /loop wakeup prompt), handle that event before re-running the prompt.monitor restarted 1/1 time) so it survives context compaction. If it auto-stops again on the next tick, end the loop and report the repeated auto-stop to the user.<task-notification> on exit, failure, cancellation, or monitor auto-stop — so set LoopWakeup as a long fallback rather than a short poll. Do not omit it just because something is watching: the work may hang, or a Monitor may auto-stop on idle or max-events (and one owned by another agent routes its notification only to that agent). Omit LoopWakeup only on the terminal conditions above (complete, blocked, or repeated monitor auto-stop).delaySeconds: the next useful delay in seconds. The runtime clamps to 60–3600 (1–60 min); follow the tool's own guidance on picking a value — it accounts for the prompt-cache window and for the fallback-heartbeat case when a background task will wake you.prompt: /loop ${original prompt} plus any state the next tick must preserve, such as monitor restarted 1/1 time.reason: a short reason for the chosen delay. Include the monitor restart count here when re-arming after an auto-stop.Use this path only for inputs with a leading interval token or a trailing "every" clause.
Supported suffixes: s (seconds, rounded up to nearest minute, min 1), m (minutes), h (hours), d (days). Convert:
| Interval pattern | Cron expression | Notes |
|---|---|---|
Nm where N <= 59 | */N * * * * | every N minutes |
Nm where N >= 60 | 0 */H * * * | round to hours (H = N/60, must divide 24) |
Nh where N <= 23 | 0 */N * * * | every N hours |
Nd | 0 0 */N * * | every N days at midnight local |
Ns | treat as ceil(N/60)m | cron minimum granularity is 1 minute |
If the interval does not cleanly divide its unit (for example 7m gives uneven gaps at :56 to :00, or 90m is 1.5 hours which cron cannot express), pick the nearest clean interval and tell the user what you rounded to before scheduling.
cron: the expression from the table aboveprompt: the parsed prompt from above, verbatim (slash commands are passed through unchanged)recurring: truedurable: true if the user's language implies persistence ("keep doing this", "set this up permanently", "every day even after restart"). Otherwise omit (defaults to session-only).Use this when the user wants the loop to work a task list kept in a file (they say "work through my loop.md", "loop over the tasks in .qwen/loop.md", or point at such a file). Tasks live in .qwen/loop.md (project) or ~/.qwen/loop.md (home; project wins). Instead of a natural-language prompt, set the loop's prompt to a sentinel so each fire re-reads the file:
prompt: <<loop.md-dynamic>>prompt: <<loop.md>> (with recurring: true, and durable: true if persistence is implied)At each fire you receive either the full task list (first delivery, after the file changes, or after a compaction) or a short reminder to keep working the list established earlier. Work the tasks; in self-paced mode re-arm LoopWakeup with <<loop.md-dynamic>> only when continued follow-up is useful (same "don't re-arm if complete/blocked" rules as the prompt-only path). If .qwen/loop.md is absent at fire time, the loop falls back to autonomous mode (it keeps working autonomously instead of no-op'ing); a recreated file is picked up on the next fire. Confirm to the user in plain language ("looping over your .qwen/loop.md task list…"), not the raw sentinel.
Use this for a bare /loop (no prompt, no file) — the user wants you to keep their work moving while they're away. Arm the loop with an autonomous sentinel and run the first check now:
prompt: <<autonomous-loop-dynamic>>/loop <interval>, no prompt) → CronCreate prompt: <<autonomous-loop>> (with recurring: true, and durable: true if persistence is implied)The first immediate check, and each scheduled fire, advance work the conversation already established — finish things the user started, maintain an in-progress PR (address review threads, fix failing CI, resolve conflicts), honor "I'll also…" commitments. You are a steward, not an initiator: act on what the transcript already established; never invent new work or make irreversible changes (push, delete, send) without clear authorization. If everything is genuinely quiet, say so in one sentence and stop. The first fire (and the first after a compaction) delivers fuller guidance; later fires send a short reminder pointing back to it. In self-paced mode re-arm LoopWakeup with <<autonomous-loop-dynamic>> (same "don't re-arm if complete/blocked" rules). Confirm to the user in plain language ("running an autonomous loop on your work…"), not the raw sentinel.
© QwenLM, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files in packages/core/src/skills/bundled/loop of QwenLM/qwen-code.
Open the folder on GitHubat commit fe4d4e3
Recurring Prompt Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Recurring Prompt Loop this skillQwenLM/qwen-code | 28k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Harness 24hthu-nmrc/OpenHarness | 116 | — | ~3.6k | Automated safety check: Pass | Apache-2.0 | |
| Autonomous Agent Harnessaffaan-m/ECC | 275k | 2 repos | ~2.9k | Automated safety check: Pass | MIT | |
| Autonomous Agent Harnessaffaan-m/ECC | 275k | — | ~859 | Automated safety check: Pass | MIT | |
| Golem Custom Snapshot Moonbitgolemcloud/golem | 1.5k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Golem Custom Snapshot Rustgolemcloud/golem | 1.5k | — | ~2.2k | Automated safety check: Pass | Custom licence |
thu-nmrc/OpenHarness
A production-grade framework for long-running, autonomous agents based on Harness Engineering principles.
affaan-m/ECC
Transform Claude Code into a fully autonomous agent system with persistent memory, scheduled operations, computer use, and task queuing.
affaan-m/ECC
Claude Codeを永続的なメモリ、スケジュール済み操作、コンピュータ使用、タスクキューイングを備えた完全自動エージェントシステムに変換します。スタンドアロンエージェントフレームワーク(Hermes、AutoGPT)を、Claude Codeのネイティブcrons、dispatch、MCPツール、メモリを活用して置き換えます。ユーザーが継続的な自動操作、スケジュール済みタスク、または自己指令…
golemcloud/golem
Enabling snapshot-based recovery and implementing custom snapshot save/load functions for MoonBit agents.
golemcloud/golem
Enabling snapshot-based recovery and implementing custom snapshot save/load functions for Rust agents.
golemcloud/golem
Enabling snapshot-based recovery and implementing custom snapshot save/load functions for Scala agents.
QwenLM/qwen-code
Reproduces a feature from Codex or Claude Code in Qwen Code by running the reference agent under capture, reading the traces, then implementing matching behavior.
QwenLM/qwen-code
Guides end-to-end testing of the Qwen Code CLI in headless mode with real model calls, MCP test servers and inspection of raw API traffic.
QwenLM/qwen-code
Scheduled CI skill that scans a repository for small, certain docs, test and code hygiene issues and fixes them on one branch with a commit per finding.
QwenLM/qwen-code
Builds a rebranded Qwen Code desktop package from the Tauri shell using only a brand id and a logo, with sensible derived defaults.
QwenLM/qwen-code
Walks through capturing and comparing V8 heap snapshots to find memory leaks in the Qwen Code Node.js CLI, using tmux and the chrome-devtools CLI.
QwenLM/qwen-code
Drives Qwen Code in a real tmux session the way a user would and saves a readable step-by-step transcript of each screen for maintainers to review.
Categories
Runs a prompt now and repeats it on a fixed interval or through self-paced wakeups, with subcommands to list or clear scheduled loop jobs. The /loop command reads its input to decide the mode. A leading interval token such as 5m or 2h, or a trailing every clause like every 20m, makes a fixed-interval recurring job.
Recurring Prompt Loop fits situations like: polling a build or deploy at a fixed interval; re-running a prompt until a condition is met without choosing an interval; listing or cancelling all scheduled loop jobs.
Run `npx skills add QwenLM/qwen-code --skill loop -a claude-code`. Or copy the skill folder (packages/core/src/skills/bundled/loop in QwenLM/qwen-code) into .claude/skills/loop in your project. Claude Code loads it when a task matches its description.
Run `npx skills add QwenLM/qwen-code --skill loop -a codex`. Or copy the skill folder (packages/core/src/skills/bundled/loop in QwenLM/qwen-code) into .agents/skills/loop in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add QwenLM/qwen-code --skill loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/loop, .gemini/skills/loop, .github/skills/loop and .opencode/skills/loop in your project.
Going by SKILL.md and its folder, Recurring Prompt Loop needs TypeScript for the scripts in its folder. Our summary lists: An agent with CronCreate, CronList and CronDelete tools.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Recurring Prompt Loop is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Recurring Prompt Loop: Harness 24h (thu-nmrc/OpenHarness, 116 stars), Autonomous Agent Harness (affaan-m/ECC, 275k stars), Autonomous Agent Harness (affaan-m/ECC, 275k stars) and Golem Custom Snapshot Moonbit (golemcloud/golem, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
QwenLM (a GitHub organization) maintains it in QwenLM/qwen-code, which has 28,349 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 8, 2026.
Source: QwenLM/qwen-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.