ワンクリックで
continuous-refactor
Continuous runner for the continuous-refactor workflow across supported agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Continuous runner for the continuous-refactor workflow across supported agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run one deterministic Vibe dispatcher step and print the selected prompt body.
Continuously assess and execute a repository's Vibe backlog. Use when the user invokes $vibe-run or asks Codex to inspect a repo, bootstrap or replenish .vibe/PLAN.md, and keep implementing and reviewing checkpoints until a real blocker or explicit stop.
Continuous runner for the continuous-documentation workflow across supported agents.
Continuous runner for the continuous-test-generation workflow across supported agents.
Deterministic access to the Vibe prompt catalog.
Experimental RAG indexing utilities (scanner + indexer + retriever).
| name | continuous-refactor |
| description | Continuous runner for the continuous-refactor workflow across supported agents. |
Run the continuous-refactor workflow in continuous mode until the dispatcher
returns recommended_role: stop (only [MINOR] refactoring ideas remain).
The workflow rotates through three prompt steps in a strict cycle:
prompt.refactor_scan — identify code smells and refactoring candidatesprompt.refactor_execute — apply selected refactoringsprompt.refactor_verify — verify refactored code correctnessCold starts are handled automatically — the infrastructure initialises the rotation at step 1 when no prior runtime entry exists.
Run one dispatcher step at a time:
# 1. Ask the dispatcher for the next prompt
python3 .codex/skills/vibe-loop/scripts/agentctl.py --repo-root . --format json next --workflow continuous-refactor
# 2. Read the prompt body from the catalog path returned by the dispatcher
python3 .codex/skills/vibe-prompts/scripts/prompt_catalog.py <prompt_catalog_path> get <recommended_prompt_id>
# 3. Execute the prompt body (do the actual refactoring work)
# 4. After execution, record the loop result
python3 .codex/skills/vibe-loop/scripts/agentctl.py --repo-root . --format json loop-result --line "LOOP_RESULT: <json>"
# 5. Repeat from step 1 until recommended_role == "stop"
The --workflow continuous-refactor flag is required — it activates the
continuous override that ignores normal plan-state routing and selects from the
refactor prompt rotation instead.
In this orchestration source repo, use tools/agentctl.py and tools/prompt_catalog.py
instead; the .codex runtime helper scripts are generated during install.
After executing each prompt, emit a LOOP_RESULT JSON line with the dispatcher-required report fields:
{
"loop": "implement",
"result": "ready_for_review",
"stage": "<current_stage>",
"checkpoint": "<current_checkpoint>",
"status": "<current_status>",
"next_role_hint": "implement|review|stop",
"workflow": "continuous-refactor",
"report": {
"acceptance_matrix": [
{
"item": "<checked behavior>",
"status": "PASS|FAIL|N/A",
"evidence": "<command or file evidence>",
"critical": true,
"confidence": 0.9,
"evidence_strength": "LOW|MEDIUM|HIGH"
}
],
"top_findings": [
{"impact": "MAJOR|MINOR", "title": "[MAJOR|MODERATE|MINOR] ...", "evidence": "...", "action": "..."}
],
"state_transition": {
"before": {"stage": "<current_stage>", "checkpoint": "<current_checkpoint>", "status": "<previous_status>"},
"after": {"stage": "<current_stage>", "checkpoint": "<current_checkpoint>", "status": "<current_status>"}
},
"loop_result": {
"loop": "implement",
"result": "ready_for_review",
"stage": "<current_stage>",
"checkpoint": "<current_checkpoint>",
"status": "<current_status>",
"next_role_hint": "implement|review|stop"
}
}
}
Use idea impact tags ([MAJOR], [MODERATE], [MINOR]) in top_findings titles.
The structured impact field follows the dispatcher impact schema; use the title tag
for the continuous-workflow major/moderate/minor idea threshold.
The workflow stops when only [MINOR] ideas remain.
scripts/continuous_refactor.pyWraps vibe-run with --workflow continuous-refactor. Useful for terminal
or headless modes:
# Interactive (terminal)
python3 .codex/skills/continuous-refactor/scripts/continuous_refactor.py --repo-root . --show-decision
# Headless dry-run
python3 .codex/skills/continuous-refactor/scripts/continuous_refactor.py --repo-root . --non-interactive --simulate-loop-result --max-loops 10 --show-decision
vibe-run.workflow_runtime.json entry) by
starting the rotation at step 1 — no manual initialisation is needed.requires_loop_result: true, record the pending
LOOP_RESULT before calling next again.resources/refactoring-guide.md for code smell heuristics.