Overview
Automagik Workflows enables programmatic execution of Claude Code workflows with real-time progress tracking. Run workflows via API, monitor execution status, and integrate Claude’s powerful automation into your applications. Think of Automagik Workflows as the bridge between your applications and Claude Code’s automation capabilities.Key Features
Programmatic Execution
Execute workflows via API or command line
Visual Progress
Real-time progress tracking with visual feedback
Workflow Management
List, execute, and monitor Claude workflows
Result Streaming
Stream execution results in real-time
Status Tracking
Track workflow status and completion
Error Handling
Graceful error handling and reporting
Use Cases
1. Automated Code Generation
2. CI/CD Integration
3. Scheduled Automation
4. Interactive Development
Quick Start
Installation
Configuration
Create~/.automagik/workflows.json:
Environment Variables
List Workflows
Discover Available Workflows
Workflow Information
Execute Workflows
Basic Execution
Interactive Execution
Background Execution
Progress Tracking
Real-Time Progress
Progress Callbacks
Monitor Executions
Check Status
View Execution History
Execution Logs
Workflow Results
Get Results
Export Results
Control Execution
Pause and Resume
Cancel Execution
Retry Failed
Integration Patterns
Pattern 1: CI/CD Integration
Pattern 2: Scheduled Automation
Pattern 3: Webhook Trigger
Advanced Features
Custom Workflows
Workflow Templates
Parallel Execution
API Reference
Execute Workflows
Manage Executions
Workflow Operations
Best Practices
Use Parameters
Make workflows reusable with parameters
Track Progress
Enable progress tracking for visibility
Handle Errors
Configure error notifications and retries
Background Long Tasks
Run long workflows in background
Troubleshooting
Workflow not found
Workflow not found
Solutions:
- Check workflow path configuration
- Verify workflow exists:
automagik-workflows list - Check file permissions
- Review workflows directory
Execution hanging
Execution hanging
Solutions:
- Check execution status
- Review logs:
automagik-workflows logs <id> - Verify timeout settings
- Check Claude process status
Progress not updating
Progress not updating
Solutions:
- Verify progress tracking enabled
- Check update interval settings
- Test with different format
- Review connection to workflow

