Skip to content

/cancel-rlcr-loop

Cancel active RLCR loop

From plugin
humanize
1.6k5 skills4 agents5 commands4 hooks
> /plugin marketplace add PolyArch/humanize
> /plugin install humanize@PolyArch

Command definition

cancel-rlcr-loop.md
description: "Cancel active RLCR loop"
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh)", "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh --force)", "AskUserQuestion"]
disable-model-invocation: true

Cancel RLCR Loop

To cancel the active loop:

1. Run the cancel script:

"${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh"

2. Check the first line of output:

  • **NO_LOOP** or **NO_ACTIVE_LOOP**: Say "No active RLCR loop found."
  • **CANCELLED**: Report the cancellation message from the output
  • **CANCELLED_METHODOLOGY_ANALYSIS**: Report the cancellation message from the output
  • **CANCELLED_FINALIZE**: Report the cancellation message from the output
  • **FINALIZE_NEEDS_CONFIRM**: The loop is in Finalize Phase. Continue to step 3

3. **If FINALIZE_NEEDS_CONFIRM**:

  • Use AskUserQuestion to confirm cancellation with these options:
  • Question: "The loop is currently in Finalize Phase. After this phase completes, the loop will end without returning to Codex review. Are you sure you want to cancel now?"
  • Header: "Cancel?"
  • Options:

1. Label: "Yes, cancel now", Description: "Cancel the loop immediately, finalize-state.md will be renamed to cancel-state.md" 2. Label: "No, let it finish", Description: "Continue with the Finalize Phase, the loop will complete normally"

  • **If user chooses "Yes, cancel now"**:
  • Run: `"${CLAUDE_PLUGIN_ROOT}/scripts/cancel-rlcr-loop.sh" --force`
  • Report the cancellation message from the output
  • **If user chooses "No, let it finish"**:
  • Report: "Understood. The Finalize Phase will continue. Once complete, the loop will end normally."

**Key principle**: The script handles all cancellation logic. A loop is active if `state.md` (normal loop), `methodology-analysis-state.md` (Methodology Analysis Phase), or `finalize-state.md` (Finalize Phase) exists in the newest loop directory.

The loop directory with summaries, review results, and state information will be preserved for reference.

Read more
@polyarch
Ships withhumanize

Derived from the GAAC (GitHub-as-a-Context) project. A Claude Code plugin that provides iterative development with independent AI review. Build with confidence through continuous feedback loops.

Stars on GitHub

Momentum

stars in total
1.6k
Star history of PolyArch/humanize on GitHub, a chart by star-history.com

Other commands on humanize.

gen-idea
Auto-invoked

gen-idea

Command

Generate a repo-grounded idea draft via directed-swarm exploration

@polyarch@polyarchInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command