11# Ralph for Claude Code
22
3- ![ Version] ( https://img.shields.io/badge/version-0.9.0 -blue )
3+ ![ Version] ( https://img.shields.io/badge/version-0.9.1 -blue )
44![ Status] ( https://img.shields.io/badge/status-active%20development-yellow )
5- ![ Tests] ( https://img.shields.io/badge/tests-75 %20passing-green )
6- ![ Coverage] ( https://img.shields.io/badge/coverage-60 %25-orange )
5+ ![ Tests] ( https://img.shields.io/badge/tests-98 %20passing-green )
6+ ![ Coverage] ( https://img.shields.io/badge/coverage-65 %25-orange )
77
88> ** Autonomous AI development loop with intelligent exit detection and rate limiting**
99
@@ -13,23 +13,34 @@ Ralph is an implementation of the Geoffrey Huntley's technique for Claude Code t
1313
1414## 📌 Project Status
1515
16- ** Version** : v0.9.0 - Active Development
16+ ** Version** : v0.9.1 - Active Development
1717** Core Features** : ✅ Working and tested
18- ** Test Coverage** : 60 % (expanding to 90%+ - see [ roadmap] ( #-development-roadmap ) )
18+ ** Test Coverage** : 65 % (expanding to 90%+ - see [ roadmap] ( #-development-roadmap ) )
1919
2020### What's Working Now ✅
2121- Autonomous development loops with intelligent exit detection
2222- Rate limiting with hourly reset (100 calls/hour, configurable)
2323- Circuit breaker with advanced error detection (prevents runaway loops)
2424- Response analyzer with semantic understanding and two-stage error filtering
25+ - ** JSON output format support with automatic fallback to text parsing**
26+ - ** Session continuity with ` --continue ` flag for context preservation**
27+ - ** Modern CLI flags: ` --output-format ` , ` --allowed-tools ` , ` --no-continue ` **
2528- Multi-line error matching for accurate stuck loop detection
2629- 5-hour API limit handling with user prompts
2730- tmux integration for live monitoring
2831- PRD import functionality
29- - 97 passing tests covering critical paths (13 error detection + 9 stuck loop + 75 core tests)
32+ - 98 passing tests covering critical paths (20 JSON parsing + 23 CLI modern + 55 core tests)
3033
3134### Recent Improvements 🎉
3235
36+ ** v0.9.1 - Modern CLI Commands (Phase 1.1)**
37+ - ✅ JSON output format support with ` --output-format json ` (default)
38+ - ✅ Session continuity using ` --continue ` flag for cross-loop context
39+ - ✅ Tool permissions via ` --allowed-tools ` flag
40+ - ✅ Loop context injection with ` build_loop_context() ` function
41+ - ✅ Backward-compatible: automatic fallback to text parsing
42+ - ✅ 43 new tests: JSON parsing (20) + CLI modern (23)
43+
3344** v0.9.0 - Circuit Breaker Enhancements**
3445- ✅ Fixed multi-line error matching in stuck loop detection
3546- ✅ Eliminated JSON field false positives (e.g., ` "is_error": false ` )
@@ -339,26 +350,27 @@ If you want to run the test suite:
339350# Install BATS testing framework
340351npm install -g bats bats-support bats-assert
341352
342- # Run all tests (97 tests)
353+ # Run all tests (98 tests)
343354bats tests/
344355
345356# Run specific test suites
346357bats tests/unit/test_rate_limiting.bats
347358bats tests/unit/test_exit_detection.bats
359+ bats tests/unit/test_json_parsing.bats
360+ bats tests/unit/test_cli_modern.bats
348361bats tests/integration/test_loop_execution.bats
349- bats tests/integration/test_edge_cases.bats
350362
351363# Run error detection and circuit breaker tests
352364./tests/test_error_detection.sh
353365./tests/test_stuck_loop_detection.sh
354366```
355367
356368Current test status:
357- - ** 97 tests** across 6 test files (75 core + 13 error detection + 9 stuck loop )
358- - ** 100% pass rate** (97/97 passing)
359- - ** ~ 60 % code coverage** (target: 90%+)
369+ - ** 98 tests** across 7 test files (55 core + 20 JSON parsing + 23 CLI modern )
370+ - ** 100% pass rate** (98/98 passing)
371+ - ** ~ 65 % code coverage** (target: 90%+)
360372- Comprehensive unit and integration tests
361- - Specialized tests for error detection and circuit breaker functionality
373+ - Specialized tests for JSON parsing, CLI flags, and circuit breaker functionality
362374
363375### Installing tmux
364376
@@ -537,13 +549,16 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
537549### Ralph Loop Options
538550``` bash
539551ralph [OPTIONS]
540- -h, --help Show help message
541- -c, --calls NUM Set max calls per hour (default: 100)
542- -p, --prompt FILE Set prompt file (default: PROMPT.md)
543- -s, --status Show current status and exit
544- -m, --monitor Start with tmux session and live monitor
545- -v, --verbose Show detailed progress updates during execution
546- -t, --timeout MIN Set Claude Code execution timeout in minutes (1-120, default: 15)
552+ -h, --help Show help message
553+ -c, --calls NUM Set max calls per hour (default: 100)
554+ -p, --prompt FILE Set prompt file (default: PROMPT.md)
555+ -s, --status Show current status and exit
556+ -m, --monitor Start with tmux session and live monitor
557+ -v, --verbose Show detailed progress updates during execution
558+ -t, --timeout MIN Set Claude Code execution timeout in minutes (1-120, default: 15)
559+ --output-format FORMAT Set output format: json (default) or text
560+ --allowed-tools TOOLS Set allowed Claude tools (default: Write,Bash(git * ),Read)
561+ --no-continue Disable session continuity (start fresh each loop)
547562```
548563
549564### Project Commands (Per Project)
0 commit comments