[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DSTABKE23W3HXMHSB8S19":3,"skill-same:01M79DSTABKE23W3HXMHSB8S19":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":62},"01M79DSTABKE23W3HXMHSB8S19","harness-loop",null,"Long-running task loop using \u002Floop (Claude Code dynamic mode) and ScheduleWakeup to re-enter with fresh context on each wake-up. Internally invokes harness-work through Agent. Trigger: long-running, loop, wake-up, autonomous. Do NOT load for: one-shot task execution, review, release, planning.","foden303\u002Fharness","foden303","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F77870743?v=4","01M79DK06BJVG7HTKT05FM221X","Foden Ngo","01M79DK071J1HMYV20FJSMG71X",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-loop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness-loop\ndescription: \"Long-running task loop using \u002Floop (Claude Code dynamic mode) and ScheduleWakeup to re-enter with fresh context on each wake-up. Internally invokes harness-work through Agent. Trigger: long-running, loop, wake-up, autonomous. Do NOT load for: one-shot task execution, review, release, planning.\"\ndescription-en: \"Long-running task loop using \u002Floop (Claude Code dynamic mode) and ScheduleWakeup to re-enter with fresh context on each wake-up. Internally invokes harness-work through Agent. Trigger: long-running, loop, wake-up, autonomous. Do NOT load for: one-shot task execution, review, release, planning.\"\nkind: workflow\npurpose: \"Re-enter long-running Plans.md execution with fresh context\"\ntrigger: \"long-running, loop, wake-up, autonomous\"\nshape: delegate\nrole: orchestrator\nbase: harness-work\npair: harness-sync\nowner: harness-core\nsince: \"2026-05-05\"\nallowed-tools: [\"Read\", \"Edit\", \"Bash\", \"Task\", \"ScheduleWakeup\", \"mcp__harness__harness_mem_resume_pack\", \"mcp__harness__harness_mem_record_checkpoint\"]\nargument-hint: \"[all|N-M] [--max-cycles N] [--pacing worker|ci|plateau|night]\"\nuser-invocable: true\n---\n\n# harness-loop\n\nA meta-skill that combines `\u002Floop` (CC dynamic mode) with `ScheduleWakeup` to\n**re-enter and run a long-running task with fresh context on each wake-up**.\n\nAt each wake-up it invokes `harness-work --breezing` via Agent,\nforming a re-enterable loop where 1 cycle = 1 task completed.\n\n> **Long-session helpers (CC 2.1.108+)**:\n> When a person returns, re-fetch a summary with `\u002Frecap` before looking at `\u002Fharness-loop status`.\n> For operations with long absences or frequent re-entries, prefer `ENABLE_PROMPT_CACHING_1H=1`.\n\n> **Recommended for long sessions (CC 2.1.108+)**:\n> If a session is expected to exceed 30 minutes, after resolving the plugin bundle root run `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenable-1h-cache.sh\"` to opt into the 1-hour prompt cache.\n\n## Quick Reference\n\n| Input | Behavior |\n|------|------|\n| `\u002Fharness-loop all` | Loop over all incomplete tasks (default: max 8 cycles) |\n| `\u002Fharness-loop all --max-cycles 3` | Stop after 3 cycles |\n| `\u002Fharness-loop 41.1-41.3 --pacing ci` | Run a task range with CI pacing |\n| `\u002Fharness-loop all --plan roadmap` | Loop over the named Plans `roadmap` |\n| `\u002Fharness-loop all --pacing night` | Overnight batch (3600s interval) |\n| `\u002Fharness-loop status` | Check the status of a running runner |\n| `\u002Fharness-loop stop` | Request a running runner to stop |\n\n## Options\n\n| Option | Description | Default |\n|----------|------|----------|\n| `all` | Target all incomplete tasks | - |\n| `N-M` | Specify a task number range | - |\n| `--plan NAME` | Use a named plan from `plans\u002Fmanifest.json` | active\u002Fdefault |\n| `--max-cycles N` | Maximum number of cycles | `8` |\n| `--pacing \u003Cmode>` | Wake-up interval mode | `worker` (270s) |\n\n### pacing value mapping\n\n| pacing | delaySeconds | Use case |\n|--------|-------------|------|\n| `worker` | 270 | Right after Worker completion (cache warm within 5 min) |\n| `ci` | 270 | Waiting for a short CI job |\n| `plateau` | 1200 | 20 min (retry interval after plateau detection) |\n| `night` | 3600 | Long overnight idle |\n\n> **Constraint**: `ScheduleWakeup`'s `delaySeconds` is clamped to **[60, 3600]** at runtime.\n> `worker` \u002F `ci` at 270s and `night` at 3600s are within this range.\n> `plateau` at 1200s is also within range. When specifying a value directly, always keep it between 60 and 3600 inclusive.\n\n## Startup flow (entry per wake-up)\n\nDetailed version: [`${CLAUDE_SKILL_DIR}\u002Freferences\u002Fflow.md`](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fflow.md)\n\n### Resolving the plugin bundle root\n\n`harness-loop` calls helper scripts under the plugin bundle root, not the host project's cwd.\nAs an analogy, treat the workbench (host project) and the toolbox (plugin bundle) separately.\n\nAt the start of each wake-up, determine `HARNESS_PLUGIN_ROOT` in this order:\n\n1. If `CLAUDE_PLUGIN_ROOT` exists and contains `scripts\u002F`, use it\n2. If `CLAUDE_PLUGIN_ROOT` is absent, derive the plugin bundle root from `CLAUDE_SKILL_DIR`\n   - For a `skills\u002Fharness-loop` distribution, `${CLAUDE_SKILL_DIR}\u002F..\u002F..`\n   - For a `.agents\u002Fskills\u002Fharness-loop` mirror distribution, `${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002F..`\n3. If neither resolves, stop and re-run after setting `CLAUDE_PLUGIN_ROOT` to the plugin bundle root\n\nKeep `Plans.md` and `.claude\u002Fstate\u002F...` on the host project side.\nCall only helper scripts from `${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...`.\n\nIn a repo with multiple Plans.md, specify `--plan NAME` explicitly when starting a long run.\nThe runner keeps the Plans file resolved at start across cycles, so it does not switch the active plan mid-run.\n\n```\nwake-up\n  │\n  ▼\n[Step 0] Resolve the plugin bundle root into HARNESS_PLUGIN_ROOT\n  Use CLAUDE_PLUGIN_ROOT if it is valid\n  Otherwise derive the plugin bundle root from CLAUDE_SKILL_DIR\n  ※ Do not reference the host project cwd's scripts\u002F\n  │\n  ▼\n[Step 1] Read Plans.md first\n  Identify the first cc:WIP \u002F cc:TODO task (get the task_id)\n  ※ No incomplete task → end the loop (normal completion)\n  │\n  ▼\n[Step 2] Check for and generate the sprint-contract\n  Check whether .claude\u002Fstate\u002Fcontracts\u002F${task_id}.sprint-contract.json exists\n  If absent, generate with node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" ${task_id}\n  Right after generation (first time only): bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\" \u003Ccontract-path> \\\n    --check \"wake-up auto-approval (for harness-loop, confirm DoD from the reviewer's perspective)\" \\\n    --approve  ← promote draft → approved\n  (Existing contracts are already approved, so skip)\n  │\n  ▼\n[Step 3] Contract readiness check\n  bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\" \u003Ccontract-path>\n  │\n  ▼\n[Step 4] Reload the resume pack\n  harness-mem resume-pack (re-inject context)\n  │\n  ▼\n[Step 4.5] Advisor consult (only when needed)\n  Before the first execution of a high-risk task \u002F after the 2nd failure of the same cause \u002F right before a plateau,\n  assemble `advisor-request.v1` and consult\n  │\n  ├── PLAN        → prepend the advice to the next executor prompt\n  ├── CORRECTION  → re-run as a local-fix instruction\n  └── STOP        → stop the loop on the spot and record the reason\n  │\n  ▼\n[Step 5] Run one task cycle\n  worker_result = Agent(\n      subagent_type=\"harness:worker\",  # the worker agent (not harness-work)\n      prompt=\"Task: ${task_id}\\nDoD: \u003Cextract from Plans.md>\\ncontract_path: ${CONTRACT_PATH}\\nmode: breezing\",\n      isolation=\"worktree\",\n      run_in_background=false\n  )\n  # worker_result: { commit, branch, worktreePath, files_changed, summary }\n  │\n  ▼\n[Step 5.5] Run the Lead review\n  diff_text = git show worker_result.commit\n  verdict = reviewer_agent_review(diff_text)\n  ※ See flow.md for details\n  │\n  ▼\n[Step 5.6] APPROVE → cherry-pick to main \u002F REQUEST_CHANGES → fix loop (up to the contract's max_iterations, default 3)\n  APPROVE: git cherry-pick → update Plans.md to cc:done [{hash}] → delete the feature branch\n  Still rejected after REQUEST_CHANGES x MAX_REVIEWS: escalate\n  ※ See flow.md for details\n  │\n  ▼\n[Step 6] Plateau decision\n  bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fdetect-review-plateau.sh\" ${current_task_id}\n  │\n  ├── PIVOT_REQUIRED (exit 2)  → stop the loop + escalate to the user\n  ├── INSUFFICIENT_DATA (exit 1)→ continue\n  └── PIVOT_NOT_REQUIRED (exit 0)→ continue\n  │\n  ▼\n[Step 7] Cycle count check\n  │\n  ├── cycles >= max_cycles → stop the loop (cap reached)\n  │\n  ▼\n[Step 8] Record a checkpoint\n  harness_mem_record_checkpoint(\n      session_id, title, content=cycle result summary\n  )\n  │\n  ▼\n[Step 9] Schedule the next wake-up\n  ScheduleWakeup(\n      delaySeconds=\u003Cpacing value>,\n      prompt=\"\u002Fharness-loop \u003Csame arguments>\",\n      reason=\"cycle {N}\u002F{max} complete — to the next task\"\n  )\n```\n\n## Cycle stop conditions\n\n| Condition | Stop type | Response |\n|------|---------|------|\n| `cycles >= max_cycles` | Normal stop (cap reached) | Report to the user |\n| `PIVOT_REQUIRED` (exit 2) | Abnormal stop (escalation) | Ask the user to decide |\n| No incomplete task | Normal stop (all complete) | Output a completion report |\n\nWhen `--max-cycles 3` is specified, stop after 3 cycles.\nBy default (`--max-cycles 8`), stop after 8 cycles.\n\n## Interim reports \u002F Silence Policy\n\nIn a long-running loop, treat interim reports as \"notifications when a judgment changes,\" not \"heartbeats for reassurance.\"\nDo not reply just because a transcript delta arrived; stay silent explicitly when nothing is needed.\n\nReport these:\n\n- Cycle completion, cap reached, all complete, blocked\n- validation failure, review `REQUEST_CHANGES`, plateau, advisor `STOP`\n- advisor \u002F reviewer drift, contract readiness failure\n- A summary when the user asks for `status`\n\nMay stay silent for these:\n\n- Only a transcript delta increased, with no change in task \u002F review \u002F advisor state\n- Only fine-grained stdout that remains in the log increased\n- Waiting for pacing until the next wake-up\n\nThe default is \"one final report per cycle.\"\nHowever, an unanswered Advisor request, an unarrived Reviewer result, and a warning right before a plateau are reported with priority over the silence policy.\n\n## Integration with \u002Floop\n\nUse this skill in combination with CC's `\u002Floop` (dynamic mode).\n\nWhen `\u002Floop` is enabled, CC continues autonomous re-entry execution, and\nat the end of each cycle it schedules the next wake-up by calling `ScheduleWakeup`.\n\n`\u002Floop` sentinel: `\u003C\u003Cautonomous-loop-dynamic>>`\n\nSince each wake-up starts with **fresh context**, it prevents context contamination from the previous cycle.\nReloading the resume pack via `harness-mem resume-pack` is required (Step 2).\n\n## Checkpoint recording\n\n`harness_mem_record_checkpoint` schema:\n\n```json\n{\n  \"session_id\": \"\u003Csession ID>\",\n  \"title\": \"harness-loop cycle {N}\u002F{max}: {task name}\",\n  \"content\": \"one-line summary of cycle_result + commit hash\"\n}\n```\n\n## Advisor Strategy\n\nThe star of this skill is the executor; the advisor is called only when needed.\nAs an analogy, the owner usually self-drives and consults a veteran only at the hard parts.\n\nThe consultation conditions are fixed; do not use a natural-language \"low confidence\" judgment.\n\n| Condition | Consult? |\n|------|-----------|\n| `needs-spike` \u002F `security-sensitive` \u002F `state-migration` | Yes |\n| `\u003C!-- advisor:required -->` | Yes |\n| The 2nd failure of the same cause | Yes |\n| Right before stopping due to a plateau | Yes |\n\nThe same trigger is consulted only once.\nFor that judgment, use `trigger_hash = task_id + reason_code + normalized_error_signature`.\n\n## Related skills\n\n- `harness-work` — the task-implementation skill run in each cycle\n- `harness-plan` — planning the loop-target tasks\n- `harness-review` — reviewing individual tasks\n- `session-control` — session state management\n","# harness-loop\n\nA meta-skill that combines `\u002Floop` (CC dynamic mode) with `ScheduleWakeup` to\n**re-enter and run a long-running task with fresh context on each wake-up**.\n\nAt each wake-up it invokes `harness-work --breezing` via Agent,\nforming a re-enterable loop where 1 cycle = 1 task completed.\n\n> **Long-session helpers (CC 2.1.108+)**:\n> When a person returns, re-fetch a summary with `\u002Frecap` before looking at `\u002Fharness-loop status`.\n> For operations with long absences or frequent re-entries, prefer `ENABLE_PROMPT_CACHING_1H=1`.\n\n> **Recommended for long sessions (CC 2.1.108+)**:\n> If a session is expected to exceed 30 minutes, after resolving the plugin bundle root run `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenable-1h-cache.sh\"` to opt into the 1-hour prompt cache.\n\n## Quick Reference\n\n| Input | Behavior |\n|------|------|\n| `\u002Fharness-loop all` | Loop over all incomplete tasks (default: max 8 cycles) |\n| `\u002Fharness-loop all --max-cycles 3` | Stop after 3 cycles |\n| `\u002Fharness-loop 41.1-41.3 --pacing ci` | Run a task range with CI pacing |\n| `\u002Fharness-loop all --plan roadmap` | Loop over the named Plans `roadmap` |\n| `\u002Fharness-loop all --pacing night` | Overnight batch (3600s interval) |\n| `\u002Fharness-loop status` | Check the status of a running runner |\n| `\u002Fharness-loop stop` | Request a running runner to stop |\n\n## Options\n\n| Option | Description | Default |\n|----------|------|----------|\n| `all` | Target all incomplete tasks | - |\n| `N-M` | Specify a task number range | - |\n| `--plan NAME` | Use a named plan from `plans\u002Fmanifest.json` | active\u002Fdefault |\n| `--max-cycles N` | Maximum number of cycles | `8` |\n| `--pacing \u003Cmode>` | Wake-up interval mode | `worker` (270s) |\n\n### pacing value mapping\n\n| pacing | delaySeconds | Use case |\n|--------|-------------|------|\n| `worker` | 270 | Right after Worker completion (cache warm within 5 min) |\n| `ci` | 270 | Waiting for a short CI job |\n| `plateau` | 1200 | 20 min (retry interval after plateau detection) |\n| `night` | 3600 | Long overnight idle |\n\n> **Constraint**: `ScheduleWakeup`'s `delaySeconds` is clamped to **[60, 3600]** at runtime.\n> `worker` \u002F `ci` at 270s and `night` at 3600s are within this range.\n> `plateau` at 1200s is also within range. When specifying a value directly, always keep it between 60 and 3600 inclusive.\n\n## Startup flow (entry per wake-up)\n\nDetailed version: [`${CLAUDE_SKILL_DIR}\u002Freferences\u002Fflow.md`](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fflow.md)\n\n### Resolving the plugin bundle root\n\n`harness-loop` calls helper scripts under the plugin bundle root, not the host project's cwd.\nAs an analogy, treat the workbench (host project) and the toolbox (plugin bundle) separately.\n\nAt the start of each wake-up, determine `HARNESS_PLUGIN_ROOT` in this order:\n\n1. If `CLAUDE_PLUGIN_ROOT` exists and contains `scripts\u002F`, use it\n2. If `CLAUDE_PLUGIN_ROOT` is absent, derive the plugin bundle root from `CLAUDE_SKILL_DIR`\n   - For a `skills\u002Fharness-loop` distribution, `${CLAUDE_SKILL_DIR}\u002F..\u002F..`\n   - For a `.agents\u002Fskills\u002Fharness-loop` mirror distribution, `${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002F..`\n3. If neither resolves, stop and re-run after setting `CLAUDE_PLUGIN_ROOT` to the plugin bundle root\n\nKeep `Plans.md` and `.claude\u002Fstate\u002F...` on the host project side.\nCall only helper scripts from `${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...`.\n\nIn a repo with multiple Plans.md, specify `--plan NAME` explicitly when starting a long run.\nThe runner keeps the Plans file resolved at start across cycles, so it does not switch the active plan mid-run.\n\n```\nwake-up\n  │\n  ▼\n[Step 0] Resolve the plugin bundle root into HARNESS_PLUGIN_ROOT\n  Use CLAUDE_PLUGIN_ROOT if it is valid\n  Otherwise derive the plugin bundle root from CLAUDE_SKILL_DIR\n  ※ Do not reference the host project cwd's scripts\u002F\n  │\n  ▼\n[Step 1] Read Plans.md first\n  Identify the first cc:WIP \u002F cc:TODO task (get the task_id)\n  ※ No incomplete task → end the loop (normal completion)\n  │\n  ▼\n[Step 2] Check for and generate the sprint-contract\n  Check whether .claude\u002Fstate\u002Fcontracts\u002F${task_id}.sprint-contract.json exists\n  If absent, generate with node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" ${task_id}\n  Right after generation (first time only): bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\" \u003Ccontract-path> \\\n    --check \"wake-up auto-approval (for harness-loop, confirm DoD from the reviewer's perspective)\" \\\n    --approve  ← promote draft → approved\n  (Existing contracts are already approved, so skip)\n  │\n  ▼\n[Step 3] Contract readiness check\n  bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\" \u003Ccontract-path>\n  │\n  ▼\n[Step 4] Reload the resume pack\n  harness-mem resume-pack (re-inject context)\n  │\n  ▼\n[Step 4.5] Advisor consult (only when needed)\n  Before the first execution of a high-risk task \u002F after the 2nd failure of the same cause \u002F right before a plateau,\n  assemble `advisor-request.v1` and consult\n  │\n  ├── PLAN        → prepend the advice to the next executor prompt\n  ├── CORRECTION  → re-run as a local-fix instruction\n  └── STOP        → stop the loop on the spot and record the reason\n  │\n  ▼\n[Step 5] Run one task cycle\n  worker_result = Agent(\n      subagent_type=\"harness:worker\",  # the worker agent (not harness-work)\n      prompt=\"Task: ${task_id}\\nDoD: \u003Cextract from Plans.md>\\ncontract_path: ${CONTRACT_PATH}\\nmode: breezing\",\n      isolation=\"worktree\",\n      run_in_background=false\n  )\n  # worker_result: { commit, branch, worktreePath, files_changed, summary }\n  │\n  ▼\n[Step 5.5] Run the Lead review\n  diff_text = git show worker_result.commit\n  verdict = reviewer_agent_review(diff_text)\n  ※ See flow.md for details\n  │\n  ▼\n[Step 5.6] APPROVE → cherry-pick to main \u002F REQUEST_CHANGES → fix loop (up to the contract's max_iterations, default 3)\n  APPROVE: git cherry-pick → update Plans.md to cc:done [{hash}] → delete the feature branch\n  Still rejected after REQUEST_CHANGES x MAX_REVIEWS: escalate\n  ※ See flow.md for details\n  │\n  ▼\n[Step 6] Plateau decision\n  bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fdetect-review-plateau.sh\" ${current_task_id}\n  │\n  ├── PIVOT_REQUIRED (exit 2)  → stop the loop + escalate to the user\n  ├── INSUFFICIENT_DATA (exit 1)→ continue\n  └── PIVOT_NOT_REQUIRED (exit 0)→ continue\n  │\n  ▼\n[Step 7] Cycle count check\n  │\n  ├── cycles >= max_cycles → stop the loop (cap reached)\n  │\n  ▼\n[Step 8] Record a checkpoint\n  harness_mem_record_checkpoint(\n      session_id, title, content=cycle result summary\n  )\n  │\n  ▼\n[Step 9] Schedule the next wake-up\n  ScheduleWakeup(\n      delaySeconds=\u003Cpacing value>,\n      prompt=\"\u002Fharness-loop \u003Csame arguments>\",\n      reason=\"cycle {N}\u002F{max} complete — to the next task\"\n  )\n```\n\n## Cycle stop conditions\n\n| Condition | Stop type | Response |\n|------|---------|------|\n| `cycles >= max_cycles` | Normal stop (cap reached) | Report to the user |\n| `PIVOT_REQUIRED` (exit 2) | Abnormal stop (escalation) | Ask the user to decide |\n| No incomplete task | Normal stop (all complete) | Output a completion report |\n\nWhen `--max-cycles 3` is specified, stop after 3 cycles.\nBy default (`--max-cycles 8`), stop after 8 cycles.\n\n## Interim reports \u002F Silence Policy\n\nIn a long-running loop, treat interim reports as \"notifications when a judgment changes,\" not \"heartbeats for reassurance.\"\nDo not reply just because a transcript delta arrived; stay silent explicitly when nothing is needed.\n\nReport these:\n\n- Cycle completion, cap reached, all complete, blocked\n- validation failure, review `REQUEST_CHANGES`, plateau, advisor `STOP`\n- advisor \u002F reviewer drift, contract readiness failure\n- A summary when the user asks for `status`\n\nMay stay silent for these:\n\n- Only a transcript delta increased, with no change in task \u002F review \u002F advisor state\n- Only fine-grained stdout that remains in the log increased\n- Waiting for pacing until the next wake-up\n\nThe default is \"one final report per cycle.\"\nHowever, an unanswered Advisor request, an unarrived Reviewer result, and a warning right before a plateau are reported with priority over the silence policy.\n\n## Integration with \u002Floop\n\nUse this skill in combination with CC's `\u002Floop` (dynamic mode).\n\nWhen `\u002Floop` is enabled, CC continues autonomous re-entry execution, and\nat the end of each cycle it schedules the next wake-up by calling `ScheduleWakeup`.\n\n`\u002Floop` sentinel: `\u003C\u003Cautonomous-loop-dynamic>>`\n\nSince each wake-up starts with **fresh context**, it prevents context contamination from the previous cycle.\nReloading the resume pack via `harness-mem resume-pack` is required (Step 2).\n\n## Checkpoint recording\n\n`harness_mem_record_checkpoint` schema:\n\n```json\n{\n  \"session_id\": \"\u003Csession ID>\",\n  \"title\": \"harness-loop cycle {N}\u002F{max}: {task name}\",\n  \"content\": \"one-line summary of cycle_result + commit hash\"\n}\n```\n\n## Advisor Strategy\n\nThe star of this skill is the executor; the advisor is called only when needed.\nAs an analogy, the owner usually self-drives and consults a veteran only at the hard parts.\n\nThe consultation conditions are fixed; do not use a natural-language \"low confidence\" judgment.\n\n| Condition | Consult? |\n|------|-----------|\n| `needs-spike` \u002F `security-sensitive` \u002F `state-migration` | Yes |\n| `\u003C!-- advisor:required -->` | Yes |\n| The 2nd failure of the same cause | Yes |\n| Right before stopping due to a plateau | Yes |\n\nThe same trigger is consulted only once.\nFor that judgment, use `trigger_hash = task_id + reason_code + normalized_error_signature`.\n\n## Related skills\n\n- `harness-work` — the task-implementation skill run in each cycle\n- `harness-plan` — planning the loop-target tasks\n- `harness-review` — reviewing individual tasks\n- `session-control` — session state management\n",{"base":24,"kind":25,"name":5,"pair":26,"role":27,"owner":28,"shape":29,"since":30,"purpose":31,"trigger":32,"description":7,"allowed-tools":33,"argument-hint":41,"description-en":7,"user-invocable":42},"harness-work","workflow","harness-sync","orchestrator","harness-core","delegate","2026-05-05","Re-enter long-running Plans.md execution with fresh context","long-running, loop, wake-up, autonomous",[34,35,36,37,38,39,40],"Read","Edit","Bash","Task","ScheduleWakeup","mcp__harness__harness_mem_resume_pack","mcp__harness__harness_mem_record_checkpoint","[all|N-M] [--max-cycles N] [--pacing worker|ci|plateau|night]",true,"main","3517f6fc9c5159f32d585682386ed45e35c30ddf","skills\u002Fharness-loop","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness","https:\u002F\u002Fgithub.com\u002Ffoden303","Software Engineer","2026-11-06 10:59:21",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":42},[52,55,58],{"tool":53,"command":54},"npx","npx skills add foden303\u002Fharness --skill harness-loop",{"tool":56,"command":57},"bunx","bunx skills add foden303\u002Fharness --skill harness-loop",{"tool":59,"command":60},"pnpm","pnpm dlx skills add foden303\u002Fharness --skill harness-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-loop\u002FSKILL.md",[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fflow.md","REFERENCE","参考文档",24631,"https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-loop\u002Freferences\u002Fflow.md",[70,76,82,89,96,102],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79DWR27RWW11HNKY0MRECPP","escape-skill","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-escape\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79DWPSR8ZK3V4DQK5EWVJ3K","zz-review-empty","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-empty\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M79DWFV6PYV0QEZ3SC32VMCM","memory","Manage SSOT, memory, and cross-tool memory search. Guardian of decisions.md and patterns.md. Use when user mentions memory, SSOT, decisions.md, patterns.md, merging, migration, SSOT promotion, sync memory, save learnings, memory search, harness-mem, past decisions, or record this. Do NOT load for: implementation work, reviews, ad-hoc notes, or in-session logging.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fmemory\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M79DWB6MB7EQK2JT4A84NHJD","maintenance","File cleanup and archiving. Tidies up bloated Plans.md, session-log.md, old logs, and state files. Trigger: \u002Fmaintenance, cleanup, archive, organize, split session-log. Do NOT load for: implementation, review, release, new feature development.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fmaintenance\u002FSKILL.md",[],[],{"skillNo":97,"name":24,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79DW33AEPBCXFAMX8YH56PG","HAR: Execute Plans.md tasks from single task to full parallel team run. Trigger: implement, execute, do everything, breezing, team run, parallel. Do NOT load for: planning, review, release, setup.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002FSKILL.md",[],[],{"skillNo":103,"name":26,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M79DVWV7PZC0E2GYC103QBYZ","HAR: Sync Plans.md with implementation. Drift detect, marker update, retrospective. Trigger: sync-status, where am I, check progress. --snapshot for snapshots. Do NOT load for: planning, implementation, review, release.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-sync\u002FSKILL.md",[],[]]