Get Sugar up and running in your project in just a few minutes!
💡 Need help anytime? Run sugar help for a complete overview and quick reference guide.
Before installing Sugar, make sure you have:
- Python 3.11 or higher
- Claude Code CLI installed (installation guide)
- Git (for project management)
# Install via npm (recommended)
npm install -g @anthropic-ai/claude-code-cli
# Verify installation
claude --versionpip install sugarai# Clone the repository
git clone https://github.com/roboticforce/sugar.git
cd sugar
# Install Sugar
pip install -e .Navigate to your project directory and initialize Sugar:
cd /path/to/your/project
sugar initThis creates:
.sugar/directory with configuration and database.sugar/config.yaml- customizable settingslogs/errors/- directory for error log monitoring
To get the most out of Sugar, add the MCP server to Claude Code:
claude mcp add sugar -- sugar mcp memoryThis gives Claude Code access to your project's memory - decisions, preferences, error patterns, and more.
Sugar persists context across sessions so your AI agent remembers decisions, preferences, and patterns.
# Store a memory
sugar remember "Always use async/await in this project" --type preference
# Store a global guideline (available in all projects)
sugar remember --global "Use Kamal for all deployments" --type guideline
# Recall relevant context
sugar recall "deployment strategy"Memory is also available through the MCP server - Claude Code can read and write project memory directly during conversations.
Sugar accepts tasks in two ways:
📝 Manual Task Addition (CLI)
# Add a feature task
sugar add "Implement user authentication" --type feature --priority 4
# Add an urgent bug fix
sugar add "Fix memory leak in auth module" --type bug_fix --urgent
# Add a test task
sugar add "Add unit tests for payments" --type test --priority 3🤖 Autonomous Discovery (Automatic) Sugar will also automatically discover work from:
- Error logs in
logs/errors/ - Code quality analysis
- Missing test coverage
- GitHub issues (when configured)
# View system status
sugar status
# List all tasks
sugar list
# View specific task details
sugar view TASK_ID# Test run (safe mode - no actual changes)
sugar run --dry-run --once
# Start continuous autonomous development
sugar runEdit .sugar/config.yaml to customize Sugar for your project:
sugar:
# Core settings
dry_run: true # Set to false when ready for real execution
loop_interval: 300 # 5 minutes between cycles
max_concurrent_work: 3
# Claude CLI path (auto-detected)
claude:
command: "/path/to/claude"
timeout: 1800 # 30 minutes max per task
# Work discovery
discovery:
error_logs:
enabled: true
paths: ["logs/errors/"]
code_quality:
enabled: true
source_dirs: ["src", "lib", "app"]Sugar starts in dry-run mode by default:
- ✅ Safe to test and configure
- ✅ Shows what would be done without making changes
- ✅ Set
dry_run: falsewhen ready for autonomous operation
- Customize Configuration → See Configuration Best Practices
- Explore Commands → See CLI Reference
- Real Examples → See Examples
- Need Help? → See Troubleshooting
💡 Start Small: Begin with --dry-run --once to see what Sugar would do
💡 Monitor Logs: Check .sugar/sugar.log for detailed activity
💡 Project Isolation: Each project gets its own Sugar instance
💡 Safety First: Sugar excludes system paths and has multiple safety checks
Ready to supercharge your development workflow? 🚀