From 9a1124aa4c6918933abd95090999869a81bcd908 Mon Sep 17 00:00:00 2001 From: frankbria Date: Wed, 27 Aug 2025 16:18:17 -0700 Subject: [PATCH] Use direct 'claude' command instead of npx - Changed from 'npx @anthropic-ai/claude-code' to 'claude' - This assumes Claude Code is installed globally with npm install -g - Updated ralph_loop.sh, ralph_import.sh, and README.md - Much cleaner and faster execution without npx overhead --- README.md | 2 +- ralph_import.sh | 2 +- ralph_loop.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 40d9ad1..e615af4 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ my-project/ ## 🔧 System Requirements - **Bash 4.0+** - For script execution -- **Claude Code CLI** - `npx @anthropic-ai/claude-code` +- **Claude Code CLI** - `npm install -g @anthropic-ai/claude-code` - **tmux** - Terminal multiplexer for integrated monitoring (recommended) - **jq** - JSON processing for status tracking - **Git** - Version control (projects are initialized as git repos) diff --git a/ralph_import.sh b/ralph_import.sh index f6155c6..43dafe6 100755 --- a/ralph_import.sh +++ b/ralph_import.sh @@ -4,7 +4,7 @@ set -e # Configuration -CLAUDE_CODE_CMD="npx @anthropic-ai/claude-code" +CLAUDE_CODE_CMD="claude" # Colors RED='\033[0;31m' diff --git a/ralph_loop.sh b/ralph_loop.sh index 2fb9c88..bce0e9b 100755 --- a/ralph_loop.sh +++ b/ralph_loop.sh @@ -10,7 +10,7 @@ PROMPT_FILE="PROMPT.md" LOG_DIR="logs" DOCS_DIR="docs/generated" STATUS_FILE="status.json" -CLAUDE_CODE_CMD="npx @anthropic-ai/claude-code" +CLAUDE_CODE_CMD="claude" MAX_CALLS_PER_HOUR=100 # Adjust based on your plan SLEEP_DURATION=3600 # 1 hour in seconds CALL_COUNT_FILE=".call_count"