Skip to content

Commit 3f116d7

Browse files
alexsteeelclaude
andcommitted
feat: add Ralph CLI and NODE_OPTIONS to devcontainer
- Add NODE_OPTIONS=--max-old-space-size=16384 to prevent OOM in Claude Code - Install Ralph CLI for autonomous task execution with API recovery - Add Ralph shell completion for zsh - Remove CodeRabbit CLI (unused) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5c20670 commit 3f116d7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/ai_sbx/dockerfiles/devcontainer-base/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ RUN uv pip install --system --break-system-packages --no-cache ruff black
115115
RUN uv pip install --system --break-system-packages --no-cache \
116116
git+https://github.com/alexsteeel/md-task-mcp.git
117117

118+
# Install Ralph CLI (autonomous task execution with API recovery)
119+
# https://github.com/alexsteeel/.claude/tree/master/cli
120+
RUN uv pip install --system --break-system-packages --no-cache \
121+
"ralph @ git+https://github.com/alexsteeel/.claude.git#subdirectory=cli"
122+
118123
# Install shfmt
119124
ENV SHFMT_VERSION=3.7.0
120125
RUN set -eux; \
@@ -201,10 +206,6 @@ RUN npm install -g @openai/codex
201206
# https://github.com/google-gemini/gemini-cli
202207
RUN npm install -g @google/gemini-cli
203208

204-
# Install CodeRabbit CLI
205-
# https://docs.coderabbit.ai/cli/overview
206-
RUN curl -fsSL https://cli.coderabbit.ai/install.sh | sh || true
207-
208209
# Install Playwright test framework globally
209210
# https://playwright.dev/
210211
# Note: Browser binaries installed earlier as root
@@ -225,7 +226,7 @@ COPY --chown=$USERNAME:$USERNAME devcontainer-base/conf/.tmux.conf /home/$USERNA
225226
COPY --chown=$USERNAME:$USERNAME devcontainer-base/conf/.vimrc /home/$USERNAME/.vimrc
226227
COPY --chown=$USERNAME:$USERNAME devcontainer-base/conf/codex_config.toml /home/$USERNAME/.codex/config.toml
227228

228-
# Create logs directory for scripts to avoid conflicts with .ai_agents_sandbox directory
229+
# Create logs directory for devcontainer scripts (non-root-post-create.sh, tests)
229230
RUN mkdir -p /home/$USERNAME/scripts/logs && \
230231
chown -R $USERNAME:$USERNAME /home/$USERNAME/scripts/logs
231232

src/ai_sbx/dockerfiles/devcontainer-base/conf/.zshrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ source $ZSH/oh-my-zsh.sh
2626

2727
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2828

29+
# NODE_OPTIONS: Prevent OOM in Claude Code by increasing V8 heap limit
30+
# https://github.com/anthropics/claude-code/issues/3931
31+
export NODE_OPTIONS="--max-old-space-size=16384"
32+
2933
# Aliases for Claude and Codex
3034
# Disable auto-update to preserve pinned version (proxy regression in 2.0.48+)
3135
alias claude='CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 claude --dangerously-skip-permissions'
3236
alias codex='codex'
37+
38+
# Ralph CLI shell completion (Typer-based)
39+
eval "$(ralph --show-completion zsh 2>/dev/null || true)"

0 commit comments

Comments
 (0)