3 Commits

Author SHA1 Message Date
Allen 1d16fef6e4 feat: migrate to standalone rl CLI (@0xbigboss/rl)
Replace embedded scripts/rl with the standalone @0xbigboss/rl
package. Stop hook now delegates state, prompt, and log operations
to the rl CLI via spawnSync instead of reimplementing them.

- Delete scripts/rl (323 lines)
- Refactor stop hook: remove parseStateFile, serializeState,
  readPrompt, appendLog, LogEntry, LoopState (872 → 654 lines)
- Update ralph-loop.md: discover rl on PATH or via bunx
- Update cancel-ralph.md: use rl status --json
- Update QA.md: reference installed rl, add hook integration checks
- Bump to v3.0.0
2026-03-21 15:38:55 -05:00
Allen bb4e12c6e5 feat(ralph-reviewed)!: v2.0.0 — rl CLI, state migration, rl done completion
Major rewrite of the ralph-reviewed plugin:

State migration:
- State moved from .claude/ralph-loop.local.md (YAML) to .rl/state.json (JSON)
- Prompt stored separately in .rl/prompt.md
- Structured event log at .rl/log.jsonl
- .rl/ auto-added to .git/info/exclude on init

rl CLI (new):
- rl init: one-command setup (state, prompt, log, symlink)
- rl done / rl done --blocked: state-flag completion (replaces <promise> tags)
- rl log phase|commit|decision|summary: structured JSONL logging
- rl prompt / rl status / rl clean: state inspection and cleanup
- Creates .rl/rl symlink for short-path access after init
- Git root walks superprojects (matches stop hook behavior)

Stop hook:
- Completion detection via state.json flags (not transcript regex)
- Removed legacy <promise> tag parsing and transcript reading
- Review prompt simplified: correctness-focused, tells Codex to use rl
- Codex review outputs kept in .rl/ (not /tmp/)
- Codex cwd uses gitRoot for reliable .rl/ access
- Slimmed LoopState: removed completion_promise, original_prompt,
  pending_feedback, review_history (all derived from .rl/ files)
- Review feedback is plain text (no structured issue IDs/severity)
- Iteration headers hide denominators from agent

Behavioral improvements:
- Pacing, churn breaker, depth-before-breadth, skill loading, live
  verification sections in skill prompt
- Ralphoff "Done when" guidance: verify behavior not file existence

BREAKING CHANGE: State format changed from YAML frontmatter to JSON.
Completion mechanism changed from <promise> tags to rl done command.
2026-03-21 15:12:05 -05:00
Big Boss 3249b10b1c feat(plugins): add ralph-reviewed plugin with Codex review gates
Fork of ralph-wiggum that adds a review phase using Codex CLI.
When Claude claims completion, Codex reviews the work before
allowing the loop to exit.

Features:
- Review gate at completion claims (APPROVE/REJECT)
- Configurable max review cycles (default: 3)
- Debug logging to session-specific files
- 20 minute timeout for long reviews
- Graceful degradation if Codex unavailable

Commands:
- /ralph-reviewed:ralph-loop - Start reviewed loop
- /ralph-reviewed:cancel-ralph - Cancel active loop
- /ralph-reviewed:help - Show usage

Also adds marketplace.json for plugin distribution.
2025-12-27 22:26:17 -06:00