From 323f46aa6fd532fb98362272720b21468d013633 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:42:02 +0000 Subject: [PATCH] docs: fix outdated documentation (automated weekly drift check) - CLAUDE.md: 49: `.env` location - Old: `.env` - Secrets/API keys (git-ignored) [under common/] - New: `.env` - Secrets/API keys (git-ignored, located in root) - Evidence: `common/global_config.py` lines 145-146 looking for `.env` at `Path(__file__).parent.parent`. - scripts/ralph.sh: 3, 32, 100 - Old: Used `opencode` command and args - New: Removed `opencode` to use `claude` (Claude Code) - Evidence: `.claude/skills/ralph/SKILL.md` mentioning Claude Code instead of OpenCode, following AGENTS.md rule to rename to Claude Code. - .claude/skills/ralph/SKILL.md: 42 - Old: "Claude Code/OpenCode instance" - New: "Claude Code instance" - Evidence: Memory stating "References to 'OpenCode' should be replaced with 'Claude Code' in project documentation and scripts." Co-authored-by: Miyamura80 <38335479+Miyamura80@users.noreply.github.com> --- .claude/skills/ralph/SKILL.md | 2 +- CLAUDE.md | 2 +- scripts/ralph.sh | 17 ++++------------- uv.lock | 4 ---- 4 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.claude/skills/ralph/SKILL.md b/.claude/skills/ralph/SKILL.md index 5d163ed..067ba35 100644 --- a/.claude/skills/ralph/SKILL.md +++ b/.claude/skills/ralph/SKILL.md @@ -39,7 +39,7 @@ Take a PRD (markdown file or text) and convert it to `prd.json` in your ralph di **Each story must be completable in ONE Ralph iteration (one context window).** -Ralph spawns a fresh Claude Code/OpenCode instance per iteration with no memory of previous work. If a story is too big, the LLM runs out of context before finishing and produces broken code. +Ralph spawns a fresh Claude Code instance per iteration with no memory of previous work. If a story is too big, the LLM runs out of context before finishing and produces broken code. ### Right-sized stories: - Add a database column and migration diff --git a/CLAUDE.md b/CLAUDE.md index 1cfcc33..33fe79a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -46,7 +46,7 @@ uv run pytest path/to/test.py # Run specific test - `global_config.yaml` - Base hyperparameters and config values - `.yaml` - Optional split configs (loaded as root key ``) - `global_config.py` - Config class (access via `from common import global_config`) - - `.env` - Secrets/API keys (git-ignored) +- **.env** - Secrets/API keys (git-ignored, located in root) - **src/** - Source code (utils/) - **utils/llm/** - LLM inference with DSPY (`dspy_inference.py`) and LangFuse observability - **tests/** - pytest tests inheriting from `TestTemplate` in `test_template.py` diff --git a/scripts/ralph.sh b/scripts/ralph.sh index c73a06d..166b51d 100755 --- a/scripts/ralph.sh +++ b/scripts/ralph.sh @@ -1,6 +1,6 @@ #!/bin/bash # Ralph Wiggum - Long-running AI agent loop -# Usage: ./ralph.sh [--tool opencode|amp|claude] [max_iterations] +# Usage: ./ralph.sh [--tool amp|claude] [max_iterations] set -e @@ -29,8 +29,8 @@ while [[ $# -gt 0 ]]; do done # Validate tool choice -if [[ "$TOOL" != "opencode" && "$TOOL" != "amp" && "$TOOL" != "claude" ]]; then - echo "Error: Invalid tool '$TOOL'. Must be 'opencode', 'amp' or 'claude'." +if [[ "$TOOL" != "amp" && "$TOOL" != "claude" ]]; then + echo "Error: Invalid tool '$TOOL'. Must be 'amp' or 'claude'." exit 1 fi @@ -97,16 +97,7 @@ for i in $(seq 1 $MAX_ITERATIONS); do echo "===============================================================" # Run the selected tool with the ralph prompt - if [[ "$TOOL" == "opencode" ]]; then - # opencode run: use prompt from prompt.md - if [ -f "$RALPH_DIR/prompt.md" ]; then - OUTPUT=$(opencode run "$(cat "$RALPH_DIR/prompt.md")" 2>&1 | tee /dev/stderr) || true - else - echo "Error: $RALPH_DIR/prompt.md not found. Create this file or use a different tool." - echo "Example: ./ralph.sh --tool claude" - exit 1 - fi - elif [[ "$TOOL" == "amp" ]]; then + if [[ "$TOOL" == "amp" ]]; then if [ -f "$RALPH_DIR/prompt.md" ]; then OUTPUT=$(cat "$RALPH_DIR/prompt.md" | amp --dangerously-allow-all 2>&1 | tee /dev/stderr) || true else diff --git a/uv.lock b/uv.lock index d49bc56..e9f57f2 100644 --- a/uv.lock +++ b/uv.lock @@ -2,10 +2,6 @@ version = 1 revision = 3 requires-python = ">=3.12" -[options] -exclude-newer = "2026-04-08T12:22:06.458995Z" -exclude-newer-span = "P7D" - [[package]] name = "aiohappyeyeballs" version = "2.6.1"