Skip to content

Commit 907c6fb

Browse files
author
Test User
committed
docs: update README and CLAUDE.md for v0.11.5 after merging community PRs
Reflect merged PRs #184 (API limit false positive detection) and #189 (bash3 lowercase compatibility). Update test counts 484→556, add v0.11.5 release notes, and document three-layer API limit detection.
1 parent af11e4d commit 907c6fb

2 files changed

Lines changed: 27 additions & 18 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The system uses a modular architecture with reusable components in the `lib/` di
7878
- User prompts: `confirm()`, `prompt_text()`, `prompt_number()`
7979
- Selection utilities: `select_option()`, `select_multiple()`, `select_with_default()`
8080
- Output formatting: `print_header()`, `print_bullet()`, `print_success/warning/error/info()`
81+
- POSIX-compatible: Uses `tr '[:upper:]' '[:lower:]'` instead of `${,,}` for bash 3.x support (Issue #187)
8182

8283
7. **lib/task_sources.sh** - Task import from external sources
8384
- Beads integration: `check_beads_available()`, `fetch_beads_tasks()`, `get_beads_count()`
@@ -175,7 +176,7 @@ tmux attach -t <session-name>
175176

176177
### Running Tests
177178
```bash
178-
# Run all tests (548 tests)
179+
# Run all tests (556 tests)
179180
npm test
180181

181182
# Run specific test suites

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[![CI](https://github.com/frankbria/ralph-claude-code/actions/workflows/test.yml/badge.svg)](https://github.com/frankbria/ralph-claude-code/actions/workflows/test.yml)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
5-
![Version](https://img.shields.io/badge/version-0.11.4-blue)
6-
![Tests](https://img.shields.io/badge/tests-484%20passing-green)
5+
![Version](https://img.shields.io/badge/version-0.11.5-blue)
6+
![Tests](https://img.shields.io/badge/tests-556%20passing-green)
77
[![GitHub Issues](https://img.shields.io/github/issues/frankbria/ralph-claude-code)](https://github.com/frankbria/ralph-claude-code/issues)
88
[![Mentioned in Awesome Claude Code](https://awesome.re/mentioned-badge.svg)](https://github.com/hesreallyhim/awesome-claude-code)
99
[![Follow on X](https://img.shields.io/twitter/follow/FrankBria18044?style=social)](https://x.com/FrankBria18044)
@@ -16,9 +16,9 @@ Ralph is an implementation of the Geoffrey Huntley's technique for Claude Code t
1616

1717
## Project Status
1818

19-
**Version**: v0.11.4 - Active Development
19+
**Version**: v0.11.5 - Active Development
2020
**Core Features**: Working and tested
21-
**Test Coverage**: 484 tests, 100% pass rate
21+
**Test Coverage**: 556 tests, 100% pass rate
2222

2323
### What's Working Now
2424
- Autonomous development loops with intelligent exit detection
@@ -42,7 +42,14 @@ Ralph is an implementation of the Geoffrey Huntley's technique for Claude Code t
4242

4343
### Recent Improvements
4444

45-
**v0.11.4 - Bug Fixes & Compatibility** (latest)
45+
**v0.11.5 - Community Bug Fixes** (latest)
46+
- Fixed API limit false positive: Timeout (exit code 124) no longer misidentified as API 5-hour limit (#183)
47+
- Three-layer API limit detection: timeout guard → structural JSON (`rate_limit_event`) → filtered text fallback
48+
- Unattended mode: API limit prompt now auto-waits on timeout instead of exiting
49+
- Fixed bash 3.x compatibility: `${,,}` lowercase substitution replaced with POSIX `tr` (#187)
50+
- Added 8 new tests for API limit detection (548 → 556 tests)
51+
52+
**v0.11.4 - Bug Fixes & Compatibility**
4653
- Fixed progress detection: Git commits within a loop now count as progress (#141)
4754
- Fixed checkbox regex: Date entries `[2026-01-29]` no longer counted as checkboxes (#144)
4855
- Fixed session hijacking: Use `--resume <session_id>` instead of `--continue` (#151)
@@ -132,7 +139,7 @@ Ralph is an implementation of the Geoffrey Huntley's technique for Claude Code t
132139
- **Session Continuity** - Preserves context across loop iterations with automatic session management
133140
- **Session Expiration** - Configurable timeout (default: 24 hours) with automatic session reset
134141
- **Rate Limiting** - Built-in API call management with hourly limits and countdown timers
135-
- **5-Hour API Limit Handling** - Detects Claude's 5-hour usage limit and offers wait/exit options
142+
- **5-Hour API Limit Handling** - Three-layer detection (timeout guard, JSON parsing, filtered text) with auto-wait for unattended mode
136143
- **Live Monitoring** - Real-time dashboard showing loop status, progress, and logs
137144
- **Task Management** - Structured approach with prioritized task lists and progress tracking
138145
- **Project Templates** - Quick setup for new projects with best-practice structure
@@ -447,11 +454,12 @@ ralph --auto-reset-circuit
447454
### Claude API 5-Hour Limit
448455

449456
When Claude's 5-hour usage limit is reached, Ralph:
450-
1. Detects the limit error automatically
457+
1. Detects the limit using three-layer verification (timeout guard → structural JSON → filtered text fallback)
451458
2. Prompts you to choose:
452459
- **Option 1**: Wait 60 minutes for the limit to reset (with countdown timer)
453-
- **Option 2**: Exit gracefully (or auto-exits after 30-second timeout)
454-
3. Prevents endless retry loops that waste time
460+
- **Option 2**: Exit gracefully
461+
3. **Unattended mode**: Auto-waits on prompt timeout (30s) instead of exiting
462+
4. Prevents false positives from echoed file content mentioning "5-hour limit"
455463

456464
### Custom Prompts
457465

@@ -624,7 +632,7 @@ If you want to run the test suite:
624632
# Install BATS testing framework
625633
npm install -g bats bats-support bats-assert
626634

627-
# Run all tests (484 tests)
635+
# Run all tests (556 tests)
628636
npm test
629637

630638
# Run specific test suites
@@ -650,8 +658,8 @@ bats tests/integration/test_installation.bats
650658
```
651659

652660
Current test status:
653-
- **484 tests** across 16 test files
654-
- **100% pass rate** (484/484 passing)
661+
- **556 tests** across 18 test files
662+
- **100% pass rate** (556/556 passing)
655663
- Comprehensive unit and integration tests
656664
- Specialized tests for JSON parsing, CLI flags, circuit breaker, EXIT_SIGNAL behavior, enable wizard, and installation workflows
657665

@@ -757,7 +765,7 @@ cd ralph-claude-code
757765

758766
# Install dependencies and run tests
759767
npm install
760-
npm test # All 484 tests must pass
768+
npm test # All 556 tests must pass
761769
```
762770

763771
### Priority Contribution Areas
@@ -846,14 +854,14 @@ tmux attach -t <name> # Reattach to detached session
846854

847855
Ralph is under active development with a clear path to v1.0.0. See [IMPLEMENTATION_PLAN.md](IMPLEMENTATION_PLAN.md) for the complete roadmap.
848856

849-
### Current Status: v0.11.4
857+
### Current Status: v0.11.5
850858

851859
**What's Delivered:**
852860
- Core loop functionality with intelligent exit detection
853861
- **Dual-condition exit gate** (completion indicators + EXIT_SIGNAL)
854862
- Rate limiting (100 calls/hour) and circuit breaker pattern
855863
- Response analyzer with semantic understanding
856-
- **484 comprehensive tests** (100% pass rate)
864+
- **556 comprehensive tests** (100% pass rate)
857865
- **Live streaming output mode** for real-time Claude Code visibility
858866
- tmux integration and live monitoring
859867
- PRD import functionality with modern CLI JSON parsing
@@ -867,9 +875,9 @@ Ralph is under active development with a clear path to v1.0.0. See [IMPLEMENTATI
867875
- Dedicated uninstall script
868876

869877
**Test Coverage Breakdown:**
870-
- Unit Tests: 348 (CLI parsing, JSON, exit detection, rate limiting, session continuity, enable wizard, live streaming, circuit breaker recovery)
878+
- Unit Tests: 420 (CLI parsing, JSON, exit detection, rate limiting, session continuity, enable wizard, live streaming, circuit breaker recovery, file protection, integrity checks)
871879
- Integration Tests: 136 (loop execution, edge cases, installation, project setup, PRD import)
872-
- Test Files: 16
880+
- Test Files: 18
873881

874882
### Path to v1.0.0 (~4 weeks)
875883

0 commit comments

Comments
 (0)