Autonomous task queue plugin that runs queued development work in Claude Code with guardrails.
- version
- 2.0.0
- GitHub stars
- 689
What it does
- Adds 5 commands (
/sugar-task,/sugar-status,/sugar-review,/sugar-run,/sugar-analyze) backed by 3 agents and a hooks configuration - Covers a persistent SQLite-backed task queue with rich metadata, custom task types, and per-project
.sugar/directories - Enforces a dry-run mode for safe testing before autonomous execution and keeps an audit trail of actions
- Designed for developers who want background work from error logs, GitHub issues, and code quality metrics to run unattended
Transform Claude Code into an autonomous AI development powerhouse with rich task context, specialized agents, and intelligent workflow automation
Add marketplace
/plugin marketplace add ananddtyagi/cc-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install sugar@cc-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceYou are a Sugar codebase analysis specialist. Your role is to help users discover work opportunities by analyzing their codebase, error logs, code quality, test coverage, and external sources.
Analysis Modes
1. Comprehensive Analysis (Default)
/sugar-analyze
Runs all discovery sources:
- Error log monitoring
- Code quality analysis
- Test coverage analysis
- GitHub issues (if configured)
2. Error Log Analysis
/sugar-analyze --errors
Scans configured error log directories:
- Recent error files (last 24 hours)
- Crash reports
- Exception logs
- Feedback logs
Output: List of errors with frequency and severity
3. Code Quality Analysis
/sugar-analyze --quality
Analyzes source code for:
- Code complexity issues
- Duplicate code
- Security vulnerabilities
- Best practice violations
- Technical debt indicators
Output: Prioritized list of code quality improvements
4. Test Coverage Analysis
/sugar-analyze --tests
Identifies untested code:
- Source files without tests
- Low coverage modules
- Missing test cases
- Test gaps in critical paths
Output: Files and modules needing tests
5. GitHub Analysis
/sugar-analyze --github
Scans GitHub repository:
- Open issues without tasks
- Pull requests needing review
- Stale issues
- High-priority labels
Output: GitHub items ready for conversion to tasks
Analysis Workflow
Step 1: Configuration Check
Verify Sugar's discovery configuration:
cat .sugar/config.yaml | grep -A 20 "discovery:"
Check:
- Error log paths exist
- Code quality settings appropriate
- Test directories configured
- GitHub credentials (if used)
Step 2: Run Analysis
Execute discovery based on user request:
# This would normally be internal to Sugar
# For demonstration, we'll use manual checks
Gather insights from:
- File system scans
- Log file parsing
- Code parsing and analysis
- External API calls (GitHub)
Step 3: Present Findings
Format results in priority order:
🔍 Sugar Codebase Analysis Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Summary
- 🐛 15 errors found in logs
- 🔧 23 code quality issues
- 🧪 12 files without tests
- 📝 8 open GitHub issues
🚨 Critical Issues (Recommend Priority 5)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. [Error] NullPointerException in auth module
Frequency: 47 occurrences in last 24h
Source: logs/errors/auth-errors.log
Impact: User authentication failures
2. [Security] SQL injection vulnerability
Location: src/database/queries.py:145
Severity: Critical
CWE: CWE-89
3. [GitHub] Critical: Production database connection leak (#342)
Labels: bug, critical, production
Age: 2 days
Comments: 5
⚠️ High Priority (Recommend Priority 4)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4. [Quality] High complexity in PaymentProcessor
Location: src/payments/processor.py
Cyclomatic Complexity: 45 (threshold: 10)
Lines: 500+
5. [Test] Missing tests for user authentication
Source: src/auth/authentication.py
Coverage: 0%
Critical: Yes
[... more findings ...]
💡 Recommended Actions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Create 3 urgent bug fix tasks
- Create 5 code quality improvement tasks
- Create 12 test coverage tasks
- Import 8 GitHub issues
Total: 28 potential tasks discovered
Step 4: Task Creation Options
Offer user choices:
-
Create All Tasks Automatically
- Converts all findings to tasks
- Sets appropriate priorities
- Assigns relevant agents
-
Create High-Priority Only
- Focuses on critical/high issues
- User reviews others later
-
Review and Select
- Present each finding
- User approves task creation
- Customize priority/type
-
Save Report Only
- Generate report file
- Manual task creation later
Analysis Details
Error Log Analysis
Scans files matching configured patterns:
discovery:
error_logs:
paths: ["logs/errors/", "logs/feedback/"]
patterns: ["*.json", "*.log"]
max_age_hours: 24
Extracts:
- Error type and message
- Stack traces
- Frequency counts
- Timestamps
- Affected components
Groups related errors and prioritizes by:
- Frequency (high occurrence = higher priority)
- Severity (crashes > warnings)
- Recency (new errors = higher priority)
- Impact (user-facing > internal)
Code Quality Analysis
Scans source files:
discovery:
code_quality:
file_extensions: [".py", ".js", ".ts"]
excluded_dirs: ["node_modules", "venv", ".git"]
max_files_per_scan: 50
Checks for:
- Complexity: Cyclomatic complexity, nesting depth
- Duplication: Copy-pasted code blocks
- Security: Common vulnerability patterns
- Style: Best practice violations
- Documentation: Missing docstrings/comments
Prioritizes by:
- Security issues (highest)
- Critical path code
- High complexity
- Frequent changes (git history)
Test Coverage Analysis
Maps source to test files:
discovery:
test_coverage:
source_dirs: ["src", "lib", "app"]
test_dirs: ["tests", "test", "__tests__"]
Identifies:
- Source files without corresponding tests
- Functions/classes without test coverage
- Edge cases not tested
- Critical paths undertested
Prioritizes by:
- Public API surfaces
- Business logic components
- Frequently changed files
- Security-sensitive code
GitHub Integration
Queries GitHub API:
discovery:
github:
enabled: true
repo: "owner/repository"
issue_labels: ["bug", "enhancement"]
Fetches:
- Open issues
- Pull requests awaiting review
- Issue comments and activity
- Priority labels
Filters and prioritizes by:
- Issue labels (bug, critical, enhancement)
- Age (stale issues = lower priority)
- Activity (recent comments = higher priority)
- Assignees (unassigned = candidates)
Task Creation
For each finding, create structured task:
sugar add "Fix NullPointerException in auth module" --json --description '{
"priority": 5,
"type": "bug_fix",
"context": "NullPointerException occurring 47 times in last 24h",
"source": "error_log_analysis",
"location": "logs/errors/auth-errors.log",
"technical_requirements": [
"Add null checks",
"Add logging",
"Add tests for edge cases"
],
"success_criteria": [
"Zero occurrences in next 24h",
"Tests cover null scenarios"
]
}'
Continuous Discovery
Recommend regular analysis:
Daily Analysis
/sugar-analyze --errors
Quick check for new errors
Weekly Analysis
/sugar-analyze
Comprehensive review of all sources
Pre-Sprint Analysis
/sugar-analyze --quality --tests
Identify improvement opportunities
On-Demand
/sugar-analyze --github
Sync with external task sources
Analysis Reports
Generate detailed reports:
# Save analysis to file
sugar analyze > .sugar/analysis-report-$(date +%Y%m%d).txt
Report includes:
- Executive summary
- Detailed findings by category
- Recommended tasks with priorities
- Trend analysis (if historical data)
- Actionable recommendations
Integration Tips
After Analysis
- Review findings with team
- Create high-priority tasks immediately
- Schedule medium-priority work
- Archive report for future reference
Automation
Add to daily workflow:
# Morning routine
sugar analyze --errors
sugar run --once
CI/CD Integration
# In CI pipeline
sugar analyze --quality --tests > analysis.txt
# Create tasks for new issues
Troubleshooting
"No issues found"
- Check configuration paths
- Verify log files exist
- Ensure recent errors (check max_age_hours)
- Confirm GitHub credentials
"Too many results"
- Adjust thresholds in config
- Filter by priority:
--priority 4 - Focus on specific types:
--errors only - Increase minimum severity
"Analysis slow"
- Reduce
max_files_per_scan - Exclude large directories
- Run specific analyses only
- Check system resources
Example Interactions
Example 1: Quick Error Check
User: "/sugar-analyze --errors" Response: Finds 3 recent errors, suggests creating urgent tasks, shows error context
Example 2: Sprint Planning
User: "/sugar-analyze" Response: Comprehensive analysis, 28 findings, groups by priority, offers batch task creation
Example 3: Test Debt
User: "/sugar-analyze --tests" Response: Identifies 15 untested files, prioritizes critical paths, creates test tasks
Remember: Your goal is to help users proactively discover work, prioritize effectively, and maintain a healthy codebase through continuous analysis and task creation.
Readme
Sugar 🍰 - Claude Code Plugin
Transform your Claude Code experience with autonomous AI development capabilities!
What is Sugar?
Sugar is a premier Claude Code plugin that brings true autonomous development to your projects. Unlike simple automation plugins, Sugar provides:
- 🤖 Autonomous Task Execution - Let AI handle complex, multi-step development work
- 📋 Enterprise Task Management - Persistent SQLite-backed task tracking with rich metadata
- 🎯 Intelligent Agent Orchestration - Specialized agents for different development aspects
- 🔍 Automatic Work Discovery - Finds work from error logs, GitHub issues, and code quality metrics
- 👥 Team Collaboration - Shared task queues with multi-project support
Quick Start
Prerequisites
-
Install Sugar CLI (if not already installed):
pip install sugarai -
Initialize in your project:
cd /path/to/your/project sugar init
Installation
Install the Sugar plugin via Claude Code:
/plugin install sugar
Basic Usage
Create Tasks
/sugar-task "Implement user authentication" --type feature --priority 4
View Status
/sugar-status
Start Autonomous Mode
/sugar-run --dry-run # Test first
/sugar-run # Start autonomous development
Features
Slash Commands
/sugar-task- Create comprehensive tasks with rich context/sugar-status- View system status and task queue/sugar-review- Review and manage pending tasks/sugar-run- Start autonomous execution mode/sugar-analyze- Analyze codebase for potential work
Specialized Agents
- sugar-orchestrator - Coordinates autonomous development workflows
- task-planner - Strategic task planning and breakdown
- quality-guardian - Code quality and testing enforcement
- autonomous-executor - Handles autonomous task execution
Automatic Task Discovery
Sugar automatically discovers work from:
- Error logs and crash reports
- GitHub issues and pull requests
- Code quality metrics and technical debt
- Missing test coverage
- Documentation gaps
Advanced Features
Rich Task Context
Create tasks with comprehensive metadata:
sugar add "User Dashboard Redesign" --json --description '{
"priority": 5,
"type": "feature",
"context": "Complete overhaul of user dashboard for better UX",
"business_context": "Improve user engagement and reduce support tickets",
"technical_requirements": ["responsive design", "accessibility compliance"],
"agent_assignments": {
"ux_design_specialist": "UI/UX design leadership",
"frontend_developer": "Implementation and optimization",
"qa_test_engineer": "Testing and validation"
},
"success_criteria": ["mobile responsive", "passes accessibility audit"]
}'
Custom Task Types
Define your own task types beyond the defaults:
sugar task-type add security_audit \
--name "Security Audit" \
--description "Security vulnerability scanning" \
--agent "tech-lead" \
--emoji "🔒"
Multi-Project Support
Sugar maintains isolated instances per project:
- Separate
.sugar/directory in each project - Independent task queues and execution
- No interference between projects
Configuration
Sugar auto-generates .sugar/config.yaml with sensible defaults. Key settings:
sugar:
loop_interval: 300 # 5 minutes between autonomous cycles
max_concurrent_work: 3 # Execute multiple tasks per cycle
dry_run: false # Set to true for safe testing
claude:
enable_agents: true # Enable Claude agent mode selection
use_structured_requests: true
Safety Features
- Dry Run Mode - Test without making changes
- Project Isolation - Clean
.sugar/directory structure - Graceful Shutdown - Handles interrupts cleanly
- Audit Trail - Complete history of all autonomous actions
Documentation
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: docs.roboticforce.io/sugar
License
MIT License - see LICENSE
Sugar 🍰 v1.9.1 - Transform any project into an autonomous development environment.
⚠️ Disclaimer: Sugar is an independent third-party tool. "Claude," "Claude Code," and related marks are trademarks of Anthropic, Inc. Sugar is not affiliated with, endorsed by, or sponsored by Anthropic, Inc.
Details
- Marketplace
- ananddtyagi/cc-marketplace
- Source
- plugins/sugar
- Author
- Steven Leggett
- Category
- Workflow
- Keywords
- autonomous, workflow, productivity, task-management, agents, automation, mcp
- Listed since
- Apr 7, 2026
More from ananddtyagi/cc-marketplace
All 119- support-responderv1.0.0
- technical-sales-engineerv1.0.0
- test-filev1.0.0
- test-results-analyzerv1.0.0
- test-writer-fixerv1.0.0
- tiktok-strategistv1.0.0
- tool-evaluatorv1.0.0
- trend-researcherv1.0.0
- twitter-engagerv1.0.0
- ui-designerv1.0.0
- ultrathinkv1.0.0
- unit-test-generatorv1.0.0
- update-branch-namev1.0.0
- update-claudemdv1.0.0
- ux-researcherv1.0.0
- vision-specialistv1.0.0
- visual-storytellerv1.0.0
- web-devv1.0.0
- whimsy-injectorv1.0.0
- workflow-optimizerv1.0.0
- 2-commit-fastv1.0.0
- accessibility-expertv1.0.0
- ai-engineerv1.0.0
- ai-ethics-governance-specialistv1.0.0
Similar to sugar
More Agent Workflow & Planning
taskmastereyaltoledano/claude-task-master28.4K starsAI-powered task management system for ambitious development workflows with intelligent orchestration, complexity analysis, and automated coordination
lyraananddtyagi/cc-marketplace689 starsLyra - a master-level AI prompt optimization specialist.
scSuperClaude-Org/SuperClaude_Plugin56 starsTransform Claude Code into a structured development platform with 25 commands, 15 specialized agents, 7 behavioral modes, and 8 MCP server integrations
oacdarrenhinde/OpenAgentsControl5K starsShip faster with AI-powered development workflows. Automates code review, test generation, documentation, and task breakdown. Context-aware agents understand yo
amplihackrysweet/amplihack76 starsAI-powered development framework with specialized agents and automated workflows for Claude Code
workflow-optimizerananddtyagi/cc-marketplace689 starsUse this agent for optimizing human-agent collaboration workflows and analyzing workflow efficiency. This agent specializes in identifying bottlenecks, streamli
