feat: update .gitignore to include flows directory and adjust clawteam templates exclusion; enhance LEARNINGS.md and RULES.md with critical spawn method guidelines; revise TOOLS.md to emphasize tmux usage; modify SKILL.md files to prohibit subprocess backend; increase memory limit in docker-compose.yml

This commit is contained in:
2026-04-07 09:59:41 +07:00
parent c4c881bba2
commit 9ec15cb4ea
7 changed files with 80 additions and 11 deletions
+19 -4
View File
@@ -58,12 +58,16 @@ clawteam team spawn-team <team-name> -d "<description>" -n leader
# Then create tasks matching template.tasks
clawteam task create <team> "<task>" -o <owner>
# Spawn workers matching template.agents
clawteam spawn subprocess openclaw --team <team> --agent-name <name> --task "..."
# ❌ WRONG: NEVER use subprocess — agents die immediately after shell exits
# clawteam spawn subprocess openclaw --team <team> --agent-name <name> --task "..."
# ✅ CORRECT: always use tmux openclaw for persistent agent sessions
clawteam spawn tmux openclaw --team <team> --agent-name <name> --task "..."
```
## ClawTeam Multi-Agent Orchestration
> **Important:** ClawTeam CLI command is `clawteam`. ALWAYS specify `tmux openclaw` or `subprocess openclaw` as backend+agent — default `claude` is not available.
> **Important:** ClawTeam CLI command is `clawteam`. **ALWAYS** specify `tmux openclaw` as the backend — **NEVER** use `subprocess`. Default `claude` is not available.
> Official repo: https://github.com/HKUDS/ClawTeam
### ⚠️ CRITICAL: Spawn Syntax
@@ -246,8 +250,11 @@ clawteam task create <team> "<task>" -o <owner>
clawteam spawn tmux openclaw --team <team> --agent-name <name> --agent-type coder \
--task "Do X. After done: clawteam task update <team> <TASK_ID> --status completed"
# Or with subprocess (faster, no tmux monitor)
clawteam spawn subprocess openclaw --team <team> --agent-name <name> --task "..."
# ❌ WRONG — subprocess agents die immediately; never use this
# clawteam spawn subprocess openclaw --team <team> --agent-name <name> --task "..."
# ✅ ALWAYS use tmux (persistent, monitorable, survives network blips)
# clawteam spawn tmux openclaw --team <team> --agent-name <name> --task "..."
# View board
clawteam board show <team>
@@ -259,3 +266,11 @@ clawteam task update <team> <task-id> --status completed
- `--model` (model is set by OpenClaw config, not clawteam)
- `--timeout` (no timeout flag on spawn)
- `-m` (conflicts with clawteam's own options)
### 📌 Critical Reminders
- **ALWAYS use `tmux openclaw`** — `subprocess` agents die immediately
- **Set task dependencies**: `clawteam task update <team> <id> --add-blocked-by <dep-id>`
- **Verify agents alive**: `tmux list-sessions | grep clawteam`
- **Monitor progress**: `clawteam board attach <team>`
- **Check in-progress tasks**: `clawteam task list <team> --status in_progress`
- **Unblock stuck tasks**: use `clawteam task update <team> <id> --status pending` after resolving blocker