AI providers
Wiggum requires an API key from one of these providers:- Anthropic
- OpenAI
- OpenRouter
Set your Anthropic API key:Or use the config command:Anthropic is the default provider. Models:
opus, sonnet..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
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:| Service | Config command | Purpose |
|---|---|---|
| Tavily | wiggum config set tavily <key> | Web search for current best practices during init |
| Context7 | wiggum config set context7 <key> | Up-to-date documentation lookup during interviews |
| Braintrust | wiggum config set braintrust <key> | Tracing and observability for agent execution |
Generated files
Runningwiggum init creates a .ralph/ directory:
Loop configuration
Theralph.config.cjs file controls all loop behavior:
Iteration limits
| Option | Default | Description |
|---|---|---|
loop.maxIterations | 10 | Max implementation iterations per run |
loop.maxE2eAttempts | 5 | Max E2E test retries |
Models
| Option | Default | Description |
|---|---|---|
loop.defaultModel | sonnet | Model for implementation and E2E phases |
loop.planningModel | opus | Model for planning and verification phases |
loop.codexModel | gpt-5.3-codex | Model when using Codex CLI |
Agent selection
| Option | Default | Description |
|---|---|---|
loop.codingCli | claude | Agent for implementation: claude or codex |
loop.reviewCli | claude | Agent for review phase: claude or codex |
loop.reviewMode | manual | Default review mode: manual, auto, or merge |
Claude Code settings
| Option | Description |
|---|---|
loop.claudePermissionMode | Controls Claude Code’s autonomy during loop execution |
| Mode | Behavior |
|---|---|
default | Asks for approval on each action |
acceptEdits | Approves file edits automatically, prompts for other actions |
plan | Plan-only mode — shows what it would do without executing |
auto | Most actions approved automatically |
bypassPermissions | Fully autonomous, no prompts |
Codex CLI settings
| Option | Description |
|---|---|
loop.codexModel | Codex model to use (e.g. gpt-5.3-codex) |
loop.codexSandbox | Sandbox level for Codex execution |
loop.codexApprovalPolicy | When Codex prompts for approval |
| Level | Behavior |
|---|---|
read-only | Codex can only read files |
workspace-write | Codex can read/write files in the project directory (recommended) |
danger-full-access | Full filesystem access |
| Policy | Behavior |
|---|---|
untrusted | Prompt on every action |
on-failure | Prompt only when something fails (recommended) |
on-request | Prompt only when Codex explicitly asks |
never | Fully autonomous |
Other options
| Option | Default | Description |
|---|---|---|
loop.disableMcpInAutomatedRuns | false | Disable MCP servers during automated loop execution |
Agent configuration
Theagent section in ralph.config.cjs controls agent mode behavior:
--labels, --issues, --max-items, etc.) are passed at runtime. See the agent command reference.

