Worker System
Production-ready automated task execution using AI agents.Overview
The AnyTask Worker System enables automated task execution using AI agents. Workers run continuously, monitoring for tasks that match workflow triggers, then automatically implementing them using Claude Code. Most users should use the built-in workflows - they’re production-ready and cover common development scenarios. For custom automation needs, see the Complete Guide for writing your own workflows.Key Features
- Built-in Workflows - Four production-ready workflows included with CLI
- AI-Powered Execution - Uses Claude Code for intelligent task implementation
- Event-Driven - Triggers on task events (created, updated, status changed)
- Zero Configuration - Works out of the box with sensible defaults
- Error Handling - Graceful failure handling with automatic notifications
Built-in Workflows
The CLI includes four production-ready workflows. Simply start the worker and they’re available immediately - no configuration needed.1. Dry Run (dry_run)
Purpose: Test workflow execution without making real changes
When to use: Testing worker setup, validating workflows, CI/CD validation
Triggers:
- Any task created or updated to
todostatus
- Simulates task analysis with Claude
- Simulates implementation (no actual file changes)
- Simulates linting and testing
- Simulates git commit
- Marks task as
done - Posts detailed simulation logs to task
- Fast execution
- No API costs (uses dry-run actions)
- Safe for testing
- Validates workflow orchestration
2. Local Development (local_dev)
Purpose: Quick implementation on current repository state
When to use: Rapid iterations, local testing, simple fixes
Triggers:
- Any task created or updated to
todostatus
- Analyzes task with Claude Haiku
- Posts analysis to task
- Implements changes with Claude Code
- Runs linting (
make lint) - Runs tests (
make test) - Commits all changes
- Marks task as
done
claude-haiku-4-5-20251001
Key Features:
- No branch switching (works on current state)
- Fast execution with Haiku model
- Continues even if lint/test fail
- Perfect for iterative development
3. Feature Development (feature_dev)
Purpose: Full feature implementation with PR creation
When to use: New features that need code review
Triggers:
- Tasks with
featurelabel, statustodo
- Creates feature branch (
feature/TASK-123-...) - Analyzes task requirements
- Posts implementation plan
- Implements feature with Claude Code
- Commits changes
- Pushes branch to remote
- Creates GitHub pull request
- Updates task with PR link
- Marks task as
done
claude-haiku-4-5-20251001
Key Features:
- Automatic branch creation
- GitHub PR creation with detailed description
- PR includes task identifier for tracking
- Dependency caching for faster execution
4. Feature with Quality Control (feature_dev_with_check)
Purpose: Enterprise-grade feature development with quality gates
When to use: Production features requiring quality assurance
Triggers:
- Tasks with
featurelabel, statustodo
- Verifies
make checkcommand exists (or lint/typecheck/test) - Creates blocking task if quality commands missing
- Checks master branch is clean
- Creates cleanup task if uncommitted changes found
- Runs quality checks on master
- Creates fix task if quality checks fail
- Creates feature branch
- Analyzes task with quality considerations
- Implements feature
- Runs post-implementation quality checks
- Fails if quality checks don’t pass
- Commits only if all checks pass
- Marks task as
done
claude-haiku-4-5-20251001
Key Features:
- Automatic quality gate setup
- Blocks on quality issues
- Creates dependency tasks automatically
- Ensures clean master branch
- Post-implementation validation
- Enterprise-ready quality control
make lint- Run lintingmake typecheck- Run type checkingmake test- Run testsmake check- Run all checks (or individual commands)
Quick Start
1. Install AnyTask CLI
2. Set Up Authentication
3. Get Your Agent ID
- Visit https://anyt.dev/home/agents
- Create a new agent if needed
- Copy your agent identifier (e.g.,
agent-xxx)
4. Start Worker
5. Create a Task
Choosing the Right Workflow
| Workflow | Use Case | Quality Gates | PR Creation | Branch Management |
|---|---|---|---|---|
dry_run | Testing/validation | No | No | No |
local_dev | Quick iterations | Optional (continues on fail) | No | No |
feature_dev | Standard features | No | Yes | Automatic |
feature_dev_with_check | Production features | Yes (blocks on failure) | No | Automatic |
- Testing setup? Use
dry_run - Quick fix on current branch? Use
local_dev - New feature needing PR? Use
feature_dev - Production feature with quality requirements? Use
feature_dev_with_check
Worker Output Example
Monitoring and Debugging
View Workflow Attempts
View Task Timeline
Worker Logs
The worker outputs real-time logs to stdout. For production, redirect to a file or use systemd:Production Deployment
For production use, run workers as system services:Common Issues
”No workflows loaded”
Cause: Worker can’t find workflow files Solution: Built-in workflows are automatically loaded. If using custom workflows, check the path:“No tasks available”
Cause: No tasks match workflow triggers Solution: Check task status and labels:“Quality check failed” (feature_dev_with_check only)
Cause: Quality commands don’t exist or are failing Solution: The workflow automatically creates setup/fix tasks. Complete those first:Advanced Usage
For advanced scenarios including:- Writing custom workflows
- Custom actions and steps
- Complex trigger conditions
- Multi-job workflows
- Error handling strategies
- Secrets management
Next Steps
Quick Start
Get started with workers in 5 minutes
Complete Guide
Write custom workflows and advanced usage
Authentication
Production security best practices
CLI Reference
Worker command documentation
Support
- Documentation: Complete Worker Guide
- CLI Reference: Worker Commands
- Email: [email protected]