Sugar 🍰 - AI-powered autonomous development system for complex, multi-step development tasks
This plugin is not yet in any themed marketplace. To install it, you'll need to add it from GitHub directly.
Choose your preferred installation method below
A marketplace is a collection of plugins. Every plugin gets an auto-generated marketplace JSON for individual installation, plus inclusion in category and themed collections. Add a marketplace once (step 1), then install any plugin from it (step 2).
One-time setup for access to all plugins
When to use: If you plan to install multiple plugins now or later
Step 1: Add the marketplace (one-time)
/plugin marketplace add https://claudepluginhub.com/marketplaces/all.json
Run this once to access all plugins
Step 2: Install this plugin
/plugin install sugar@all
Use this plugin's auto-generated marketplace JSON for individual installation
When to use: If you only want to try this specific plugin
Step 1: Add this plugin's marketplace
/plugin marketplace add https://claudepluginhub.com/marketplaces/plugins/sugar.json
Step 2: Install the plugin
/plugin install sugar@sugar
A dev team that never stops.
Delegate full tasks to AI in the background. Sugar builds features, fixes bugs, and ships code while you focus on what matters.
Think of Sugar as Claude Code with persistence. Instead of one-off interactions:
You plan the work. Sugar executes it.
pip install sugarai
Or use uv (much faster):
uv pip install sugarai
# Initialize in your project
cd your-project
sugar init
# Add tasks to the queue
sugar add "Fix authentication timeout" --type bug_fix --urgent
sugar add "Add user profile settings" --type feature
# Start the loop
sugar run
Sugar will:
It keeps going until the queue is empty (or you stop it).
Or delegate from Claude Code:
/sugar-task "Fix login timeout" --type bug_fix --urgent
Sugar picks it up and works on it while you keep coding.
Simple tasks:
# Quick task creation
sugar add "Fix authentication timeout" --type bug_fix --urgent
sugar add "Add user profile settings" --type feature --priority 4
(recommended for best results):
sugar add "User Dashboard Redesign" --json --description '{
"priority": 5,
"type": "feature",
"context": "Complete overhaul of user dashboard with modern UI/UX patterns",
"business_context": "User feedback shows dashboard is confusing. Goal: reduce support tickets by 40%",
"technical_requirements": [
"React 18 with TypeScript",
"Responsive design (mobile-first)",
"Real-time data updates via WebSocket",
"Accessibility compliance (WCAG 2.1 AA)"
],
"agent_assignments": {
"ux_design_specialist": "Design system and user flows",
"frontend_developer": "Implementation and optimization",
"qa_test_engineer": "Testing and validation"
},
"success_criteria": [
"Dashboard loads in < 2 seconds",
"Mobile responsive on all breakpoints",
"Passes accessibility audit",
"User testing shows 90%+ satisfaction"
],
"requirements": [
"Dark mode support",
"Customizable widget layout",
"Export dashboard data to PDF"
]
}'
Why JSON format? Rich context gives Claude Code everything it needs to build production-quality features autonomously. The more detail you provide, the better the results.
# Start autonomous mode
sugar run
# Check progress anytime
sugar status
sugar list --status completed
# Sugar handles:
# - Writing the code
# - Running tests
# - Making commits
# - Creating PRs (if configured)
# - Updating GitHub issues
Task Management
Autonomous Execution
GitHub Integration
Smart Discovery
┌─────────────────────────────────────────────────────────┐
│ The Sugar Loop │
└─────────────────────────────────────────────────────────┘
You Priority Queue Sugar
│ │ │
│ sugar add "task" │ │
├─────────────────────────>│ │
│ │ │
│ │ Picks highest priority │
│ │<────────────────────────┤
│ │ │
│ │ │
│ Claude Code │
│ │ │
│ │ Executes in background │
│ │ (uses agents, tests) │
│ │ │
│ ▼ │
│ Completes Work │
│ │ │
│ │ Commits, updates │
│ │ │
│ │ Back to queue ────────>│
│ │ │
└──────────────────────────┴─────────────────────────┘
↻ Repeat
The continuous execution loop:
.sugar/config.yaml
is auto-generated on sugar init
. Key settings:
sugar:
dry_run: false # Set to true for testing
loop_interval: 300 # 5 minutes between cycles
max_concurrent_work: 3 # Parallel task execution
claude:
enable_agents: true # Use specialized Claude agents
discovery:
github:
enabled: true
repo: "user/repository"
error_logs:
enabled: true
paths: ["logs/errors/"]
code_quality:
enabled: true
Sugar has native Claude Code integration! Delegate work to Sugar directly from your Claude sessions.
/plugin install sugar@cdnsteve
Inside a Claude Code session:
You: "I'm working on authentication but need to fix these test failures.
Can you handle the test fixes while I finish the auth flow?"
Claude: "I'll create a Sugar task for the test fixes so you can keep coding."
/sugar-task "Fix authentication test failures" --type test --urgent
Why this is powerful: Claude Code handles your interactive work while Sugar autonomously fixes the tests in the background. No context switching.
You: "Found a memory leak in the cache module. Add it to the queue."
Claude:
/sugar-task "Fix memory leak in cache module" --json --description '{
"priority": 5,
"type": "bug_fix",
"context": "Memory usage grows unbounded in production",
"technical_requirements": ["Profile memory usage", "Add cleanup cycle"],
"agent_assignments": {
"tech_lead": "Investigate root cause and fix"
}
}'
Task created! You can check progress with /sugar-status
/sugar-task
- Create tasks with rich context/sugar-status
- Check queue and progress/sugar-run
- Start autonomous mode/sugar-review
- Review pending tasks/sugar-analyze
- Analyze code for potential workSugar includes an MCP server for advanced integration:
// In your Claude Code MCP settings
{
"mcpServers": {
"sugar": {
"command": "sugar",
"args": ["mcp"]
}
}
}
Enables:
Custom Task Types
sugar task-type add deployment --name "Deployment" --emoji "🚀"
sugar add "Deploy to staging" --type deployment
Complex Tasks with Context
sugar add "User Dashboard" --json --description '{
"priority": 5,
"context": "Complete dashboard redesign",
"agent_assignments": {
"ux_design_specialist": "UI/UX design",
"frontend_developer": "Implementation",
"qa_test_engineer": "Testing"
}
}'
Multiple Projects
# Run Sugar on multiple projects simultaneously
cd /path/to/project-a && sugar run &
cd /path/to/project-b && sugar run &
cd /path/to/project-c && sugar run &
Sugar not finding Claude CLI?
# Specify Claude path in .sugar/config.yaml
claude:
command: "/full/path/to/claude"
Tasks not executing?
# Check dry_run is disabled
cat .sugar/config.yaml | grep dry_run
# Monitor logs
tail -f .sugar/sugar.log
# Test single cycle
sugar run --once
Need help?
Contributions welcome! See CONTRIBUTING.md for guidelines.
# Development setup
git clone https://github.com/cdnsteve/sugar.git
cd sugar
# Install with uv (recommended)
uv pip install -e ".[dev,test,github]"
# Or with pip
pip install -e ".[dev,test,github]"
# Run tests
pytest tests/ -v
# Format code
black .
Sugar v2.0.1 - Autonomous development for any project
⚠️ Sugar is provided "AS IS" without warranty. Review all AI-generated code before use. See TERMS.md for details.
2.0.0