Skip to main content

ralph-starter presets

List and use pre-configured workflow presets for common development scenarios.

Synopsis​

# List all available presets
ralph-starter presets

# Use a preset with the run command
ralph-starter run --preset <name> [task]

Description​

Presets are pre-configured workflow settings that tune ralph-starter's behavior for specific development scenarios. Each preset adjusts parameters like maximum iterations, validation behavior, auto-commit settings, and provides a specialized prompt prefix that guides the agent's approach.

Running ralph-starter presets lists all available presets grouped by category. To use a preset, pass --preset <name> to the ralph-starter run command.

Preset Reference​

Development​

feature​

Standard feature implementation with validation and commits.

SettingValue
Max Iterations30
ValidateYes
CommitYes
Circuit Breaker3 consecutive failures, 5 same errors
ralph-starter run --preset feature "add user authentication"

feature-minimal​

Quick feature implementation without validation. Useful for rapid prototyping.

SettingValue
Max Iterations20
ValidateNo
CommitYes
ralph-starter run --preset feature-minimal "scaffold dashboard layout"

tdd-red-green​

Test-driven development workflow. The agent writes a failing test first, then implements the minimum code to make it pass, then refactors.

SettingValue
Max Iterations50
ValidateYes
CommitYes
Circuit Breaker5 consecutive failures, 3 same errors

Agent instructions: Follow strict TDD -- write a failing test first, run tests to confirm failure, implement minimum code to pass, refactor if needed. Commit after each green test.

ralph-starter run --preset tdd-red-green "implement shopping cart service"

spec-driven​

Implementation driven by specification files. The agent reads specs from a specs/ directory and tracks progress in IMPLEMENTATION_PLAN.md.

SettingValue
Max Iterations40
ValidateYes
CommitYes

Agent instructions: Read the specification files in the specs/ directory. Implement according to the requirements. Mark tasks complete in IMPLEMENTATION_PLAN.md as you finish them.

ralph-starter run --preset spec-driven

refactor​

Safe refactoring with continuous test validation. The agent makes small, incremental changes and commits after each successful refactoring step.

SettingValue
Max Iterations40
ValidateYes
CommitYes
Circuit Breaker2 consecutive failures, 3 same errors
ralph-starter run --preset refactor "extract auth logic into separate module"

Debugging​

debug​

Open-ended debugging session without auto-commits. The agent adds logging, analyzes outputs, and identifies root causes.

SettingValue
Max Iterations20
ValidateNo
CommitNo

Agent instructions: Debug the issue step by step. Add logging, analyze outputs, identify root cause. Document findings.

ralph-starter run --preset debug "users report 500 errors on /api/orders"

incident-response​

Quick fix for production incidents. The agent focuses on the minimal fix and avoids refactoring.

SettingValue
Max Iterations15
ValidateYes
CommitYes
Circuit Breaker2 consecutive failures, 2 same errors

Agent instructions: This is a production incident. Focus on the minimal fix. Avoid refactoring. Document the issue and solution.

ralph-starter run --preset incident-response "fix: payments webhook returning 503"

code-archaeology​

Investigate and document legacy code. The agent explores the codebase to understand how it works and adds documentation.

SettingValue
Max Iterations30
ValidateNo
CommitNo

Agent instructions: Investigate the codebase to understand how it works. Add documentation and comments. Create diagrams if helpful.

ralph-starter run --preset code-archaeology "document the billing system architecture"

Review​

review​

General code review and suggestions. The agent reviews for bugs, security issues, performance problems, and code quality without implementing changes.

SettingValue
Max Iterations10
ValidateYes
CommitNo

Agent instructions: Review the code for bugs, security issues, performance problems, and code quality. Suggest improvements but do not implement.

ralph-starter run --preset review "review the authentication module"

pr-review​

Pull request review. The agent checks for correctness, test coverage, documentation, and breaking changes.

SettingValue
Max Iterations10
ValidateYes
CommitNo

Agent instructions: Review the changes in this PR. Check for correctness, test coverage, documentation, and breaking changes. Provide actionable feedback.

ralph-starter run --preset pr-review "review changes in feature/auth branch"

adversarial-review​

Security-focused adversarial review. The agent looks for injection vulnerabilities, authentication bypasses, authorization issues, data leaks, and OWASP Top 10 concerns.

SettingValue
Max Iterations15
ValidateNo
CommitNo
ralph-starter run --preset adversarial-review "security audit of the API layer"

Documentation​

docs​

Generate comprehensive documentation including API docs, usage examples, and architecture overviews.

SettingValue
Max Iterations20
ValidateNo
CommitYes
ralph-starter run --preset docs "generate API documentation for the payments module"

documentation-first​

Write documentation before implementation. The agent documents purpose, API, usage examples, and edge cases first, then implements to match the documentation.

SettingValue
Max Iterations30
ValidateNo
CommitYes
ralph-starter run --preset documentation-first "design and document the notification service API"

Specialized​

api-design​

API design and implementation following REST best practices, including proper HTTP methods, status codes, error handling, validation, and documentation.

SettingValue
Max Iterations35
ValidateYes
CommitYes
ralph-starter run --preset api-design "design REST API for user management"

migration-safety​

Safe database and data migrations with a focus on reversibility, zero data loss, backward compatibility, and rollback scripts. Has a strict circuit breaker to stop early on failures.

SettingValue
Max Iterations25
ValidateYes
CommitYes
Circuit Breaker1 consecutive failure, 2 same errors
ralph-starter run --preset migration-safety "migrate users table to add role column"

performance-optimization​

Performance analysis and optimization. The agent profiles first, identifies bottlenecks, makes targeted improvements, and documents performance gains.

SettingValue
Max Iterations30
ValidateYes
CommitYes
ralph-starter run --preset performance-optimization "optimize database queries in the dashboard"

scientific-method​

Hypothesis-driven development. The agent follows the scientific method: observe the problem, form a hypothesis, design an experiment (test), implement and test, analyze results, and iterate.

SettingValue
Max Iterations40
ValidateYes
CommitYes
ralph-starter run --preset scientific-method "investigate and fix flaky test in auth.spec.ts"

research​

Research and exploration without code changes. The agent explores options, compares alternatives, and documents findings in a summary report.

SettingValue
Max Iterations25
ValidateNo
CommitNo
ralph-starter run --preset research "evaluate state management solutions for the frontend"

gap-analysis​

Compare a specification to the current implementation. The agent identifies gaps, missing features, and discrepancies, then creates a prioritized TODO list.

SettingValue
Max Iterations20
ValidateYes
CommitNo
ralph-starter run --preset gap-analysis "compare API spec to current implementation"

Preset Settings Reference​

Every preset configures the following settings:

SettingDescription
maxIterationsMaximum number of loop iterations the agent can run
validateWhether to run tests/lint/build after each iteration
commitWhether to auto-commit after successful iterations
promptPrefixInstructions prepended to the agent's task prompt
completionPromiseString the agent outputs to signal task completion
circuitBreakerAutomatic stop conditions to prevent infinite loops

Circuit Breaker​

Some presets include a circuit breaker that stops execution early when the agent is stuck:

  • maxConsecutiveFailures -- Stop after N consecutive failed iterations.
  • maxSameErrorCount -- Stop after seeing the same error N times.

Presets with strict circuit breakers (like migration-safety) stop quickly to prevent cascading damage. Presets for exploration (like debug, research) omit circuit breakers to allow more freedom.

Quick Reference Table​

PresetIterationsValidateCommitCategory
feature30YesYesDevelopment
feature-minimal20NoYesDevelopment
tdd-red-green50YesYesDevelopment
spec-driven40YesYesDevelopment
refactor40YesYesDevelopment
debug20NoNoDebugging
incident-response15YesYesDebugging
code-archaeology30NoNoDebugging
review10YesNoReview
pr-review10YesNoReview
adversarial-review15NoNoReview
docs20NoYesDocumentation
documentation-first30NoYesDocumentation
api-design35YesYesSpecialized
migration-safety25YesYesSpecialized
performance-optimization30YesYesSpecialized
scientific-method40YesYesSpecialized
research25NoNoSpecialized
gap-analysis20YesNoSpecialized

See Also​