Agent Configuration
Guide to configuring Agentrix agents through claude/config.json.
Overview
Configuration controls agent behavior, model selection, permissions, and integrations.
config.json Schema
{
"model": "claude-sonnet-4.5-20250929",
"fallbackModel": "claude-3-5-sonnet-20241022",
"maxTurns": 50,
"systemPrompt": {
"path": "system_prompt.txt",
"mode": "append"
},
"settings": {
"permissionMode": "default",
"allowedTools": ["Read", "Edit", "Grep", "Bash"]
},
"mcpServers": {
"enabled": ["filesystem", "git"],
"directory": "mcp-servers"
},
"skills": {
"enabled": ["code-formatter"],
"directory": "skills"
}
}
Configuration Options
Model Settings
model: Primary model (default: "claude-sonnet-4.5-20250929")fallbackModel: Backup model if primary unavailablemaxTurns: Maximum conversation turns (default: 50)
System Prompt
systemPrompt.path: Relative path to prompt filesystemPrompt.mode: "append" (add to base) or "replace" (override base)
Permission Mode
default: Requires approval for destructive operationsacceptEdits: Auto-approve Edit toolbypassPermissions: Auto-approve all tools (use with caution)plan: Show plan before execution
Tool Allowlist
Restrict tools to specific set:
{
"settings": {
"allowedTools": ["Read", "Grep", "Bash"]
}
}
Best Practices
- Always set
maxTurnsto prevent runaway loops - Use
allowedToolsfor security-sensitive agents - Keep system prompts concise and focused
- Test configuration changes locally