Humanize

From PolyArch/humanize · View interactive version

Humanize is an AI agent skill from the GitHub repository PolyArch/humanize. Iterative development with AI review. Provides RLCR (Ralph-Loop with Codex Review) for implementation planning and code review loops.

How to use this skill

Skill file

Humanize - Iterative Development with AI Review

Humanize creates a feedback loop where AI implements your plan while another AI independently reviews the work, ensuring quality through continuous refinement.

Runtime Root

The installer hydrates this skill with an absolute runtime root path:

{{HUMANIZE_RUNTIME_ROOT}}

All command examples below use {{HUMANIZE_RUNTIME_ROOT}}.

Core Philosophy

Iteration over Perfection: Instead of expecting perfect output in one shot, Humanize leverages an iterative feedback loop where:

Available Workflows

1. RLCR Loop - Iterative Development with Review

The RLCR (Ralph-Loop with Codex Review) loop has two phases:

Phase 1: Implementation

Phase 2: Code Review

2. Generate Plan - Structured Plan from Draft

Transforms a rough draft document into a structured implementation plan with:

Commands Reference

Start RLCR Loop

# With a plan file
"{{HUMANIZE_RUNTIME_ROOT}}/scripts/setup-rlcr-loop.sh" path/to/plan.md

# Or without plan (review-only mode)
"{{HUMANIZE_RUNTIME_ROOT}}/scripts/setup-rlcr-loop.sh" --skip-impl

After each round, write the required summary and stop/exit normally. Humanize's native Codex Stop hook handles review gating automatically.

Common Options:

Cancel RLCR Loop

"{{HUMANIZE_RUNTIME_ROOT}}/scripts/cancel-rlcr-loop.sh"
# or force cancel during finalize phase
"{{HUMANIZE_RUNTIME_ROOT}}/scripts/cancel-rlcr-loop.sh" --force

Generate Plan from Draft

"{{HUMANIZE_RUNTIME_ROOT}}/scripts/validate-gen-plan-io.sh" --input path/to/draft.md --output path/to/plan.md

Then follow the workflow in this skill to generate the structured plan content.

Ask Codex (One-shot Consultation)

"{{HUMANIZE_RUNTIME_ROOT}}/scripts/ask-codex.sh" [--codex-model MODEL:EFFORT] [--codex-timeout SECONDS] "your question"

Plan File Structure

A good plan file should include:

# Plan Title

## Goal Description
Clear description of what needs to be accomplished

## Acceptance Criteria

- AC-1: First criterion
  - Positive Tests (expected to PASS):
    - Test case that should succeed
  - Negative Tests (expected to FAIL):
    - Test case that should fail

## Path Boundaries

### Upper Bound (Maximum Scope)
Most comprehensive acceptable implementation

### Lower Bound (Minimum Scope)
Minimum viable implementation

### Allowed Choices
- Can use: technologies, approaches allowed
- Cannot use: prohibited technologies

## Dependencies and Sequence

### Milestones
1. Milestone 1: Description
   - Phase A: ...
   - Phase B: ...

## Implementation Notes
- Code should NOT contain plan terminology like "AC-", "Milestone", "Step"

Goal Tracker System

The RLCR loop uses a Goal Tracker to prevent goal drift:

Key Principles

  1. Acceptance Criteria: Each task maps to a specific AC
  2. Plan Evolution Log: Document any plan changes with justification
  3. Explicit Deferrals: Deferred tasks require strong justification
  4. Full Alignment Checks: Every N rounds (default: 5), comprehensive goal alignment audit

Important Rules

  1. Write summaries: Always write work summary to the specified file before exiting
  2. Maintain Goal Tracker: Keep goal-tracker.md up-to-date with progress
  3. Be thorough: Include details about implementation, files changed, tests added
  4. No cheating: Don't try to exit by editing state files or running cancel commands
  5. Use the native Stop hook on Codex: After writing the required summary, stop/exit normally so Codex runs the Humanize Stop hook
  6. Trust the process: External review helps improve implementation quality

Prerequisites

Directory Structure

Humanize stores all data in .humanize/:

.humanize/
├── rlcr/           # RLCR loop data
│   └── <timestamp>/
│       ├── state.md
│       ├── goal-tracker.md
│       ├── round-N-summary.md
│       ├── round-N-review-result.md
│       ├── finalize-state.md
│       ├── finalize-summary.md
│       ├── methodology-analysis-state.md
│       ├── methodology-analysis-report.md
│       ├── methodology-analysis-done.md
│       └── complete-state.md
└── skill/          # One-shot skill results
    └── <timestamp>/
        ├── input.md
        ├── output.md
        └── metadata.md

Monitoring

Use the monitor script to track loop progress:

source "{{HUMANIZE_RUNTIME_ROOT}}/scripts/humanize.sh"
humanize monitor rlcr   # Monitor RLCR loop

Exit Codes

ask-codex.sh

validate-gen-plan-io.sh

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.