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.jsonSandboxed 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.jsonCentral project registry with metadata and tracking
Location:
Root directoryExample:
{
"projects": {
"todo-app": {
"name": "todo-app",
"created": "2024-01-15T10:30:00Z",
"status": "active",
"phase": "development",
"agents": ["frontend", "backend", "database"]
}
}
}config/settings.jsonGlobal Agentwise configuration and preferences
Location:
config/settings.jsonExample:
{
"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/ directoryExample:
# Directory structure:
.claude/
āāā agents/
ā āāā frontend-specialist.md
ā āāā backend-specialist.md
ā āāā custom-agent.md
āāā commands/
ā āāā custom-create.ts
ā āāā custom-deploy.ts
āāā config.jsonSet these environment variables to customize Agentwise behavior and defaults.
AGENTWISE_HOMEOverride default installation directory
Example:
export AGENTWISE_HOME="/usr/local/agentwise"AGENTWISE_BYPASS_PERMISSIONSEnable permission bypass system globally
Example:
export AGENTWISE_BYPASS_PERMISSIONS="true"CLAUDE_FLAGSDefault flags for Claude Code startup (deprecated - no longer needed)
Example:
export CLAUDE_FLAGS="--dangerously-skip-permissions --debug"AGENTWISE_DEBUGEnable detailed debug logging
Example:
export AGENTWISE_DEBUG="true"MONITOR_PORTCustom 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/commandsConfigure 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 ~/.bashrcTest that everything is properly configured
# Start Claude Code with configuration
claude $CLAUDE_FLAGS
# Test Agentwise commands
/projects
/monitorFor advanced users, additional configuration options are available:
Your Agentwise configuration is now set up. Ready to start building?