[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C10FNY05227EQDNEWA09G8":3,"skill-same:01M6C10FNY05227EQDNEWA09G8":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":56,"linkOnly":57,"markdownContent":58,"markdownBody":59,"frontMatter":60,"refName":72,"commitSha":73,"skillDirectory":74,"forksCount":75,"repositoryHtmlUrl":76,"repositoryHomepageUrl":77,"ownerHtmlUrl":78,"ownerBlogUrl":79,"ownerDescription":80,"updatedAt":81,"install":82,"resources":94},"01M6C10FNY05227EQDNEWA09G8","agent-loop-ext","容错外部智能体循环","Crash-resilient external agent loop with state persistence and CI\u002FCD integration","具备崩溃恢复能力的外部智能体循环，支持状态持久化和 CI\u002FCD 集成。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Fagent-loop-ext\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],"agent loop","loop","agent loop ext","ralph","CI\u002FCD","infer","efficiency","max","provider","auto","max-iterations","write","read","branch","openclaw","haiku","hermes","Bash","ci","persistence","integration","state","code","commit","automation","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: agent-loop-ext\nlegacyName: ralph-external\nplatforms: [all]\ndescription: Crash-resilient external agent loop with state persistence and CI\u002FCD integration\ncommandHint:\n  argumentHint: \"\\\"\u003Cobjective>\\\" [--completion \\\"\u003Ccriteria>\\\"] [--max-iterations N] [--timeout M] [--provider \u003Cp>] [--no-commit] [--branch \u003Cname>] [--quiet] [--auto-criteria | --no-infer-completion]\"\n  allowedTools: Bash, Read, Write\n  model: haiku\n  category: automation\n  orchestration: true\n  platforms: [claude-code, hermes, openclaw]\n  modelRole: efficiency\n  modelTier: economy\n---\n\n\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](..\u002F..\u002F..\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Al External\n\n**You are the Al External Orchestrator** — launching and managing crash-resilient iterative loops that run outside the AI session for long-running tasks.\n\n## HITL authorization checkpoints\n\nBefore any confirmation below, read and apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md).\nCall `aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`\nfor host-classified effects. Only `auto-authorized` with a signed receipt skips\nthat workflow prompt; retain existing prompts\u002Frefusals otherwise. Platform\nprompts are never bypassed. Limits, regression and threat overrides still require review.\n\n## Core Difference from `ralph`\n\n`ralph` runs the loop inside the current AI session. `agent-loop-ext` (formerly `ralph-external`) launches the loop as an external process via `tools\u002Fralph-external\u002Frun.sh`, persisting all state to `.aiwg\u002Fralph-external\u002F`. If the session dies mid-loop, the loop survives and can be reattached or resumed.\n\nUse `agent-loop-ext` when:\n- The task will take longer than a single session\n- You need CI\u002FCD pipeline integration\n- You want crash recovery guarantees\n- You need to run multiple loops in parallel\n\n## Natural Language Triggers\n\nUsers may say:\n- \"agent-loop-ext\"\n- \"external agent loop\"\n- \"out-of-session loop\"\n- \"persistent agent loop\"\n- \"ralph external\"\n- \"external ralph\"\n- \"crash-resilient loop\"\n- \"persistent ralph\"\n- \"long-running ralph task\"\n- \"ralph with crash recovery\"\n- \"start background ralph\"\n\n## Parameters\n\n### Objective (required)\nThe task the loop should accomplish. Passed as the first positional argument.\n\n### --completion (optional — inferred when omitted)\nSuccess criteria as a verifiable command. The loop exits when this command returns exit code 0.\n\n**Good examples**:\n- `--completion \"npm test passes with 0 failures\"`\n- `--completion \"npx tsc --noEmit exits with code 0\"`\n- `--completion \"coverage report shows >80%\"`\n\n**When omitted**: the launcher invokes the `infer-completion-criteria` skill before the external loop starts. The skill derives a measurable criterion from project state (CLAUDE.md \u002F AGENTS.md \u002F AIWG.md, package manifests, CI configuration, `.aiwg\u002F` artifacts) and emits a structured proposal with rationale. The proposal is written to `.aiwg\u002Fralph-external\u002F\u003Crun-id>\u002Finferred-completion.yaml` and used as the loop's gate.\n\nBecause `agent-loop-ext` runs externally (potentially headless \u002F in CI), the confirmation flow is:\n- Interactive session (TTY attached): show proposal, accept `Y \u002F n \u002F edit` like the in-session `ralph` skill\n- Non-interactive \u002F `--auto-criteria` \u002F CI environment: use the inferred criterion if confidence is `high`, otherwise fail fast and print the proposal as a diagnostic so the user can re-launch with `--completion` explicitly\n\nPass `--no-infer-completion` to require explicit `--completion` and fail before launch if missing. See `@$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Finfer-completion-criteria\u002FSKILL.md`.\n\n### --max-iterations (default: 10)\nMaximum iterations before the loop halts and saves state for manual review.\n\n### --timeout (default: 60 minutes)\nMaximum wall-clock time. Loop checkpoints state before exiting so it can be resumed.\n\n### --provider (default: claude)\nAI provider to use for loop iterations. Supported: `claude`, `codex`, `factory`, `opencode`.\n\n### --no-commit\nSkip automatic git commits after each iteration.\n\n### --branch (optional)\nCreate and work on a dedicated feature branch. The branch is created before iteration 1.\n\n### --quiet\nSuppress verbose progress output. Completion banner is always shown.\n\n## Behavior\n\nWhen triggered:\n\n1. **Resolve completion criteria**:\n   - If `--completion` is provided → use it directly\n   - Else if `--no-infer-completion` is set → fail fast before launch with a helpful error\n   - Else → invoke `infer-completion-criteria` skill, persist proposal to `.aiwg\u002Fralph-external\u002F\u003Crun-id>\u002Finferred-completion.yaml`, confirm or auto-adopt per session-interactivity rules above\n2. Validate the resolved criterion is verifiable (can be checked via command)\n3. Check for an existing `.aiwg\u002Fralph-external\u002F` workspace; create if absent\n3. Generate a unique `loop-id` (8-character hex) and create the loop state file at `.aiwg\u002Fralph-external\u002Floops\u002F\u003Cloop-id>.json`\n4. Write the initial state: `{ objective, completionCriteria, maxIterations, timeout, provider, status: \"pending\", iteration: 0 }`\n5. If `--branch` is specified, create the git branch now\n6. Invoke `tools\u002Fralph-external\u002Frun.sh` with all parsed flags, passing the loop-id\n7. The external process owns execution from this point. Print the loop-id and attach info:\n\n```\nAl External Loop Started\n\nLoop ID: abc123\nObjective: {objective}\nCompletion: {completion}\nMax iterations: {max} | Timeout: {timeout}m | Provider: {provider}\n\nLoop is running externally. Follow progress:\n  \u002Fralph-attach --loop-id abc123\n\nCheck status:\n  \u002Fralph-status\n\nState: .aiwg\u002Fralph-external\u002Floops\u002Fabc123.json\nLog:   .aiwg\u002Fralph-external\u002Flogs\u002Fabc123.log\n```\n\n8. If `--quiet` is NOT set, automatically attach to the loop's output stream (equivalent to running `\u002Fralph-attach --loop-id \u003Cid>`)\n\n## State Persistence and Crash Recovery\n\nState is written to disk before each external process action. If the process crashes:\n\n- The loop state file retains the last known iteration and learnings\n- On restart, `tools\u002Fralph-external\u002Frun.sh` detects the incomplete state and resumes from the last checkpoint\n- Learnings from completed iterations are injected into the next iteration's prompt via the memory layer\n\n**State file schema** (`.aiwg\u002Fralph-external\u002Floops\u002F\u003Cid>.json`):\n```json\n{\n  \"loopId\": \"abc123\",\n  \"objective\": \"Fix all auth tests\",\n  \"completionCriteria\": \"npm test passes with 0 failures\",\n  \"maxIterations\": 10,\n  \"timeout\": 60,\n  \"provider\": \"claude\",\n  \"status\": \"running\",\n  \"iteration\": 3,\n  \"startedAt\": \"2026-04-01T10:30:00Z\",\n  \"lastCheckpoint\": \"2026-04-01T10:38:42Z\",\n  \"logFile\": \".aiwg\u002Fralph-external\u002Flogs\u002Fabc123.log\",\n  \"branch\": null,\n  \"learnings\": [\"auth mocks must be initialized before describe block\"]\n}\n```\n\n## CI\u002FCD Integration\n\nFor use in pipelines, pass `--quiet` and read the exit code:\n- `0` — loop completed successfully (completion criteria verified)\n- `1` — loop failed (max iterations or timeout reached)\n- `2` — configuration error (bad arguments)\n\n**GitHub Actions example**:\n```yaml\n- name: Auto-fix tests\n  run: |\n    aiwg ralph-external \"Fix all failing unit tests\" \\\n      --completion \"npm test passes\" \\\n      --max-iterations 5 \\\n      --timeout 30 \\\n      --quiet\n```\n\n## Error Handling\n\n**Missing --completion**:\n```\nError: --completion is required for \u002Fralph-external.\n\nProvide a verifiable success criterion:\n  \u002Fralph-external \"Fix tests\" --completion \"npm test passes\"\n```\n\n**External process launch failure**:\n```\nFailed to launch external Al process.\n\nCheck:\n1. tools\u002Fralph-external\u002Frun.sh is executable\n2. Node.js >= 18 is available\n3. .aiwg\u002F directory is writable\n\nRun with --verbose for diagnostics.\n```\n\n**Loop already active for this objective**:\n```\nAn existing loop may be running for a similar objective.\n\nActive loops:\n  abc123 — Fix auth tests (running, iteration 3\u002F10)\n\nOptions:\n1. Attach to existing:  \u002Fralph-attach --loop-id abc123\n2. Start new anyway:    confirm and proceed\n3. Abort existing:      \u002Fralph-abort --loop-id abc123\n```\n\n## Examples\n\n### Example 1: Fix failing tests\n```\n\u002Fralph-external \"Fix all failing tests in src\u002Fauth\u002F\" --completion \"npm test -- --testPathPattern=auth passes\"\n```\n**Response**: Starts external loop, prints loop ID, streams live output.\n\n### Example 2: Long-running migration with branch\n```\n\u002Fralph-external \"Migrate src\u002F to ESM\" --completion \"npx tsc --noEmit exits with code 0\" --max-iterations 20 --timeout 120 --branch feat\u002Fesm-migration\n```\n**Response**: Creates branch `feat\u002Fesm-migration`, starts loop, streams output.\n\n### Example 3: CI\u002FCD pipeline usage\n```\naiwg ralph-external \"Fix lint errors\" --completion \"npm run lint exits 0\" --max-iterations 5 --quiet\necho \"Exit: $?\"\n```\n**Response**: Runs silently, exits 0 on success or 1 on failure.\n\n### Example 4: Alternative provider\n```\n\u002Fralph-external \"Refactor payment module\" --completion \"npm test passes\" --provider codex --max-iterations 8\n```\n**Response**: Runs iterations using OpenAI Codex instead of Claude.\n\n## Related\n\n- `ralph` — In-session iterative loop (no crash recovery)\n- `ralph-attach` — Attach to a running external loop's output stream\n- `ralph-status` — Check active and completed loop status\n- `ralph-abort` — Stop a running loop\n- `ralph-resume` — Resume a paused or interrupted loop\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph.ts — Al CLI handler\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph-launcher.ts — External loop launcher\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002FREADME.md — External loop architecture\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Forchestrator.mjs — Loop orchestration engine\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fstate-manager.mjs — State persistence layer\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fsession-launcher.mjs — AI session launcher\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002FREADME.md — Al documentation\n","\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](..\u002F..\u002F..\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Al External\n\n**You are the Al External Orchestrator** — launching and managing crash-resilient iterative loops that run outside the AI session for long-running tasks.\n\n## HITL authorization checkpoints\n\nBefore any confirmation below, read and apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md).\nCall `aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`\nfor host-classified effects. Only `auto-authorized` with a signed receipt skips\nthat workflow prompt; retain existing prompts\u002Frefusals otherwise. Platform\nprompts are never bypassed. Limits, regression and threat overrides still require review.\n\n## Core Difference from `ralph`\n\n`ralph` runs the loop inside the current AI session. `agent-loop-ext` (formerly `ralph-external`) launches the loop as an external process via `tools\u002Fralph-external\u002Frun.sh`, persisting all state to `.aiwg\u002Fralph-external\u002F`. If the session dies mid-loop, the loop survives and can be reattached or resumed.\n\nUse `agent-loop-ext` when:\n- The task will take longer than a single session\n- You need CI\u002FCD pipeline integration\n- You want crash recovery guarantees\n- You need to run multiple loops in parallel\n\n## Natural Language Triggers\n\nUsers may say:\n- \"agent-loop-ext\"\n- \"external agent loop\"\n- \"out-of-session loop\"\n- \"persistent agent loop\"\n- \"ralph external\"\n- \"external ralph\"\n- \"crash-resilient loop\"\n- \"persistent ralph\"\n- \"long-running ralph task\"\n- \"ralph with crash recovery\"\n- \"start background ralph\"\n\n## Parameters\n\n### Objective (required)\nThe task the loop should accomplish. Passed as the first positional argument.\n\n### --completion (optional — inferred when omitted)\nSuccess criteria as a verifiable command. The loop exits when this command returns exit code 0.\n\n**Good examples**:\n- `--completion \"npm test passes with 0 failures\"`\n- `--completion \"npx tsc --noEmit exits with code 0\"`\n- `--completion \"coverage report shows >80%\"`\n\n**When omitted**: the launcher invokes the `infer-completion-criteria` skill before the external loop starts. The skill derives a measurable criterion from project state (CLAUDE.md \u002F AGENTS.md \u002F AIWG.md, package manifests, CI configuration, `.aiwg\u002F` artifacts) and emits a structured proposal with rationale. The proposal is written to `.aiwg\u002Fralph-external\u002F\u003Crun-id>\u002Finferred-completion.yaml` and used as the loop's gate.\n\nBecause `agent-loop-ext` runs externally (potentially headless \u002F in CI), the confirmation flow is:\n- Interactive session (TTY attached): show proposal, accept `Y \u002F n \u002F edit` like the in-session `ralph` skill\n- Non-interactive \u002F `--auto-criteria` \u002F CI environment: use the inferred criterion if confidence is `high`, otherwise fail fast and print the proposal as a diagnostic so the user can re-launch with `--completion` explicitly\n\nPass `--no-infer-completion` to require explicit `--completion` and fail before launch if missing. See `@$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Finfer-completion-criteria\u002FSKILL.md`.\n\n### --max-iterations (default: 10)\nMaximum iterations before the loop halts and saves state for manual review.\n\n### --timeout (default: 60 minutes)\nMaximum wall-clock time. Loop checkpoints state before exiting so it can be resumed.\n\n### --provider (default: claude)\nAI provider to use for loop iterations. Supported: `claude`, `codex`, `factory`, `opencode`.\n\n### --no-commit\nSkip automatic git commits after each iteration.\n\n### --branch (optional)\nCreate and work on a dedicated feature branch. The branch is created before iteration 1.\n\n### --quiet\nSuppress verbose progress output. Completion banner is always shown.\n\n## Behavior\n\nWhen triggered:\n\n1. **Resolve completion criteria**:\n   - If `--completion` is provided → use it directly\n   - Else if `--no-infer-completion` is set → fail fast before launch with a helpful error\n   - Else → invoke `infer-completion-criteria` skill, persist proposal to `.aiwg\u002Fralph-external\u002F\u003Crun-id>\u002Finferred-completion.yaml`, confirm or auto-adopt per session-interactivity rules above\n2. Validate the resolved criterion is verifiable (can be checked via command)\n3. Check for an existing `.aiwg\u002Fralph-external\u002F` workspace; create if absent\n3. Generate a unique `loop-id` (8-character hex) and create the loop state file at `.aiwg\u002Fralph-external\u002Floops\u002F\u003Cloop-id>.json`\n4. Write the initial state: `{ objective, completionCriteria, maxIterations, timeout, provider, status: \"pending\", iteration: 0 }`\n5. If `--branch` is specified, create the git branch now\n6. Invoke `tools\u002Fralph-external\u002Frun.sh` with all parsed flags, passing the loop-id\n7. The external process owns execution from this point. Print the loop-id and attach info:\n\n```\nAl External Loop Started\n\nLoop ID: abc123\nObjective: {objective}\nCompletion: {completion}\nMax iterations: {max} | Timeout: {timeout}m | Provider: {provider}\n\nLoop is running externally. Follow progress:\n  \u002Fralph-attach --loop-id abc123\n\nCheck status:\n  \u002Fralph-status\n\nState: .aiwg\u002Fralph-external\u002Floops\u002Fabc123.json\nLog:   .aiwg\u002Fralph-external\u002Flogs\u002Fabc123.log\n```\n\n8. If `--quiet` is NOT set, automatically attach to the loop's output stream (equivalent to running `\u002Fralph-attach --loop-id \u003Cid>`)\n\n## State Persistence and Crash Recovery\n\nState is written to disk before each external process action. If the process crashes:\n\n- The loop state file retains the last known iteration and learnings\n- On restart, `tools\u002Fralph-external\u002Frun.sh` detects the incomplete state and resumes from the last checkpoint\n- Learnings from completed iterations are injected into the next iteration's prompt via the memory layer\n\n**State file schema** (`.aiwg\u002Fralph-external\u002Floops\u002F\u003Cid>.json`):\n```json\n{\n  \"loopId\": \"abc123\",\n  \"objective\": \"Fix all auth tests\",\n  \"completionCriteria\": \"npm test passes with 0 failures\",\n  \"maxIterations\": 10,\n  \"timeout\": 60,\n  \"provider\": \"claude\",\n  \"status\": \"running\",\n  \"iteration\": 3,\n  \"startedAt\": \"2026-04-01T10:30:00Z\",\n  \"lastCheckpoint\": \"2026-04-01T10:38:42Z\",\n  \"logFile\": \".aiwg\u002Fralph-external\u002Flogs\u002Fabc123.log\",\n  \"branch\": null,\n  \"learnings\": [\"auth mocks must be initialized before describe block\"]\n}\n```\n\n## CI\u002FCD Integration\n\nFor use in pipelines, pass `--quiet` and read the exit code:\n- `0` — loop completed successfully (completion criteria verified)\n- `1` — loop failed (max iterations or timeout reached)\n- `2` — configuration error (bad arguments)\n\n**GitHub Actions example**:\n```yaml\n- name: Auto-fix tests\n  run: |\n    aiwg ralph-external \"Fix all failing unit tests\" \\\n      --completion \"npm test passes\" \\\n      --max-iterations 5 \\\n      --timeout 30 \\\n      --quiet\n```\n\n## Error Handling\n\n**Missing --completion**:\n```\nError: --completion is required for \u002Fralph-external.\n\nProvide a verifiable success criterion:\n  \u002Fralph-external \"Fix tests\" --completion \"npm test passes\"\n```\n\n**External process launch failure**:\n```\nFailed to launch external Al process.\n\nCheck:\n1. tools\u002Fralph-external\u002Frun.sh is executable\n2. Node.js >= 18 is available\n3. .aiwg\u002F directory is writable\n\nRun with --verbose for diagnostics.\n```\n\n**Loop already active for this objective**:\n```\nAn existing loop may be running for a similar objective.\n\nActive loops:\n  abc123 — Fix auth tests (running, iteration 3\u002F10)\n\nOptions:\n1. Attach to existing:  \u002Fralph-attach --loop-id abc123\n2. Start new anyway:    confirm and proceed\n3. Abort existing:      \u002Fralph-abort --loop-id abc123\n```\n\n## Examples\n\n### Example 1: Fix failing tests\n```\n\u002Fralph-external \"Fix all failing tests in src\u002Fauth\u002F\" --completion \"npm test -- --testPathPattern=auth passes\"\n```\n**Response**: Starts external loop, prints loop ID, streams live output.\n\n### Example 2: Long-running migration with branch\n```\n\u002Fralph-external \"Migrate src\u002F to ESM\" --completion \"npx tsc --noEmit exits with code 0\" --max-iterations 20 --timeout 120 --branch feat\u002Fesm-migration\n```\n**Response**: Creates branch `feat\u002Fesm-migration`, starts loop, streams output.\n\n### Example 3: CI\u002FCD pipeline usage\n```\naiwg ralph-external \"Fix lint errors\" --completion \"npm run lint exits 0\" --max-iterations 5 --quiet\necho \"Exit: $?\"\n```\n**Response**: Runs silently, exits 0 on success or 1 on failure.\n\n### Example 4: Alternative provider\n```\n\u002Fralph-external \"Refactor payment module\" --completion \"npm test passes\" --provider codex --max-iterations 8\n```\n**Response**: Runs iterations using OpenAI Codex instead of Claude.\n\n## Related\n\n- `ralph` — In-session iterative loop (no crash recovery)\n- `ralph-attach` — Attach to a running external loop's output stream\n- `ralph-status` — Check active and completed loop status\n- `ralph-abort` — Stop a running loop\n- `ralph-resume` — Resume a paused or interrupted loop\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph.ts — Al CLI handler\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph-launcher.ts — External loop launcher\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002FREADME.md — External loop architecture\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Forchestrator.mjs — Loop orchestration engine\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fstate-manager.mjs — State persistence layer\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fsession-launcher.mjs — AI session launcher\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002FREADME.md — Al documentation\n",{"name":5,"namespace":61,"platforms":62,"legacyName":64,"commandHint":65,"description":7},"aiwg",[63],"all","ralph-external",{"model":46,"category":55,"modelRole":37,"modelTier":66,"platforms":67,"allowedTools":69,"argumentHint":70,"orchestration":71},"economy",[68,47,45],"claude-code","Bash, Read, Write","\"\u003Cobjective>\" [--completion \"\u003Ccriteria>\"] [--max-iterations N] [--timeout M] [--provider \u003Cp>] [--no-commit] [--branch \u003Cname>] [--quiet] [--auto-criteria | --no-infer-completion]",true,"main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Fagent-loop-ext",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":83,"prompt":93,"zipAvailable":71},[84,87,90],{"tool":85,"command":86},"npx","npx skills add jmagly\u002Faiwg --skill agent-loop-ext",{"tool":88,"command":89},"bunx","bunx skills add jmagly\u002Faiwg --skill agent-loop-ext",{"tool":91,"command":92},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill agent-loop-ext","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Fagent-loop-ext\u002FSKILL.md",[],[96,104,109,134,153,158],{"skillNo":97,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":105,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":103},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":17,"description":112,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":56},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[116,117,118,119,120,43,121,122,123,124,125,126,127,48,128,129,130,131,132,133],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","re","never","firewall",{"skillNo":135,"name":136,"nameZh":17,"description":137,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":56},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[141,142,143,144,145,42,43,146,126,132,48,147,117,148,129,149,150,133,151,152],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":154,"name":111,"nameZh":17,"description":112,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":56},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[116,117,118,131,132,133,127,130,123,120,43,121,122,124,125,126,119,48,128,129],{"skillNo":159,"name":136,"nameZh":17,"description":137,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":56},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[141,142,152,151,145,150,149,129,144,42,43,146,126,143,48,147,117,133,132,148]]