From tac
Sets up task-based multi-agent systems using shared task files for parallel execution, worktree isolation, and task coordination with status markers and tags.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tac:task-based-multiagentThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide creation of task-based multi-agent systems using shared task files and worktree isolation.
Guide creation of task-based multi-agent systems using shared task files and worktree isolation.
Agents share a task file that acts as a coordination mechanism:
## To Do
- [ ] Task A
- [ ] Task B
## In Progress
- [🟡 abc123] Task C - being worked on
## Done
- [✅ def456] Task D - completed
tasks.md:
# Tasks
## Git Worktree {worktree-name}
## To Do
[] Pending task description # Available
[⏰] Blocked task (waits for above) # Blocked
[] Task with #opus tag # Model override
[] Task with #adw_plan_implement tag # Workflow override
## In Progress
[🟡, adw_12345] Task being processed # Claimed by agent
## Done
[✅ abc123, adw_12345] Completed task # Commit hash saved
[❌, adw_12345] Failed task // Error reason # Error captured
| Marker | Meaning | State |
|---|---|---|
[] | Pending | Available for pickup |
[⏰] | Blocked | Waiting for previous |
[🟡, {id}] | In Progress | Being processed |
[✅ {hash}, {id}] | Complete | Finished successfully |
[❌, {id}] | Failed | Error occurred |
Tags modify agent behavior:
| Tag | Effect |
|---|---|
#opus | Use Opus model |
#sonnet | Use Sonnet model |
#adw_plan_implement | Complex workflow |
#adw_build | Simple build workflow |
┌─────────────────────────────────────────┐
│ CRON TRIGGER │
│ (polls tasks.md every N seconds) │
└─────────────────┬───────────────────────┘
│
┌─────────┼─────────┐
│ │ │
v v v
┌────────┐ ┌────────┐ ┌────────┐
│ Task A │ │ Task B │ │ Task C │
│Worktree│ │Worktree│ │Worktree│
│ 1 │ │ 2 │ │ 3 │
└────────┘ └────────┘ └────────┘
# tasks.md
## To Do
[] First task to complete
[] Second task to complete
[⏰] Blocked until first completes
## In Progress
## Done
from pydantic import BaseModel
from typing import Literal, Optional, List
class Task(BaseModel):
description: str
status: Literal["[]", "[⏰]", "[🟡]", "[✅]", "[❌]"]
adw_id: Optional[str] = None
commit_hash: Optional[str] = None
tags: List[str] = []
worktree_name: Optional[str] = None
# adw_trigger_cron_tasks.py
def main():
while True:
tasks = parse_tasks_file("tasks.md")
pending = [t for t in tasks if t.status == "[]"]
for task in pending:
if not is_blocked(task):
# Mark as in progress
claim_task(task)
# Spawn subprocess
spawn_task_workflow(task)
time.sleep(5) # Poll interval
# adw_build_update_task.py (simple)
def main(task_id: str):
# Mark in progress
update_task_status(task_id, "[🟡]")
# Execute /build
response = execute_template("/build", task_description)
# Mark complete
if response.success:
update_task_status(task_id, "[✅]", commit_hash)
else:
update_task_status(task_id, "[❌]", error_reason)
Each task gets its own worktree:
git worktree add trees/{task_id} -b task-{task_id} origin/main
[🟡] immediately[⏰] tasks until dependencies complete## Multi-Agent System Setup
**Task File:** tasks.md
**Trigger Interval:** 5 seconds
**Max Concurrent:** 5 agents
### Components
1. Task file format with status markers
2. Data models (Task, Status, Tags)
3. Cron trigger script
4. Task workflow scripts
5. Worktree isolation
### Workflow Routing
- Default: adw_build_update_task.py
- #adw_plan_implement: adw_plan_implement_update_task.py
- #opus: Use Opus model
### Status Flow
[] -> [🟡, id] -> [✅ hash, id]
-> [❌, id] // error
Date: 2025-12-26 Model: claude-opus-4-5-20251101
npx claudepluginhub melodic-software/claude-code-plugins --plugin tacDesigns and implements multi-agent LLM systems using orchestrator patterns, parallel coordination, pipelines, hierarchical delegation, communication, and failure handling. For agent workflows and debugging failures.
Coordinates multi-agent work across plan/implement/test/review phases, fanning out 3+ independent workstreams in parallel. Includes a GO/NO-GO gate to assess whether parallelization is appropriate.
Provides patterns for multi-agent systems in Claude Code: job description method, shared folder communication, handbook consolidation, context management. Use for complex agent orchestrations.