Configure Agentwise to suit your development workflow and optimize performance.
JSON-based settings and project registry
System-wide configuration options
Custom agent definitions and commands
Agentwise uses several configuration files to manage projects, settings, and agent definitions.
.agentwise-config.json
Sandboxed execution and permission bypass configuration
Location:
~/.agentwise-config.json (User home)
Example:
{
"version": "1.0.0",
"permissions": {
"bypassEnabled": true,
"safetyMode": "moderate",
"autoResponse": true,
"restrictedCommands": []
},
"workspace": {
"enableSandbox": true,
"restrictPaths": true,
"maxFileSize": 104857600,
"allowedPaths": ["~/agentwise/workspace"],
"deniedPaths": ["/etc", "/usr", "/bin", "/sbin"]
},
"monitoring": {
"enableTerminalMonitoring": true,
"verbosity": "normal",
"logRetention": 7
},
"tokenOptimization": {
"enabled": true,
"maxAgents": 5,
"contextWindow": 8000,
"cacheEnabled": true
}
}
projects.json
Central project registry with metadata and tracking
Location:
Root directory
Example:
{
"projects": {
"todo-app": {
"name": "todo-app",
"created": "2024-01-15T10:30:00Z",
"status": "active",
"phase": "development",
"agents": ["frontend", "backend", "database"]
}
}
}
config/settings.json
Global Agentwise configuration and preferences
Location:
config/settings.json
Example:
{
"tokenOptimization": {
"enabled": true,
"maxAgents": 3,
"contextWindow": 8000
},
"monitoring": {
"autoStart": true,
"port": 3001
},
"agents": {
"autoRegenerate": true,
"customPath": ".claude/agents"
}
}
.claude/
Agent definitions and custom commands
Location:
.claude/ directory
Example:
# Directory structure:
.claude/
āāā agents/
ā āāā frontend-specialist.md
ā āāā backend-specialist.md
ā āāā custom-agent.md
āāā commands/
ā āāā custom-create.ts
ā āāā custom-deploy.ts
āāā config.json
Set these environment variables to customize Agentwise behavior and defaults.
AGENTWISE_HOME
Override default installation directory
Example:
export AGENTWISE_HOME="/usr/local/agentwise"
AGENTWISE_BYPASS_PERMISSIONS
Enable permission bypass system globally
Example:
export AGENTWISE_BYPASS_PERMISSIONS="true"
CLAUDE_FLAGS
Default flags for Claude Code startup (deprecated - no longer needed)
Example:
export CLAUDE_FLAGS="--dangerously-skip-permissions --debug"
AGENTWISE_DEBUG
Enable detailed debug logging
Example:
export AGENTWISE_DEBUG="true"
MONITOR_PORT
Custom port for monitoring dashboard
Example:
export MONITOR_PORT="3002"
Follow these steps to properly configure Agentwise for your environment.
Create basic configuration structure
# Create configuration directory
mkdir -p config
# Initialize projects registry
echo '{"projects": {}}' > projects.json
# Create .claude directory structure
mkdir -p .claude/agents .claude/commands
Configure environment variables
# Add to your shell profile (.bashrc, .zshrc, etc.)
export AGENTWISE_HOME=/path/to/agentwise
export CLAUDE_FLAGS="--dangerously-skip-permissions"
# Reload shell
source ~/.zshrc # or ~/.bashrc
Test that everything is properly configured
# Start Claude Code with configuration
claude $CLAUDE_FLAGS
# Test Agentwise commands
/projects
/monitor
For advanced users, additional configuration options are available:
Your Agentwise configuration is now set up. Ready to start building?