From humanize
Starts iterative RLCR development loop from a plan file with Codex review. Runs plan compliance pre-check via AI agent before invoking setup bash script. Supports --max, --codex-model, --push-every-round flags.
npx claudepluginhub polyarch/humanize --plugin humanize[path/to/plan.md | --plan-file path/to/plan.md] [--max N] [--codex-model MODEL:EFFORT] [--codex-timeout SECONDS] [--track-plan-file] [--push-every-round] [--base-branch BRANCH] [--full-review-round N] [--skip-impl] [--claude-answer-codex] [--agent-teams] [--yolo] [--skip-quiz]# Start RLCR Loop ## Plan Compliance Pre-Check Before running the setup script, validate the plan file for compliance. This is a fool-proofing mechanism that catches obviously wrong plan files early. **Skip this entire pre-check if** any of these conditions are true: - `$ARGUMENTS` contains `--skip-impl` (no plan file to validate) - `$ARGUMENTS` contains `-h` or `--help` (just showing help) ### Extract the plan file path from arguments Parse `$ARGUMENTS` to find the plan file path: - If `--plan-file <path>` is present, use `<path>` - Otherwise, use the first positional argument (the fi...
/start-rlcr-loopStart iterative loop with Codex review
Before running the setup script, validate the plan file for compliance. This is a fool-proofing mechanism that catches obviously wrong plan files early.
Skip this entire pre-check if any of these conditions are true:
$ARGUMENTS contains --skip-impl (no plan file to validate)$ARGUMENTS contains -h or --help (just showing help)Parse $ARGUMENTS to find the plan file path:
--plan-file <path> is present, use <path>-- and is not a value following a known flag like --max, --codex-model, --codex-timeout, --base-branch, --full-review-round, --plan-file)Only proceed with the pre-check if the extracted path meets ALL of these conditions:
If any condition fails, skip the pre-check and let the setup script handle path validation.
Use the Read tool to read the plan file. If the file does not exist or cannot be read, skip the pre-check and let the setup script handle the error.
Use the Task tool to invoke the humanize:plan-compliance-checker agent (sonnet model):
Task tool parameters:
- model: "sonnet"
- prompt: Include the plan file content and ask the agent to:
1. Explore the repository structure (README, CLAUDE.md, main files)
2. Check if the plan content relates to this repository
3. Check if the plan contains branch-switching instructions
4. Return exactly one of: `PASS: <summary>`, `FAIL_RELEVANCE: <reason>`, or `FAIL_BRANCH_SWITCH: <details>`
Parse the result (fail-closed):
PASS: continue to setup script belowFAIL_RELEVANCE: report "Plan compliance check failed: the plan does not appear to be related to this repository." Show the reason. Stop the command.FAIL_BRANCH_SWITCH: report "Plan compliance check failed: the plan contains branch-switching instructions, which are incompatible with RLCR. The RLCR loop requires the working branch to remain constant across all rounds." Show the details. Stop the command.Before running the setup script, verify the user genuinely understands what the plan will do. This is an advisory check -- it never blocks the loop, but catches "wishful thinking" users who blindly accepted a generated plan without reading it.
Skip this entire quiz if any of these conditions are true:
$ARGUMENTS contains --skip-impl (no plan to quiz about)$ARGUMENTS contains --yolo (user explicitly opted out of all pre-flight checks)$ARGUMENTS contains --skip-quiz (user explicitly opted out of the quiz)$ARGUMENTS contains -h or --help (just showing help)Reuse the plan content that was already read during the compliance pre-check above (do not re-read the file).
Use the Task tool to invoke the humanize:plan-understanding-quiz agent (opus model):
Task tool parameters:
- model: "opus"
- prompt: Include the plan file content and ask the agent to:
1. Explore the repository structure for context
2. Analyze the plan's technical implementation details
3. Generate 2 multiple-choice questions (4 options each) and a plan summary
4. Return in the structured format: QUESTION_1, OPTION_1A-D, ANSWER_1, QUESTION_2, OPTION_2A-D, ANSWER_2, PLAN_SUMMARY
Parse the result: Extract all 13 fields from the agent output (QUESTION_1, OPTION_1A through OPTION_1D, ANSWER_1, QUESTION_2, OPTION_2A through OPTION_2D, ANSWER_2, PLAN_SUMMARY). If the output is malformed (any field missing or ANSWER not A/B/C/D), warn: "Plan understanding quiz unavailable, continuing without it." and proceed to the Setup section below.
Use AskUserQuestion to present QUESTION_1 as a multiple-choice question with the 4 options (OPTION_1A through OPTION_1D). Compare the user's choice against ANSWER_1:
Use AskUserQuestion to present QUESTION_2 as a multiple-choice question with the 4 options (OPTION_2A through OPTION_2D). Compare the user's choice against ANSWER_2 using the same criteria.
If both questions PASS: Briefly acknowledge ("Your understanding of the plan looks solid. Proceeding with setup.") and continue to the Setup section below.
If one or both questions are WRONG: Show the PLAN_SUMMARY to the user to help them understand what the plan does and the correct answers to the questions they missed. Then use AskUserQuestion with the question: "Would you like to proceed with the RLCR loop anyway, or stop and review the plan more carefully first?" with these choices:
"Proceed with RLCR loop"
"Stop and review the plan first"
If the user chooses "Proceed with RLCR loop": Continue to the Setup section below.
If the user chooses "Stop and review the plan first": Report "Stopping. Please review the plan file and re-run start-rlcr-loop when ready." and stop the command.
If the pre-check passed (or was skipped), and the quiz passed (or was skipped or user chose to proceed), execute the setup script to initialize the loop:
"${CLAUDE_PLUGIN_ROOT}/scripts/setup-rlcr-loop.sh" $ARGUMENTS
This command starts an iterative development loop where:
coding tasks: Claude executes directlyanalyze tasks: execute via /humanize:ask-codexcodex review --base <branch> performs code review[P0-9] markers), you fix them and continueThis loop uses a Goal Tracker to prevent goal drift across iterations:
coding or analyze tag from plan generation
coding -> Claude, analyze -> Codex--full-review-round N to customize (min: 2)Each project must maintain its own .humanize/bitlesson.md file.
If missing, start-rlcr-loop initializes it automatically with a strict template.
Per round requirements:
.humanize/bitlesson.md before executionbitlesson-selector for each task/sub-taskNONE) during implementation## BitLesson Delta in the round summary with Action: none|add|updateIf a problem is solved only after multiple rounds, add or update a precise lesson entry in .humanize/bitlesson.md (specific problem + specific solution).
By default, empty .humanize/bitlesson.md does not block Action: none; use --require-bitlesson-entry-for-none to enforce strict blocking.
[P0-9] issues)/humanize:cancel-rlcr-loopThe RLCR loop has two phases within the active loop:
coding -> Claude, analyze -> /humanize:ask-codex), then Codex reviews your summarycodex review checks code quality with [P0-9] severity markersThe --base-branch option specifies the base branch for code review comparison. If not provided, it auto-detects from: remote default > local main > local master.
Use --skip-impl to skip the implementation phase and go directly to code review:
/humanize:start-rlcr-loop --skip-impl
In this mode:
This is helpful when you want to: