[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79B85P886PQMP1RMBVGWJG1":3,"skill-same:01M79B85P886PQMP1RMBVGWJG1":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":56},"01M79B85P886PQMP1RMBVGWJG1","harness-loop",null,"HAR: Codex-native long-running loop runner. Uses a real background runner that executes one ready batch per cycle through Breezing by default, with status\u002Fstop controls. Trigger: long-running, loop, autonomous, background, Codex. Do NOT load for: one-shot implementation, normal review, release.","Timothy191\u002Farch-systems-portal","Timothy191","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219252205?v=4","01M79B3963G748F05KS7AH3NJR","01M79B396N88AYYNHK5G2DNP2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fcodex\u002F.codex\u002Fskills\u002Fharness-loop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness-loop\ndescription: \"HAR: Codex-native long-running loop runner. Uses a real background runner that executes one ready batch per cycle through Breezing by default, with status\u002Fstop controls. Trigger: long-running, loop, autonomous, background, Codex. Do NOT load for: one-shot implementation, normal review, release.\"\ndescription-en: \"HAR: Codex-native long-running loop runner. Uses a real background runner that executes one ready batch per cycle through Breezing by default, with status\u002Fstop controls. Trigger: long-running, loop, autonomous, background, Codex. Do NOT load for: one-shot implementation, normal review, release.\"\ndescription-ja: \"HAR: Codex 専用の長時間ループ実行。実際のバックグラウンドランナーが ready batch を Breezing で進め、status \u002F stop で監視できる。長時間、loop、ループ、autonomous、background、Codex で起動。\"\nkind: workflow\npurpose: \"Run long-lived Codex ready-batch execution loops\"\ntrigger: \"long-running, loop, autonomous, background, Codex\"\nshape: delegate\nrole: orchestrator\nbase: harness-work\npair: harness-sync\nowner: harness-core\nsince: \"2026-05-05\"\nallowed-tools: [\"Read\", \"Bash\"]\nargument-hint: \"[all|TASK|START-END|START..END] [--max-cycles N] [--max-workers N|max] [--executor breezing|task] [--pacing worker|ci|plateau|night]\"\ndisable-model-invocation: true\n---\n\n# Harness Loop\n\nCodex 版の `harness-loop` は、説明だけの擬似ループではなく、\n**実際にバックグラウンドで回るランナー**を起動する。\n\n## ひとことで\n\n`$harness-loop` は、1 回だけの実装依頼ではなく、\n「今すぐ実行できる未完了タスクのまとまりを、Breezing で自動実行し続ける当番」を起動する入口。\n\nここでいう `ready batch` は、Depends が満たされていて、今すぐ並列実行できる `cc:TODO` \u002F `cc:WIP` のまとまり。\n1 cycle は 1 task ではなく、原則として 1 ready batch を処理する。\n\n## たとえると\n\n人が横でずっと見張る代わりに、\n「同時に進められる作業をまとめて見つける → Breezing に任せる → 結果を確認する → 次のまとまりへ進む」\nを繰り返す監督係を、裏で常駐させるイメージ。\n\n## Quick Reference\n\n| 入力                                  | 動作                                                 |\n| ------------------------------------- | ---------------------------------------------------- |\n| `$harness-loop all`                   | 未完了タスク全体を長時間ループで開始                 |\n| `$harness-loop 41.1-41.4`             | 範囲を絞って開始                                     |\n| `$harness-loop JLB3R-02..JLB3R-08`    | Plans.md の task ID 順で範囲を絞って開始             |\n| `$harness-loop all --max-cycles 3`    | 最大 3 サイクルで停止                                |\n| `$harness-loop all --max-workers 4`   | 1 cycle の ready batch を最大 4 worker までに制限    |\n| `$harness-loop all --max-workers max` | ready batch 内で実行可能なタスク数を上限として並列化 |\n| `$harness-loop all --plan roadmap`    | named Plans の `roadmap` を対象にループ実行          |\n| `$harness-loop all --executor task`   | 旧来の 1 task per cycle local worker 実行へ逃がす    |\n| `$harness-loop all --pacing night`    | サイクル間の待機を長めにする                         |\n| `$harness-loop status`                | 現在の実行状況を確認                                 |\n| `$harness-loop stop`                  | 進行中ジョブを止めてループ停止要求を出す             |\n\n## 実行コマンド\n\n### 開始\n\n```bash\nharness codex-loop start all\n```\n\n範囲指定:\n\n```bash\nharness codex-loop start 41.1-41.4 --max-cycles 5 --pacing worker\nharness codex-loop start JLB3R-02..JLB3R-08 --max-cycles 5 --pacing worker\nharness codex-loop start all --max-workers max --pacing worker\nharness codex-loop start all --plan roadmap --max-cycles 5\nharness codex-loop start all --executor task --max-cycles 5\n```\n\n`START..END` は、`Plans.md` に並んでいる task ID をそのまま使う範囲指定。\n英字やハイフンを含む task ID は `..` を優先する。\n`41.1-41.4` のような従来の数値レンジも引き続き使える。\n\n`--max-workers` は、Breezing が 1 cycle で同時に動かす worker 数の上限。\n`max` は、選択範囲内で Depends が満たされた ready task の数をそのまま上限にする。\n`--executor task` は、Breezing ではなく local worker に 1 task だけ渡す互換用の逃げ道。\n問題切り分けや、並列実行したくない危険な作業で使う。\n複数 Plans.md がある repo では、長時間 run の起動時に `--plan NAME` を明示する。\nrunner は開始時に解決した Plans file を cycle 間で保持するため、途中で active plan を切り替えない。\n\n### 状態確認\n\n```bash\nharness codex-loop status\nharness codex-loop status --json\n```\n\n### 停止\n\n```bash\nharness codex-loop stop\n```\n\n## どう動くか\n\n1. project root の `.claude\u002Fstate\u002Fcodex-loop\u002F` に Harness loop の実行状態を書き出す\n2. 受け取った selection を Plans.md から正規化する\n3. Plans.md から Depends が満たされた `cc:TODO` \u002F `cc:WIP` を集め、ready batch を作る\n4. `--max-workers` で ready batch の同時実行数を制限する\n5. 既定では Breezing executor が ready batch を Lead \u002F Worker \u002F Reviewer 分離で実行する\n6. `--executor task` の時だけ、互換用 local worker が 1 task per cycle で `codex exec` を起動する（`CODEX_LOOP_TASK_DRIVER=companion` の時だけ `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fcodex-companion.sh\" task --background --write ...` を使う）\n7. 高リスク task \u002F 2 回目失敗 \u002F plateau 直前では advisor consult を挟む\n8. ready batch 完了後に review \u002F checkpoint \u002F plateau 判定を行う\n9. まだ対象タスクが残っていれば、待機後に次サイクルへ進む\n\n## Realtime Handoff \u002F Silence Policy\n\nCodex `0.123.0` 以降の background agent は realtime handoff で transcript delta を受け取れる。\nこの delta は「状況把握用の追記」であり、毎回ユーザーへ返答する合図ではない。\n\nひとことで: background agent は、必要な時だけ報告し、何も判断が変わらない時は明示的に沈黙する。\n\nたとえると、見張り役が廊下でずっと実況するのではなく、異常・完了・判断待ちだけを知らせる形。\n\n報告してよいタイミング:\n\n- loop 開始、停止、`already running`、`stop` 受理など、ユーザー操作に関わる lifecycle 境界\n- 1 ready batch cycle の最終結果、commit、`RESULT: APPROVED` \u002F `RESULT: BLOCKED`\n- Breezing Lead が task 完了を progress feed としてまとめて出す時\n- task が blocked、validation failure、review `REQUEST_CHANGES`、plateau、advisor `STOP` で止まる時\n- user が `status` を実行した時、または明示的に途中状況を聞いた時\n- advisor \u002F reviewer drift、contract readiness failure など、放置すると品質判定がずれる時\n\n沈黙するタイミング:\n\n- transcript delta を受け取っただけで、task \u002F review \u002F advisor の状態が変わっていない時\n- `runner.log` \u002F `jobs\u002F*.log` に既に残る細かな stdout だけが増えた時\n- `pacing` 待機中で、次 cycle まで新しい判断材料がない時\n\n途中報告の頻度:\n\n- default は「1 ready batch cycle につき最終報告 1 回」。\n- Breezing の task-level progress feed は、batch 内の完了数が動いた時だけ出す。\n- 長い cycle でも、material state change がない限り heartbeat は出さない。\n- 詳細な流れは `harness codex-loop status --json` と project root の `.claude\u002Fstate\u002Fcodex-loop\u002Frunner.log` に寄せ、会話側には要点だけ出す。\n\nAdvisor \u002F Reviewer drift との関係:\n\n- silence policy は drift 検知を弱めるためのものではない。\n- `advisor-request.v1` に response がない、`review-result.v1` が返らない、contract が未承認などの異常は必ず state \u002F log に残し、必要ならユーザーへ報告する。\n- Advisor は `PLAN` \u002F `CORRECTION` \u002F `STOP` の相談役、Reviewer は最終品質判定役のまま分離する。\n\n## pacing\n\n| 値        | 用途                   | 待機秒数 |\n| --------- | ---------------------- | -------- |\n| `worker`  | 通常の開発ループ       | 270      |\n| `ci`      | 短めに確認したい時     | 270      |\n| `plateau` | 行き詰まり気味の再試行 | 1200     |\n| `night`   | 長めの放置実行         | 3600     |\n\n## State Path Policy\n\nCodex 版 `harness-loop` は、Codex native の会話・実行キャッシュと、Harness が共有する project state を分けて扱う。\n\n- **Harness 共通 state**: project root の `.claude\u002Fstate\u002F` 配下に置く。Claude 側の advisor \u002F review \u002F checkpoint と共有するため、`harness codex-loop status` もここを読む。\n- **Codex loop runner state**: project root の `.claude\u002Fstate\u002Fcodex-loop\u002F` 配下に置く。これは「Codex 全体の正本」ではなく、Harness loop runner の job \u002F cycle \u002F log 用 state。\n- **Codex native state**: `${CODEX_HOME:-~\u002F.codex}` 配下に残る Codex 自身の thread \u002F transcript \u002F cache。Harness loop の task status、advisor history、review result の正本にはしない。\n- **禁止**: `.Codex\u002F` や `~\u002F.Codex` を正本 path として案内しない。大文字 `Codex` ディレクトリは historical drift と見なす。\n\nつまり、`.claude\u002Fstate\u002Fcodex-loop\u002F` は「この project の Harness loop state」であり、Codex native state 全体の固定保存先ではない。\n\n## 状態ファイル\n\n以下はすべて project root 基準。\n\n- `.claude\u002Fstate\u002Fcodex-loop\u002Frun.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fcycles.jsonl`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Frunner.log`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fcurrent-job.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.log`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.out`\n- `.claude\u002Fstate\u002Fadvisor\u002Fhistory.jsonl`\n- `.claude\u002Fstate\u002Fadvisor\u002Flast-request.json`\n- `.claude\u002Fstate\u002Fadvisor\u002Flast-response.json`\n- `.claude\u002Fstate\u002Flocks\u002Fcodex-loop.lock.d`\n\n## Advisor Consult\n\nAdvisor は「代わりに実装する役」ではなく、「次の一手だけ返す相談役」。\nloop では次の 3 箇所でだけ呼ぶ。\n\n| タイミング                 | reason_code              | 何をするか                 |\n| -------------------------- | ------------------------ | -------------------------- |\n| 高リスク task の初回実行前 | `high-risk-preflight`    | 先に固める観点を聞く       |\n| 同じ原因の 2 回目失敗後    | `retry-threshold`        | 方針変更か局所修正かを聞く |\n| plateau による停止直前     | `plateau-pre-escalation` | 本当に止めるべきかを聞く   |\n\ndecision は 3 種だけ。\n\n| decision     | loop の扱い                                      |\n| ------------ | ------------------------------------------------ |\n| `PLAN`       | advice を次の executor prompt 先頭に足して再実行 |\n| `CORRECTION` | 局所修正の指示として再実行                       |\n| `STOP`       | loop を停止し、理由を state と runner.log に残す |\n\n同じ trigger は `trigger_hash = task_id + reason_code + normalized_error_signature` で 1 回だけ相談する。\n相談回数は task ごとに最大 3 回で、それ以上はユーザー判断に上げる。\n\n## 注意点\n\n- これは **本当に裏で動く**。説明だけ返して終わるスキルではない。\n- 同時に 2 本は起動できない。既に走っている場合は `already running` で止まる。\n- 既定 executor は Breezing。旧来の 1 task per cycle 挙動が必要な時だけ `--executor task` を使う。\n- 失敗したタスクを無理に飛ばして次へ進めるのではなく、基本はその場で止まって理由を残す。\n- `status` と `runner.log` を見れば、今どこで止まっているか追いやすい。\n\n## 具体例\n\n「Phase 41 の残タスクを、今日の間は自動で回したい」なら:\n\n```bash\nharness codex-loop start 41.1-41.4 --max-cycles 8 --max-workers max --pacing worker\n```\n\n途中で様子を見る:\n\n```bash\nharness codex-loop status\n```\n\n夜になって止めたい:\n\n```bash\nharness codex-loop stop\n```\n\n## なぜこの形か\n\nCodex では Claude の `\u002Floop` と同じ wake-up 機構をそのまま使えない。\nその代わり、**Codex loop runner** を土台にして、\nHarness 側で状態管理と再入制御を持ち、実作業は Breezing の batch 実行に寄せる。\nそうすると、長時間タスクでも「止める」「再開する」「今の状態を見る」が素直になり、\n依存関係を満たした作業だけを安全にまとめて進められる。\n","# Harness Loop\n\nCodex 版の `harness-loop` は、説明だけの擬似ループではなく、\n**実際にバックグラウンドで回るランナー**を起動する。\n\n## ひとことで\n\n`$harness-loop` は、1 回だけの実装依頼ではなく、\n「今すぐ実行できる未完了タスクのまとまりを、Breezing で自動実行し続ける当番」を起動する入口。\n\nここでいう `ready batch` は、Depends が満たされていて、今すぐ並列実行できる `cc:TODO` \u002F `cc:WIP` のまとまり。\n1 cycle は 1 task ではなく、原則として 1 ready batch を処理する。\n\n## たとえると\n\n人が横でずっと見張る代わりに、\n「同時に進められる作業をまとめて見つける → Breezing に任せる → 結果を確認する → 次のまとまりへ進む」\nを繰り返す監督係を、裏で常駐させるイメージ。\n\n## Quick Reference\n\n| 入力                                  | 動作                                                 |\n| ------------------------------------- | ---------------------------------------------------- |\n| `$harness-loop all`                   | 未完了タスク全体を長時間ループで開始                 |\n| `$harness-loop 41.1-41.4`             | 範囲を絞って開始                                     |\n| `$harness-loop JLB3R-02..JLB3R-08`    | Plans.md の task ID 順で範囲を絞って開始             |\n| `$harness-loop all --max-cycles 3`    | 最大 3 サイクルで停止                                |\n| `$harness-loop all --max-workers 4`   | 1 cycle の ready batch を最大 4 worker までに制限    |\n| `$harness-loop all --max-workers max` | ready batch 内で実行可能なタスク数を上限として並列化 |\n| `$harness-loop all --plan roadmap`    | named Plans の `roadmap` を対象にループ実行          |\n| `$harness-loop all --executor task`   | 旧来の 1 task per cycle local worker 実行へ逃がす    |\n| `$harness-loop all --pacing night`    | サイクル間の待機を長めにする                         |\n| `$harness-loop status`                | 現在の実行状況を確認                                 |\n| `$harness-loop stop`                  | 進行中ジョブを止めてループ停止要求を出す             |\n\n## 実行コマンド\n\n### 開始\n\n```bash\nharness codex-loop start all\n```\n\n範囲指定:\n\n```bash\nharness codex-loop start 41.1-41.4 --max-cycles 5 --pacing worker\nharness codex-loop start JLB3R-02..JLB3R-08 --max-cycles 5 --pacing worker\nharness codex-loop start all --max-workers max --pacing worker\nharness codex-loop start all --plan roadmap --max-cycles 5\nharness codex-loop start all --executor task --max-cycles 5\n```\n\n`START..END` は、`Plans.md` に並んでいる task ID をそのまま使う範囲指定。\n英字やハイフンを含む task ID は `..` を優先する。\n`41.1-41.4` のような従来の数値レンジも引き続き使える。\n\n`--max-workers` は、Breezing が 1 cycle で同時に動かす worker 数の上限。\n`max` は、選択範囲内で Depends が満たされた ready task の数をそのまま上限にする。\n`--executor task` は、Breezing ではなく local worker に 1 task だけ渡す互換用の逃げ道。\n問題切り分けや、並列実行したくない危険な作業で使う。\n複数 Plans.md がある repo では、長時間 run の起動時に `--plan NAME` を明示する。\nrunner は開始時に解決した Plans file を cycle 間で保持するため、途中で active plan を切り替えない。\n\n### 状態確認\n\n```bash\nharness codex-loop status\nharness codex-loop status --json\n```\n\n### 停止\n\n```bash\nharness codex-loop stop\n```\n\n## どう動くか\n\n1. project root の `.claude\u002Fstate\u002Fcodex-loop\u002F` に Harness loop の実行状態を書き出す\n2. 受け取った selection を Plans.md から正規化する\n3. Plans.md から Depends が満たされた `cc:TODO` \u002F `cc:WIP` を集め、ready batch を作る\n4. `--max-workers` で ready batch の同時実行数を制限する\n5. 既定では Breezing executor が ready batch を Lead \u002F Worker \u002F Reviewer 分離で実行する\n6. `--executor task` の時だけ、互換用 local worker が 1 task per cycle で `codex exec` を起動する（`CODEX_LOOP_TASK_DRIVER=companion` の時だけ `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fcodex-companion.sh\" task --background --write ...` を使う）\n7. 高リスク task \u002F 2 回目失敗 \u002F plateau 直前では advisor consult を挟む\n8. ready batch 完了後に review \u002F checkpoint \u002F plateau 判定を行う\n9. まだ対象タスクが残っていれば、待機後に次サイクルへ進む\n\n## Realtime Handoff \u002F Silence Policy\n\nCodex `0.123.0` 以降の background agent は realtime handoff で transcript delta を受け取れる。\nこの delta は「状況把握用の追記」であり、毎回ユーザーへ返答する合図ではない。\n\nひとことで: background agent は、必要な時だけ報告し、何も判断が変わらない時は明示的に沈黙する。\n\nたとえると、見張り役が廊下でずっと実況するのではなく、異常・完了・判断待ちだけを知らせる形。\n\n報告してよいタイミング:\n\n- loop 開始、停止、`already running`、`stop` 受理など、ユーザー操作に関わる lifecycle 境界\n- 1 ready batch cycle の最終結果、commit、`RESULT: APPROVED` \u002F `RESULT: BLOCKED`\n- Breezing Lead が task 完了を progress feed としてまとめて出す時\n- task が blocked、validation failure、review `REQUEST_CHANGES`、plateau、advisor `STOP` で止まる時\n- user が `status` を実行した時、または明示的に途中状況を聞いた時\n- advisor \u002F reviewer drift、contract readiness failure など、放置すると品質判定がずれる時\n\n沈黙するタイミング:\n\n- transcript delta を受け取っただけで、task \u002F review \u002F advisor の状態が変わっていない時\n- `runner.log` \u002F `jobs\u002F*.log` に既に残る細かな stdout だけが増えた時\n- `pacing` 待機中で、次 cycle まで新しい判断材料がない時\n\n途中報告の頻度:\n\n- default は「1 ready batch cycle につき最終報告 1 回」。\n- Breezing の task-level progress feed は、batch 内の完了数が動いた時だけ出す。\n- 長い cycle でも、material state change がない限り heartbeat は出さない。\n- 詳細な流れは `harness codex-loop status --json` と project root の `.claude\u002Fstate\u002Fcodex-loop\u002Frunner.log` に寄せ、会話側には要点だけ出す。\n\nAdvisor \u002F Reviewer drift との関係:\n\n- silence policy は drift 検知を弱めるためのものではない。\n- `advisor-request.v1` に response がない、`review-result.v1` が返らない、contract が未承認などの異常は必ず state \u002F log に残し、必要ならユーザーへ報告する。\n- Advisor は `PLAN` \u002F `CORRECTION` \u002F `STOP` の相談役、Reviewer は最終品質判定役のまま分離する。\n\n## pacing\n\n| 値        | 用途                   | 待機秒数 |\n| --------- | ---------------------- | -------- |\n| `worker`  | 通常の開発ループ       | 270      |\n| `ci`      | 短めに確認したい時     | 270      |\n| `plateau` | 行き詰まり気味の再試行 | 1200     |\n| `night`   | 長めの放置実行         | 3600     |\n\n## State Path Policy\n\nCodex 版 `harness-loop` は、Codex native の会話・実行キャッシュと、Harness が共有する project state を分けて扱う。\n\n- **Harness 共通 state**: project root の `.claude\u002Fstate\u002F` 配下に置く。Claude 側の advisor \u002F review \u002F checkpoint と共有するため、`harness codex-loop status` もここを読む。\n- **Codex loop runner state**: project root の `.claude\u002Fstate\u002Fcodex-loop\u002F` 配下に置く。これは「Codex 全体の正本」ではなく、Harness loop runner の job \u002F cycle \u002F log 用 state。\n- **Codex native state**: `${CODEX_HOME:-~\u002F.codex}` 配下に残る Codex 自身の thread \u002F transcript \u002F cache。Harness loop の task status、advisor history、review result の正本にはしない。\n- **禁止**: `.Codex\u002F` や `~\u002F.Codex` を正本 path として案内しない。大文字 `Codex` ディレクトリは historical drift と見なす。\n\nつまり、`.claude\u002Fstate\u002Fcodex-loop\u002F` は「この project の Harness loop state」であり、Codex native state 全体の固定保存先ではない。\n\n## 状態ファイル\n\n以下はすべて project root 基準。\n\n- `.claude\u002Fstate\u002Fcodex-loop\u002Frun.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fcycles.jsonl`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Frunner.log`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fcurrent-job.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.json`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.log`\n- `.claude\u002Fstate\u002Fcodex-loop\u002Fjobs\u002F*.out`\n- `.claude\u002Fstate\u002Fadvisor\u002Fhistory.jsonl`\n- `.claude\u002Fstate\u002Fadvisor\u002Flast-request.json`\n- `.claude\u002Fstate\u002Fadvisor\u002Flast-response.json`\n- `.claude\u002Fstate\u002Flocks\u002Fcodex-loop.lock.d`\n\n## Advisor Consult\n\nAdvisor は「代わりに実装する役」ではなく、「次の一手だけ返す相談役」。\nloop では次の 3 箇所でだけ呼ぶ。\n\n| タイミング                 | reason_code              | 何をするか                 |\n| -------------------------- | ------------------------ | -------------------------- |\n| 高リスク task の初回実行前 | `high-risk-preflight`    | 先に固める観点を聞く       |\n| 同じ原因の 2 回目失敗後    | `retry-threshold`        | 方針変更か局所修正かを聞く |\n| plateau による停止直前     | `plateau-pre-escalation` | 本当に止めるべきかを聞く   |\n\ndecision は 3 種だけ。\n\n| decision     | loop の扱い                                      |\n| ------------ | ------------------------------------------------ |\n| `PLAN`       | advice を次の executor prompt 先頭に足して再実行 |\n| `CORRECTION` | 局所修正の指示として再実行                       |\n| `STOP`       | loop を停止し、理由を state と runner.log に残す |\n\n同じ trigger は `trigger_hash = task_id + reason_code + normalized_error_signature` で 1 回だけ相談する。\n相談回数は task ごとに最大 3 回で、それ以上はユーザー判断に上げる。\n\n## 注意点\n\n- これは **本当に裏で動く**。説明だけ返して終わるスキルではない。\n- 同時に 2 本は起動できない。既に走っている場合は `already running` で止まる。\n- 既定 executor は Breezing。旧来の 1 task per cycle 挙動が必要な時だけ `--executor task` を使う。\n- 失敗したタスクを無理に飛ばして次へ進めるのではなく、基本はその場で止まって理由を残す。\n- `status` と `runner.log` を見れば、今どこで止まっているか追いやすい。\n\n## 具体例\n\n「Phase 41 の残タスクを、今日の間は自動で回したい」なら:\n\n```bash\nharness codex-loop start 41.1-41.4 --max-cycles 8 --max-workers max --pacing worker\n```\n\n途中で様子を見る:\n\n```bash\nharness codex-loop status\n```\n\n夜になって止めたい:\n\n```bash\nharness codex-loop stop\n```\n\n## なぜこの形か\n\nCodex では Claude の `\u002Floop` と同じ wake-up 機構をそのまま使えない。\nその代わり、**Codex loop runner** を土台にして、\nHarness 側で状態管理と再入制御を持ち、実作業は Breezing の batch 実行に寄せる。\nそうすると、長時間タスクでも「止める」「再開する」「今の状態を見る」が素直になり、\n依存関係を満たした作業だけを安全にまとめて進められる。\n",{"base":23,"kind":24,"name":5,"pair":25,"role":26,"owner":27,"shape":28,"since":29,"purpose":30,"trigger":31,"description":7,"allowed-tools":32,"argument-hint":35,"description-en":7,"description-ja":36,"disable-model-invocation":37},"harness-work","workflow","harness-sync","orchestrator","harness-core","delegate","2026-05-05","Run long-lived Codex ready-batch execution loops","long-running, loop, autonomous, background, Codex",[33,34],"Read","Bash","[all|TASK|START-END|START..END] [--max-cycles N] [--max-workers N|max] [--executor breezing|task] [--pacing worker|ci|plateau|night]","HAR: Codex 専用の長時間ループ実行。実際のバックグラウンドランナーが ready batch を Breezing で進め、status \u002F stop で監視できる。長時間、loop、ループ、autonomous、background、Codex で起動。",true,"main","44656ee607735b31d88e298752f574936b85af75","agent-harnesses\u002Fclaude-code-harness\u002Fcodex\u002F.codex\u002Fskills\u002Fharness-loop","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal","https:\u002F\u002Fgithub.com\u002FTimothy191","2026-07-24 02:57:18",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":37},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Timothy191\u002Farch-systems-portal --skill harness-loop",{"tool":50,"command":51},"bunx","bunx skills add Timothy191\u002Farch-systems-portal --skill harness-loop",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Timothy191\u002Farch-systems-portal --skill harness-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fcodex\u002F.codex\u002Fskills\u002Fharness-loop\u002FSKILL.md",[],[58,64,70,77,84,91],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M79BVF4ZP6Z3GH36Y7BAAZHE","escape-skill","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-escape\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M79BVE0FF9QC71P53B18GCQ8","zz-review-empty","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-empty\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M79BVAB0TARBFRF4MCQ1T8AG","workflow-guide","Explicit helper for Cursor PM ↔ Claude Code two-agent workflow guidance. Do NOT load for: solo implementation, workflow setup, handoff execution, or general process coaching.","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fskills\u002Fworkflow-guide\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M79BV634WBDSVR8DXAHMHA19","vibecoder-guide","Explicit helper for non-technical VibeCoder coaching: what to ask next, how to describe work, and how to stay safe. Do NOT load for: direct implementation, technical review, or Cursor\u002FPM workflow.","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fskills\u002Fvibecoder-guide\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M79BV2G6901RYQGBT3QWDK64","ui","Explicit helper for UI components, hero sections, forms, feedback, and contact surfaces. Do NOT load for: authentication, backend implementation, database work, or business logic.","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fskills\u002Fui\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M79BTW2QT48HNNS9NCKE8PAH","session","Unified session management window. Handles initialization, memory, state all-in-one. Explicit \u002Fsession invocation only — sub-skills handle auto-delegation. Use when managing Claude Code sessions, \u002Fsession command. Do NOT load for: app user sessions, login state, authentication features.","https:\u002F\u002Fgithub.com\u002FTimothy191\u002Farch-systems-portal\u002Fblob\u002Fmain\u002Fagent-harnesses\u002Fclaude-code-harness\u002Fskills\u002Fsession\u002FSKILL.md",[],[]]