Built-in Workflows
AnyTask includes production-ready built-in workflows for common development scenarios. Use them immediately without any configuration.Overview
Built-in workflows are included with the CLI and can be used right away:Workflow Comparison
| Feature | local_dev | remote_dev | dry_run | pr_monitor |
|---|---|---|---|---|
| Clone Repo | No | Yes | No | No |
| Branch Management | No | Yes | No | No |
| PR Creation | No | Yes | No | No |
| Real Code Changes | Yes | Yes | No | No |
| AI Implementation | Yes | Yes | Simulated | No |
| Best For | Quick iterations | Full feature workflow | Testing setup | PR status sync |
| Timeout | 45 min | 45 min | 10 min | 15 min |
Local Development (local_dev)
Quick iterations on your current branch without branch switching or PR creation.
When to Use
- You’re already on a feature branch
- Quick bug fixes that don’t need PR review
- Iterating rapidly on a local feature
- Personal projects without PR workflow
What It Does
- Fetch & Sync - Mark task active, pull task locally, read task.md
- Plan - Create implementation plan if none exists (auto-approved)
- Implement - Execute implementation with coding agent
- Commit - Commit changes to current branch
- Complete - Mark task as done
Usage
Requirements
git- Version control- Coding agent - Claude, Codex, Cursor, or Gemini
- Must be in a git repository
Remote Development (remote_dev)
Full development workflow with automatic repo cloning, branch creation, and PR submission.
When to Use
- Working on team projects with PR workflow
- Tasks in remote repositories you don’t have cloned
- When you want full automation from task to PR
- CI/CD environments running autonomous agents
What It Does
- Clone - Automatically clones project repository
- Branch - Creates task-specific branch
- Fetch & Sync - Pull task locally, read task.md
- Plan - Create implementation plan if none exists (auto-approved)
- Implement - Execute implementation with coding agent
- Commit & PR - Commit changes, push to remote, create PR
- Complete - Mark task as done with PR link
Usage
Requirements
git- Version controlgh- GitHub CLI for PR creation- Coding agent - Claude, Codex, Cursor, or Gemini
- Project must be linked to GitHub
PR Output
The workflow creates a PR with:- Title:
{TASK-ID}: {Task Title} - Body: Task specification, implementation summary, files modified
Dry Run (dry_run)
Test your worker setup without making any real changes or API calls.
When to Use
- First-time setup verification
- Testing workflow configuration
- CI/CD pipeline validation
- Debugging workflow issues without costs
- Training or demos
What It Does
- Analyze (simulated) - Simulates task analysis
- Post Analysis - Posts simulated analysis to task notes
- Implement (simulated) - Simulates code implementation
- Lint & Test (simulated) - Simulates quality checks
- Commit (simulated) - Simulates git commit
- Complete - Marks task as done
Usage
Key Features
- No real file changes or commits
- No AI API calls (cost-free testing)
- Fast execution (~10 minutes max)
- Posts simulation results to task notes
PR Monitor (pr_monitor)
Sync PR status from GitHub and automatically update linked tasks.
When to Use
- Periodic sync of PR statuses
- Batch updating task statuses based on PR outcomes
- Keeping AnyTask in sync with GitHub
What It Does
- List - Lists all pending (open) PRs from AnyTask backend
- Sync - Syncs each PR’s status from GitHub
- Update - Updates linked tasks when PRs are merged (→ done) or closed (→ blocked)
- Report - Posts summary of processed PRs
Usage
Requirements
gh- GitHub CLI (must be authenticated)- Worker authentication token
Choosing the Right Workflow
Decision Tree
Quick Selection Guide
| Scenario | Recommended Workflow |
|---|---|
| First time setting up worker | dry_run |
| Working on personal project | local_dev |
| Team project with PR review | remote_dev |
| Quick bug fix on feature branch | local_dev |
| Full automation from task to PR | remote_dev |
| Testing workflow configuration | dry_run |
| Syncing PR statuses | pr_monitor |
Common Workflow Phases
All implementation workflows (local_dev, remote_dev) share common phases:
Phase 1: Fetch & Sync
- Mark task as
activestatus - Pull task to local
.anyt/tasks/{ID}/directory - Read
task.mdand context files
Phase 2: Plan Validation
- Check if plan has
changes_requestedstatus → block if so - Check if plan is already
approved→ proceed to implementation - If no approved plan → create one and auto-approve
Phase 3: Implementation
The AI follows the implementation plan:Phase 4: Complete
- Commit changes (and create PR for
remote_dev) - Sync final task state to server
- Mark task as
done