-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.agents.yaml.example
More file actions
118 lines (95 loc) · 3.26 KB
/
Copy path.agents.yaml.example
File metadata and controls
118 lines (95 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Multi-Agent System Configuration Example
# Copy this to .agents.yaml and customize for your needs
# List of enabled agents (claude is always enabled by default)
enabled_agents:
- claude # Anthropic's Claude Code (host-only)
- gemini # Google's Gemini CLI (host-only)
- opencode # SST's OpenCode (containerized)
- crush # Charm Bracelet's Crush AI (containerized)
# Agent priorities for different task types
# Agents are tried in order until one succeeds
agent_priorities:
# For creating PRs from issues
issue_creation:
- claude
- opencode
# For reviewing PRs
pr_reviews:
- gemini
- claude
# For implementing code fixes
code_fixes:
- claude
- crush
- opencode
# Model configuration overrides per agent
model_overrides:
# Example: Use a different model for OpenCode
# opencode:
# model: deepseek/deepseek-coder-v2-instruct
# temperature: 0.3
# Example: Configure Crush for faster responses
# crush:
# model: qwen/qwen-2.5-coder-7b-instruct
# temperature: 0.1
# OpenRouter configuration for agents that support it
openrouter:
# API key must be provided as OPENROUTER_API_KEY environment variable
# Default model for OpenRouter-compatible agents
default_model: qwen/qwen-2.5-coder-32b-instruct
# Fallback models if primary is unavailable
fallback_models:
- deepseek/deepseek-coder-v2-instruct
- meta-llama/llama-3.1-70b-instruct
# Per-agent model overrides
agent_overrides:
opencode:
model: qwen/qwen-2.5-coder-32b-instruct
temperature: 0.2
crush:
model: qwen/qwen-2.5-coder-32b-instruct
temperature: 0.1
# Security settings
security:
# Users authorized to trigger agent actions via [Approved][Agent] keywords
# CRITICAL: Only add trusted human users - these can execute code via agents
agent_admins:
- your-github-username # Replace with your GitHub username
# Trusted sources for comment context (used in PR reviews)
# Comments from these accounts are marked as trusted when providing context to AI
# This does NOT grant them ability to trigger agent actions
trusted_sources:
- your-github-username # Replace with your GitHub username
- github-actions[bot] # GitHub Actions bot
- dependabot[bot] # Dependabot
- renovate[bot] # Renovate bot
# Autonomous mode is REQUIRED for CI/CD operation
# All agents run in sandboxed environments for security
autonomous_mode: true # Enables non-interactive flags like --dangerously-skip-permissions
# Confirm running in sandboxed environment
require_sandbox: true
# Maximum prompt length to prevent abuse
max_prompt_length: 10000
# Cleanup temporary files after use
temp_file_cleanup: true
# Maximum execution time per agent call
subprocess_timeout: 600 # 10 minutes
# Memory limit for subprocess execution
memory_limit_mb: 500
# Rate limiting (per agent)
rate_limits:
requests_per_minute: 10
requests_per_hour: 100
# Agent-specific overrides
# claude:
# requests_per_minute: 20
# gemini:
# requests_per_minute: 5
# Advanced settings (optional)
advanced:
# Timeout for agent commands (seconds)
command_timeout: 300
# Maximum retries for failed agent calls
max_retries: 2
# Enable detailed logging
debug_mode: false