Important
π ζζ£ε¨εε γBη«AIει ε ¬εΌθ΅γοΌδΌε¨ B η«ζη»ζ΄ζ°θͺε·±η Build in Public θΏη¨οΌζ₯ B η«ηζη AI δ½εε§γ
A Python CLI tool for coordinating multi-agent development workflows through shared JSON task files. Designed for use with OpenClaw and AI agent orchestration systems.
Three coordination modes for different workflows:
| Mode | Description | Use Case |
|---|---|---|
| Linear | Sequential pipeline with auto-advance | Bug fixes, simple features, step-by-step workflows |
| DAG | Dependency graph with parallel dispatch | Large features, spec-driven dev, complex dependencies |
| Debate | Multi-agent position + cross-review | Code reviews, architecture decisions, competing hypotheses |
- Python 3.12+ (stdlib only, no external dependencies)
- Data stored as JSON in
/home/ubuntu/clawd/data/team-tasks/(override withTEAM_TASKS_DIRenv var)
# Clone the repo
git clone https://github.com/win4r/team-tasks.git
# No pip install needed β it's a standalone script
python3 team-tasks/scripts/task_manager.py --helpFor OpenClaw skill integration, copy to your skills directory:
cp -r team-tasks/ /path/to/clawd/skills/team-tasks/A sequential pipeline where agents execute one after another in order.
TM="python3 scripts/task_manager.py"
# 1. Create project with pipeline order
$TM init my-api -g "Build REST API with tests and docs" \
-p "code-agent,test-agent,docs-agent,monitor-bot"
# 2. Assign tasks to each stage
$TM assign my-api code-agent "Implement Flask REST API: GET/POST/DELETE /items"
$TM assign my-api test-agent "Write pytest tests, target 90%+ coverage"
$TM assign my-api docs-agent "Write README with API docs and examples"
$TM assign my-api monitor-bot "Security audit and deployment readiness check"
# 3. Check what's next
$TM next my-api
# βΆοΈ Next stage: code-agent
# 4. Dispatch β work β save result β mark done
$TM update my-api code-agent in-progress
# ... agent does work ...
$TM result my-api code-agent "Created app.py with 3 endpoints"
$TM update my-api code-agent done
# βΆοΈ Next: test-agent (auto-advance!)
# 5. Check progress anytime
$TM status my-apiOutput example:
π Project: my-api
π― Goal: Build REST API with tests and docs
π Status: active | Mode: linear
βΆοΈ Current: test-agent
β
code-agent: done
Task: Implement Flask REST API
Output: Created app.py with 3 endpoints
π test-agent: in-progress
Task: Write pytest tests, target 90%+ coverage
β¬ docs-agent: pending
β¬ monitor-bot: pending
Progress: [ββββ] 2/4
Tasks declare dependencies and run in parallel when deps are met.
TM="python3 scripts/task_manager.py"
# 1. Create DAG project
$TM init my-feature -m dag -g "Build search feature with parallel workstreams"
# 2. Add tasks with dependencies
$TM add my-feature design -a docs-agent --desc "Write API spec"
$TM add my-feature scaffold -a code-agent --desc "Create project skeleton"
$TM add my-feature implement -a code-agent -d "design,scaffold" --desc "Implement API"
$TM add my-feature write-tests -a test-agent -d "design" --desc "Write test cases from spec"
$TM add my-feature run-tests -a test-agent -d "implement,write-tests" --desc "Run all tests"
$TM add my-feature write-docs -a docs-agent -d "implement" --desc "Write final docs"
$TM add my-feature review -a monitor-bot -d "run-tests,write-docs" --desc "Final review"
# 3. Visualize the DAG
$TM graph my-featureGraph output:
π my-feature β DAG Graph
ββ β¬ design [docs-agent]
β ββ β¬ implement [code-agent]
β β ββ β¬ run-tests [test-agent]
β β β ββ β¬ review [monitor-bot]
β β ββ β¬ write-docs [docs-agent]
β ββ β¬ write-tests [test-agent]
ββ β¬ scaffold [code-agent]
ββ β¬ implement (β see above)
Progress: [βββββββ] 0/7
# 4. Get ready tasks (parallel dispatch!)
$TM ready my-feature
# π’ Ready to dispatch (2 tasks):
# π design β agent: docs-agent
# π scaffold β agent: code-agent
# 5. Dispatch both in parallel, then mark done
$TM update my-feature design done
# π’ Unblocked: write-tests β auto-detected!
$TM update my-feature scaffold done
# π’ Unblocked: implement
# 6. Continue until all complete
$TM ready my-feature # Shows newly unblocked tasksKey DAG features:
readyreturns ALL tasks whose deps are satisfied β dispatch them simultaneouslyready --jsonincludesdepOutputsβ previous stage results to pass to agents- Automatic unblock notifications when a task completes
- Cycle detection on
addβ rejects tasks that would create circular dependencies - Partial failure: unrelated branches continue; only downstream tasks block
Send the same question to multiple agents, collect positions, cross-review, and synthesize.
TM="python3 scripts/task_manager.py"
# 1. Create debate project
$TM init security-review --mode debate \
-g "Review auth module for security vulnerabilities"
# 2. Add debaters with roles/perspectives
$TM add-debater security-review code-agent --role "security expert focused on injection attacks"
$TM add-debater security-review test-agent --role "QA engineer focused on edge cases"
$TM add-debater security-review monitor-bot --role "ops engineer focused on deployment risks"
# 3. Start initial round
$TM round security-review start
# π£οΈ Debate Round 1 (initial) started
# Outputs dispatch prompts for each debater
# 4. Collect initial positions
$TM round security-review collect code-agent "Found SQL injection in login()"
$TM round security-review collect test-agent "Missing input validation on email field"
$TM round security-review collect monitor-bot "No rate limiting on auth endpoints"
# β
Round 1 (initial) is complete.
# β‘οΈ Next: round security-review cross-review
# 5. Generate cross-review prompts
$TM round security-review cross-review
# π Each debater gets others' positions + review instructions
# 6. Collect cross-reviews
$TM round security-review collect code-agent "Agree on validation. Rate limiting is critical."
$TM round security-review collect test-agent "SQL injection is most severe. Adding rate limit tests."
$TM round security-review collect monitor-bot "Both findings valid. Recommending WAF as additional layer."
# 7. Synthesize all positions
$TM round security-review synthesize
# π§Ύ Outputs all initial positions + cross-reviews for final synthesisDebate workflow diagram:
Question β [Agent A] β Position A ββ
β [Agent B] β Position B ββ€ββ Cross-Review ββ Synthesis
β [Agent C] β Position C ββ
| Command | Mode | Usage | Description |
|---|---|---|---|
init |
all | init <project> -g "goal" [-m linear|dag|debate] |
Create project |
add |
dag | add <project> <task-id> -a <agent> -d <deps> |
Add task with deps |
add-debater |
debate | add-debater <project> <agent-id> [-r "role"] |
Add debater |
round |
debate | round <project> start|collect|cross-review|synthesize |
Debate actions |
status |
all | status <project> [--json] |
Show progress |
assign |
linear/dag | assign <project> <stage> "desc" |
Set task description |
update |
linear/dag | update <project> <stage> <status> |
Change status |
next |
linear | next <project> [--json] |
Get next stage |
ready |
dag | ready <project> [--json] |
Get dispatchable tasks |
graph |
dag | graph <project> |
Show dependency tree |
log |
linear/dag | log <project> <stage> "msg" |
Add log entry |
result |
linear/dag | result <project> <stage> "output" |
Save stage output |
reset |
linear/dag | reset <project> [stage] [--all] |
Reset to pending |
history |
linear/dag | history <project> <stage> |
Show log history |
list |
all | list |
List all projects |
| Status | Icon | Meaning |
|---|---|---|
pending |
β¬ | Waiting for dispatch |
in-progress |
π | Agent is working |
done |
β | Completed |
failed |
β | Failed (pipeline blocks downstream) |
skipped |
βοΈ | Intentionally skipped |
python3 scripts/task_manager.py init <project> \
--goal "Project description" \
--mode linear|dag|debate \
--pipeline "agent1,agent2,agent3" # linear only \
--workspace "/path/to/shared/dir" \
--force # overwrite existingThis tool is designed as an OpenClaw Skill. The orchestrating agent (AGI) dispatches tasks to worker agents via sessions_send and tracks state through the CLI.
Dispatch loop (linear):
1. next <project> --json β get next stage info
2. update <project> <agent> in-progress
3. sessions_send(agent, task) β dispatch to agent
4. Wait for agent reply
5. result <project> <agent> "..." β save output
6. update <project> <agent> done β auto-advances to next stage
7. Repeat
Dispatch loop (DAG):
1. ready <project> --json β get ALL dispatchable tasks
2. For each ready task (parallel):
a. update <project> <task> in-progress
b. sessions_send(agent, task + depOutputs)
3. On reply: result β update done β check newly unblocked
4. Repeat until all tasks complete
# β WRONG β "stage '1' not found"
python3 scripts/task_manager.py assign my-project 1 "Build API"
# β
CORRECT
python3 scripts/task_manager.py assign my-project code-agent "Build API"# β WRONG β "dependency 'design' not found"
$TM add my-project implement -a code-agent -d "design"
# β
CORRECT β add deps first
$TM add my-project design -a docs-agent --desc "Write spec"
$TM add my-project implement -a code-agent -d "design" --desc "Implement"# β WRONG
$TM round my-debate start
$TM add-debater my-debate new-agent # Error!
# β
CORRECT β add all debaters before starting
$TM add-debater my-debate agent-a
$TM add-debater my-debate agent-b
$TM round my-debate startProject files are stored as JSON at:
/home/ubuntu/clawd/data/team-tasks/<project>.json
Override with environment variable:
export TEAM_TASKS_DIR=/custom/pathteam-tasks/
βββ README.md # This file
βββ SKILL.md # OpenClaw skill definition
βββ SPEC.md # Enhancement spec (debate + workspace)
βββ scripts/
β βββ task_manager.py # Main CLI tool (Python 3.12+, stdlib only)
βββ docs/
βββ GAP_ANALYSIS.md # Comparison with Claude Code Agent Teams
βββ AGENT_TEAMS_OFFICIAL_DOCS.md # Reference documentation
MIT