An AI agent built to do Ralph loops - plan mode for planning and ralph mode for implementing.
1# Rustagent Configuration
2# Copy this file to rustagent.toml and fill in your API keys
3
4# Default LLM configuration (fallback for all modes)
5[llm]
6provider = "anthropic" # Options: "anthropic", "openai", "ollama"
7model = "claude-sonnet-4-20250514"
8max_tokens = 8192
9
10# Provider-specific configuration
11[anthropic]
12api_key = "${ANTHROPIC_API_KEY}"
13
14[openai]
15api_key = "${OPENAI_API_KEY}"
16
17[ollama]
18base_url = "http://localhost:11434"
19
20# Optional: Override LLM for planning mode
21[planning.llm]
22provider = "anthropic"
23model = "claude-opus-4-20250514"
24max_tokens = 16384
25
26# Optional: Override LLM for ralph mode
27[ralph.llm]
28provider = "anthropic"
29model = "claude-sonnet-4-20250514"
30max_tokens = 4096
31
32# Agent configuration
33[rustagent]
34spec_dir = "specs"
35max_iterations = 100 # Set to null for unlimited
36
37# Security configuration
38[security]
39shell_policy = "allowlist" # Options: "allowlist", "blocklist", "unrestricted"
40allowed_commands = ["git", "cargo", "bun", "ls", "cat", "grep", "find", "echo", "pwd", "mkdir", "touch"]
41blocked_patterns = ["npm"]
42max_file_size_mb = 10
43allowed_paths = ["."]