Version: 1.0.0
Iterative development with independent AI review. Build with confidence through continuous feedback loops using GLM-5.1 for code review.
RLCR stands for Ralph-Loop with Code Review - an iterative development cycle where AI-generated code is continuously refined through independent review feedback.
- Iteration over Perfection - Continuous feedback loops catch issues early
- One Build + One Review - OpenCode implements, GLM-5.1 independently reviews
- Begin with the End in Mind - Verify you understand the plan before execution
# Clone to OpenCode packages directory
git clone https://github.com/humanize-org/humanize-opencode.git \
~/.cache/opencode/packages/humanize
# Set permissions
chmod +x ~/.cache/opencode/packages/humanize/scripts/*.sh
chmod +x ~/.cache/opencode/packages/humanize/hooks/*.sh
# Setup monitoring helper
echo 'source ~/.cache/opencode/packages/humanize/scripts/humanize.sh' >> ~/.bashrc
source ~/.bashrc# Create user config
mkdir -p ~/.config/humanize
cat > ~/.config/humanize/config.json << 'EOF'
{
"reviewer_model": "GLM-5.1",
"reviewer_effort": "high",
"quiz_model": "GLM-5.1",
"monitoring_model": "GLM-5",
"max_iterations": 42
}
EOF
# Set API key
export ZHIPU_API_KEY="your-api-key"# From draft to structured plan
/skill:gen-plan --input feature-draft.md --output plan.md# Start RLCR loop
/skill:humanize-rlcr plan.md
# Or with options
/skill:humanize-rlcr plan.md --max 20 --yolo# Watch loop progress
humanize monitor rlcr
# Quick status
humanize statusVerifies you understand the plan before execution to prevent "wishful coding".
Tracks acceptance criteria, completed items, and plan evolution.
GLM-5.1 provides objective code review with [P0-9] severity markers.
Parallelize independent tasks with --agent-teams flag.
Track progress with humanize monitor command.
| Command | Purpose |
|---|---|
/skill:humanize-rlcr plan.md |
Start iterative development loop |
/skill:gen-plan --input draft.md --output plan.md |
Generate structured plan |
/skill:ask-model "question" |
One-shot model consultation |
humanize monitor rlcr |
Monitor loop progress |
humanize status |
Quick status check |
humanize doctor |
Run diagnostics |
4-layer hierarchy (lowest to highest priority):
- Plugin defaults:
~/.cache/opencode/packages/humanize/config/default_config.json - User config:
~/.config/humanize/config.json - Project config:
.humanize/config.json - CLI flags
- OpenCode CLI >= 1.0.0
- Git >= 2.20
- Zhipu GLM API access or local deployment
- jq (for JSON parsing)
~/.cache/opencode/packages/humanize/
├── skills/ # OpenCode skills
├── scripts/ # Shell scripts
├── hooks/ # Review hooks
├── templates/ # Plan/summary templates
├── config/ # Default configuration
└── agents/ # Agent instructions
Project-level state in <project>/.humanize/:
rlcr/<timestamp>/- Loop dataconfig.json- Project config
Solution: Check network connection, increase --timeout value.
Solution: export ZHIPU_API_KEY="your-api-key"
Solution: Commit or stash current changes.
Solution: Run humanize doctor to diagnose.
MIT
Derived from humanize for Claude Code.