Skip to main content

AI providers

Wiggum requires an API key from one of these providers:
Set your Anthropic API key:
Or use the config command:
Anthropic is the default provider. Models: opus, sonnet.
API keys are stored in .ralph/.env.local and never leave your machine.

Coding agent configuration

Wiggum supports multiple coding agents for the Ralph loop. Configure which agent runs each phase:

Setting the default agent

You can mix agents — e.g. Codex for implementation and Claude Code for review:

Per-run overrides

Override the agent for a single run without changing the config:

Optional services

These services enhance wiggum’s analysis during the scan and interview phases:
ServiceConfig commandPurpose
Tavilywiggum config set tavily <key>Web search for current best practices during init
Context7wiggum config set context7 <key>Up-to-date documentation lookup during interviews
Braintrustwiggum config set braintrust <key>Tracing and observability for agent execution

Generated files

Running wiggum init creates a .ralph/ directory:

Loop configuration

The ralph.config.cjs file controls all loop behavior:

Iteration limits

OptionDefaultDescription
loop.maxIterations10Max implementation iterations per run
loop.maxE2eAttempts5Max E2E test retries
Override per-run:

Models

OptionDefaultDescription
loop.defaultModelsonnetModel for implementation and E2E phases
loop.planningModelopusModel for planning and verification phases
loop.codexModelgpt-5.3-codexModel when using Codex CLI
Override per-run:

Agent selection

OptionDefaultDescription
loop.codingCliclaudeAgent for implementation: claude or codex
loop.reviewCliclaudeAgent for review phase: claude or codex
loop.reviewModemanualDefault review mode: manual, auto, or merge

Claude Code settings

OptionDescription
loop.claudePermissionModeControls Claude Code’s autonomy during loop execution
Permission modes:
ModeBehavior
defaultAsks for approval on each action
acceptEditsApproves file edits automatically, prompts for other actions
planPlan-only mode — shows what it would do without executing
autoMost actions approved automatically
bypassPermissionsFully autonomous, no prompts

Codex CLI settings

OptionDescription
loop.codexModelCodex model to use (e.g. gpt-5.3-codex)
loop.codexSandboxSandbox level for Codex execution
loop.codexApprovalPolicyWhen Codex prompts for approval
Sandbox levels:
LevelBehavior
read-onlyCodex can only read files
workspace-writeCodex can read/write files in the project directory (recommended)
danger-full-accessFull filesystem access
Approval policies:
PolicyBehavior
untrustedPrompt on every action
on-failurePrompt only when something fails (recommended)
on-requestPrompt only when Codex explicitly asks
neverFully autonomous

Other options

OptionDefaultDescription
loop.disableMcpInAutomatedRunsfalseDisable MCP servers during automated loop execution

Agent configuration

The agent section in ralph.config.cjs controls agent mode behavior:
Agent-specific flags (--labels, --issues, --max-items, etc.) are passed at runtime. See the agent command reference.

Full config example