[agent.profile]
name = "coding-agent"
description = "A coding assistant with file and shell access"
system_prompt = """You are an expert software engineer. You read code carefully,
make minimal targeted changes, and always verify your work by running tests."""
thinking_level = "high"
temperature = 0.2
max_tokens = 16384
[[agent.profile.instances]]
id = "{{%coder%}}"
description = "A code generation specialist"
thinking_level = "high"
temperature = 0.2
max_tokens = 16384
config_id = "coder"
[[agent.profile.instances]]
id = "{{%reviewer%}}"
description = "A code review specialist"
thinking_level = "high"
temperature = 0.1
max_tokens = 8192
config_id = "reviewer"
[[agent.instances]]
name = "code-writer"
agent_profile = "{{agent_profile.coder}}"
system_prompt = "You write clean, well-tested code. Follow existing patterns."
[[agent.instances]]
name = "code-reviewer"
agent_profile = "{{agent_profile.reviewer}}"
system_prompt = "You review code for bugs, security issues, and style violations."
[provider]
model = "claude-sonnet-4-20250514"
api_key = "${ANTHROPIC_API_KEY}"
api = "anthropic_messages"
[provider.cost]
input_per_million = 3.0
output_per_million = 15.0
cache_read_per_million = 0.3
cache_write_per_million = 3.75
[tools]
enabled = ["bash", "file_read", "file_write", "search"]
tool_strategy = "parallel"
[compaction]
max_context_tokens = 200000
system_prompt_tokens = 4000
compact_at_pct = 0.85
keep_first_turns = 2
keep_recent_turns = 4
max_summary_tokens = 8000
tool_output_max_lines = 100
[execution]
max_turns = 50
max_total_tokens = 1000000
max_duration_secs = 600
max_cost = 5.0
[execution.retry]
max_retries = 3
initial_delay_ms = 1000
backoff_multiplier = 2.0
max_delay_ms = 30000
[execution.cache]
enabled = true
strategy = "auto"