/agent-loop:ralph-configfrom agent-loop
Views and modifies agent loop runtime settings including iteration limits, timeouts, provider selection, and commit behavior. Supports show, set, reset, and preset commands.
Ships in agent-loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Skill access pattern (post-kernel-pivot, 2026.5+)
Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as
/skill-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name> --bodyOnly kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,aiwg-steward-routingon Claude Code) are directly invokable as slash commands. See skill-discovery rule.
View and modify Al's runtime configuration. Settings control loop behavior defaults such as iteration limits, timeouts, provider selection, and commit behavior. Changes persist to .aiwg/ralph/config.json and apply to all subsequent loops unless overridden per-invocation.
Before any confirmation below, read and apply
agent-loop authorization checkpoints.
Call aiwg config authorization check --action-file "$ACTION_FILE" --target "$TARGET_REPO"
for host-classified effects. Only auto-authorized with a signed receipt skips
that workflow prompt; retain existing prompts/refusals otherwise. Platform
prompts are never bypassed. Limits, regression and threat overrides still require review.
Users may say:
One of show, set, reset, or preset.
set)The configuration key to change. See the configuration reference below.
set)The new value to assign to the key.
preset)One of the built-in preset names: ci, thorough, or quick.
| Key | Default | Description |
|---|---|---|
maxIterations | 10 | Maximum iterations before the loop halts |
timeout | 60 | Maximum wall-clock time per loop (minutes) |
provider | claude | AI provider for loop iterations (claude, codex, factory, opencode) |
model | (provider default) | Model override for the provider |
autoCommit | true | Commit after each successful iteration |
branch | null | Default branch name (null = work on current branch) |
quiet | false | Suppress verbose iteration output |
memory | true | Enable semantic memory accumulation |
crossTask | false | Pull relevant memories from other completed loops |
analytics | false | Enable iteration analytics logging |
| Preset | maxIterations | timeout | quiet | Description |
|---|---|---|---|---|
ci | 5 | 30 | true | Conservative limits for CI/CD pipelines |
thorough | 20 | 120 | false | Extended limits for complex tasks |
quick | 3 | 15 | false | Fast exploration, fail-fast on difficulty |
show Subcommand.aiwg/ralph/config.json; if absent, show built-in defaultsOutput (active config):
Al Configuration
Source: .aiwg/ralph/config.json
Key Value Default Modified
─────────────── ─────────── ───────── ────────
maxIterations 5 10 yes
timeout 30 60 yes
provider claude claude no
model (default) (default) no
autoCommit true true no
branch null null no
quiet true false yes
memory true true no
crossTask false false no
analytics false false no
Active preset: ci (applied 2026-04-01)
To change a value: /ralph-config set <key> <value>
To reset defaults: /ralph-config reset
Output (no config file — using defaults):
Al Configuration
Source: built-in defaults (no .aiwg/ralph/config.json found)
Key Value
─────────────── ─────────
maxIterations 10
timeout 60
provider claude
model (default)
autoCommit true
branch null
quiet false
memory true
crossTask false
analytics false
To customize: /ralph-config set <key> <value>
To apply a preset: /ralph-config preset <ci|thorough|quick>
set Subcommand.aiwg/ralph/config.jsonOutput:
Al config updated.
maxIterations: 10 → 15
Saved to: .aiwg/ralph/config.json
Validation error — unknown key:
Unknown configuration key: 'maxIter'
Did you mean 'maxIterations'?
Run /ralph-config show to see all valid keys.
Validation error — wrong type:
Invalid value for 'maxIterations': 'lots'
Expected: integer >= 1
Got: 'lots'
Example: /ralph-config set maxIterations 15
reset Subcommand.aiwg/ralph/config.json with built-in defaultsConfirmation prompt:
This will reset all Al configuration to defaults.
Current non-default values:
maxIterations: 5 (default: 10)
timeout: 30 (default: 60)
quiet: true (default: false)
Type 'yes' to confirm reset:
After reset:
Al configuration reset to defaults.
.aiwg/ralph/config.json has been cleared.
All future loops will use built-in default values.
preset Subcommandci, thorough, or quickPreview before applying:
Applying preset: ci
Changes:
maxIterations: 10 → 5
timeout: 60 → 30
quiet: false → true
Other keys are unchanged.
Apply? (yes/no):
After applying:
Preset 'ci' applied.
Al will now use:
maxIterations: 5
timeout: 30 minutes
quiet: true
These values persist until changed or reset.
Saved to: .aiwg/ralph/config.json
Unknown preset:
Unknown preset: 'aggressive'
Available presets:
ci — max 5 iterations, 30m timeout, quiet (for pipelines)
thorough — max 20 iterations, 120m timeout (for complex tasks)
quick — max 3 iterations, 15m timeout (for exploration)
Usage: /ralph-config preset <name>
| Context | Path |
|---|---|
In-session loops (ralph) | .aiwg/ralph/config.json |
External loops (ralph-external) | .aiwg/ralph-external/config.json |
Each context has its own config file. show, set, reset, and preset operate on the in-session config by default. Use /ralph-config --external show to inspect external loop config (if the --external flag is available in your install).
Config file unreadable:
Cannot read Al config: .aiwg/ralph/config.json
Permission error or corrupted JSON. Options:
1. Delete the file to reset to defaults: rm .aiwg/ralph/config.json
2. Inspect manually: cat .aiwg/ralph/config.json
Read-only directory:
Cannot write to .aiwg/ralph/config.json.
Check that the .aiwg/ralph/ directory is writable:
chmod 755 .aiwg/ralph/
/ralph-config show
Response: Table of all current values with defaults and modified markers.
/ralph-config set maxIterations 15
Response: Confirms maxIterations: 10 → 15, writes file.
/ralph-config preset ci
Response: Previews 3 changes, prompts confirmation, applies and saves.
/ralph-config preset thorough
Response: Sets max 20 iterations and 120-minute timeout.
/ralph-config set autoCommit false
Response: Loop iterations will no longer create git commits.
/ralph-config reset
Response: Confirms which values will revert, then clears the config file.
ralph — Start an in-session loop (uses this config as defaults)ralph-external — Start a crash-resilient external loopralph-status — Check active loop stateralph-memory — Manage accumulated loop memoryWhat SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/agent-loopDetect requests for iterative autonomous agent loops and route to the appropriate loop executor/agent-loop-extCrash-resilient external agent loop with state persistence and CI/CD integration/auto-test-executionAutomatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern/cross-task-learnerEnable agent loops to learn from similar past tasks and share patterns across loops/debug-memoryQuery and manage the executable feedback debug memory/execute-feedbackExecute tests on generated code and iterate until passingnpx claudepluginhub jmagly/aiwg --plugin agent-loopOther plugins' skills for the same job