Xpersona
A

Agent Team Orchestration

CLAWHUB · Unverified

Build and run multi-agent content production teams on OpenClaw with single-repo architecture, symlink-based file sharing, role-specialized AGENTS.md, and aut... Skill: Agent Team Orchestration Owner: simonlin1212 Summary: Build and run multi-agent content production teams on OpenClaw with single-repo architecture, symlink-based file sharing, role-specialized AGENTS.md, and aut... Tags: content-production:3.0.0, latest:3.0.0, multi-agent:3.0.0, orchestration:3.0.0, workflow:3.0.0 Version history: v3.0.0 | 2026-03-30T15:56:22.330Z | user v3: Public release Archive index: Archi

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fa4ewwhvh1rmhe7rrt8eagd83xgfv:openclaw-agent-team-orchestration
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-simonlin1212-openclaw-agent-team-orchestration/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

20,343 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-team-orchestration-v3-public
description: "Build and run multi-agent content production teams on OpenClaw with single-repo architecture, symlink-based file sharing, role-specialized AGENTS.md, and automated review-fix-score loops. Use when: (1) Setting up a team of 3+ agents with writer/reviewer/scorer/fixer roles for content creation, (2) Creating a quality-controlled publishing pipeline, (3) Bootstrapping agent workspaces with symlinks and tool configs from scratch, (4) Running multi-round review→fix→score cycles until a quality threshold is met, (5) Debugging agent spawn permissions, tool-call loops, or symlink issues. Based on real production experience building a 6-agent content team (2026-03-30)."
---

# Agent Team Orchestration V3 (Public)

Production-proven playbook for building multi-agent content production teams on OpenClaw. Covers architecture, setup, role design, orchestration workflow, and hard-won debugging lessons.

## Architecture in 30 Seconds

**Single-repo + multi-role**. One writer owns the real `OUTPUT/` directory. All other roles (reviewers, scorer, fixer) are lightweight shell workspaces with symlinks pointing to the writer's OUTPUT. The orchestrator (main agent) dispatches work and controls flow — sub-agents never talk to each other.

```
Main Agent (Orchestrator)
  ├── spawn → Writer → writes to OUTPUT/
  ├── spawn → Fact-Reviewer ──┐
  ├── spawn → Style-Reviewer ─┤ read OUTPUT/ via symlinks
  ├── spawn → Data-Reviewer ──┤
  ├── spawn → Scorer ─────────┤
  └── spawn → Fixer ──────────┘ writes versioned files to OUTPUT/
```

Five axioms:
1. File system = state center (no API, no DB)
2. AGENTS.md = role definition (auto-loaded at spawn)
3. Orchestrator = sole dispatcher (agentToAgent OFF)
4. Score threshold = quality gate (e.g., 8.5/10)
5. TOOLS.md = mandatory guardrails (prevents model tool-call loops)

## Quick Start

### 1. Run the setup script

```bash
# Creates workspaces, symlinks, and TOOLS.md for all roles
scripts/setup-team.sh {writer-id} {fact-reviewer-id} {style-reviewer-id} {data-reviewer-id} {scorer-id} {fixer-id}
```

### 2. Register agents in openclaw.json

Add each agent to `agents.list` and grant spawn permissions to the main agent. The script prints the exact JSON to add.

### 3. Write AGENTS.md for each role

Use the templates in `references/role-templates.md`. The writer gets a comprehensive domain manual (400-600 lines). Reviewers, scorer, and fixer get focused role definitions (100-200 lines each).

### 4. Run the pipeline

```
Spawn writer → wait → parallel spawn reviewers → wait → spawn scorer → read score
  → pass? done. fail? spawn fixer → loop back to reviewers.
```

## Reference Files

| File | Read when... |
|------|-------------|
| [references/architecture.md](references/architecture.md) | Understanding the single-repo design, directory layout, symlink mechanism, and OpenClaw configuration |
| [references/build-guide.md](references/build-guide.md) | Setting up a team from scrat

_meta.json

{
  "ownerId": "kn7cj2j4b8w76p1mys4xwpq7bd83xpnd",
  "slug": "openclaw-agent-team-orchestration",
  "version": "3.0.0",
  "publishedAt": 1774886182330
}

references/architecture.md

# Architecture: Single-Repo Multi-Role Agent Team

## Core Architecture

**Single-repo + multi-role**, not distributed microservices.

Five design axioms:

1. **File system is the state center** — The writer's `OUTPUT/` is the single source of truth. All other roles read/write through symlinks. No API, no database, no message queue.
2. **AGENTS.md is the role definition** — Each role's responsibilities, standards, and domain knowledge live in its own AGENTS.md. Loaded automatically at spawn. No runtime configuration needed.
3. **Flow is code** — The orchestrator (main agent) is the only dispatcher. Sub-agents cannot spawn each other. Flow is controllable and predictable.
4. **Scoring is the quality gate** — The score threshold (e.g. 8.5/10) is a business bar, not a technical bar. It ensures output is shippable.
5. **agentToAgent must be OFF** — Sub-agents never talk to each other directly. All coordination goes through the orchestrator.

## Directory Layout

```
~/.openclaw/
├── openclaw.json                          # Global config
├── workspace/                             # Main agent (orchestrator)
│   ├── AGENTS.md
│   ├── TOOLS.md
│   └── MEMORY.md
│
├── workspace-{writer}/                    # Writer workspace (PRIMARY)
│   ├── AGENTS.md                          # Writer role definition
│   ├── TOOLS.md
│   ├── OUTPUT/                            # ← REAL directory
│   │   └── {project-name}/
│   │       ├── article.md
│   │       ├── metadata.md
│   │       └── design-notes.md
│   └── KNOWLEDGE/                         # Shared knowledge
│
├── workspace-{reviewer-1}/                # Reviewer (SHELL)
│   ├── AGENTS.md
│   ├── TOOLS.md
│   ├── OUTPUT -> ../workspace-{writer}/OUTPUT
│   └── KNOWLEDGE -> ../workspace-{writer}/KNOWLEDGE
│
├── workspace-{scorer}/                    # Scorer (SHELL)
│   ├── AGENTS.md
│   ├── TOOLS.md
│   ├── OUTPUT -> ../workspace-{writer}/OUTPUT
│   └── KNOWLEDGE -> ../workspace-{writer}/KNOWLEDGE
│
└── workspace-{fixer}/                     # Fixer (SHELL)
    ├── AGENTS.md
    ├── TOOLS.md
    ├── OUTPUT -> ../workspace-{writer}/OUTPUT
    └── KNOWLEDGE -> ../workspace-{writer}/KNOWLEDGE
```

## Symlink Mechanism

Create symlinks from each shell workspace to the writer workspace:

```bash
ln -s /absolute/path/to/workspace-{writer}/OUTPUT OUTPUT
ln -s /absolute/path/to/workspace-{writer}/KNOWLEDGE KNOWLEDGE
```

**Important**: Use absolute paths in symlinks.

## OpenClaw Configuration

```json
{
  "agents": {
    "list": [
      {
        "id": "main",
        "subagents": {
          "allowAgents": ["writer", "reviewer", "scorer", "fixer"]
        }
      },
      {
        "id": "writer",
        "workspace": "~/.openclaw/workspace-writer"
      }
    ]
  }
}
```

**Critical**: `subagents.allowAgents` must list all agent IDs the orchestrator can spawn.

## Permission Model

| Action | Who can do it |
|--------|---------------|
| Spawn sub-agents | Only the main agent |
| Read/write OUTPUT/ | All agents via s

references/build-guide.md

# Build Guide

## Prerequisites

- OpenClaw installed
- Model configured (e.g., kimi/k2p5)
- Access to `~/.openclaw/openclaw.json`

## Phase 1: Plan

Define:
1. **Team name** — e.g., "content-team"
2. **Roles**: Writer (1), Reviewers (1-3), Scorer (1), Fixer (1)
3. **Scoring dimensions** (3-5, weights = 100%)
4. **Threshold** (recommended: 8.0-8.5)
5. **Max fix rounds** (recommended: 3)

## Phase 2: Create Writer Workspace

```bash
mkdir -p ~/.openclaw/workspace-{writer}/OUTPUT
mkdir -p ~/.openclaw/workspace-{writer}/KNOWLEDGE
```

Create `AGENTS.md` (comprehensive) and `TOOLS.md`.

## Phase 3: Create Shell Workspaces

For each non-writer role:
```bash
WRITER_WS="$HOME/.openclaw/workspace-writer"
SHELL_WS="$HOME/.openclaw/workspace-reviewer"

mkdir -p "$SHELL_WS"
ln -s "$WRITER_WS/OUTPUT" "$SHELL_WS/OUTPUT"
ln -s "$WRITER_WS/KNOWLEDGE" "$SHELL_WS/KNOWLEDGE"

# Create AGENTS.md and TOOLS.md
```

## Phase 4: Register Agents

Edit `~/.openclaw/openclaw.json`:
```json
{
  "agents": {
    "list": [
      {"id": "writer", "workspace": "~/.openclaw/workspace-writer"},
      {"id": "reviewer", "workspace": "~/.openclaw/workspace-reviewer"}
    ]
  }
}
```

## Phase 5: Grant Permissions

Add to main agent:
```json
{
  "id": "main",
  "subagents": {
    "allowAgents": ["writer", "reviewer", "scorer", "fixer"]
  }
}
```

## Phase 6: TOOLS.md for All

Every agent needs TOOLS.md with:
1. Don't read AGENTS.md
2. Always provide `path` parameter
3. Include all required parameters

## Phase 7: Smoke Test

1. Spawn writer → verify files appear
2. Spawn reviewer → verify report appears
3. Spawn scorer → verify JSON score report
4. If needed, spawn fixer → verify versioned files

## Troubleshooting

| Symptom | Cause | Fix |
|---------|-------|-----|
| Spawn permission error | Missing allowAgents | Add to openclaw.json |
| Token = 0 for 5+ min | Tool-call loop | Add TOOLS.md reminders |
| Empty output | Vague task | Re-spawn with explicit requirements |
| Broken symlinks | Relative paths | Recreate with absolute paths |

references/lessons-learned.md

# Lessons Learned

## k2p5 Tool-Call Loop

**Symptom**: Token count stays at 0 for 5+ minutes, then times out.

**Cause**: Model tries to `read("AGENTS.md")` without required `path` parameter, enters infinite retry loop.

**Fix**: Add TOOLS.md reminders to every agent:
```markdown
1. Do NOT read AGENTS.md — it's auto-injected
2. Always provide `path` parameter
3. Tool calls must include all required parameters
```

## Spawn Permission

**Symptom**: `sessions_spawn` fails with permission error.

**Fix**: Add agent IDs to main agent's `subagents.allowAgents` in openclaw.json.

## Symlink Paths

**Symptom**: File not found errors.

**Fix**: Use absolute paths in symlinks:
```bash
ln -s /Users/.../workspace-writer/OUTPUT OUTPUT
```

## Version Naming

For multi-round pipelines:
- v1: `article.md`
- v2: `article-v2.md`
- v3: `article-v3.md`

**Critical**: When spawning round 2 reviewers, explicitly reference the new version:
```
task: "Review OUTPUT/project/article-v2.md"
```

## Agent Memory Loss After Gateway Restart

**Symptom**: After gateway restart, the main agent (orchestrator) loses all architecture information — agent list, product line configuration, workflow templates. It behaves as if the team was never set up.

**Cause**: Architecture information was stored only in MEMORY.md. The memory system depends on runtime state that may not survive a gateway restart.

**Fix**: Write all architecture information (agent roster, product line mappings, workflow templates, monitoring rules) into the orchestrator's AGENTS.md instead of MEMORY.md. AGENTS.md is auto-loaded at every session start — it does not depend on the memory system.

**Principle**: Anything the orchestrator must know to function should be in AGENTS.md (deterministic load), not MEMORY.md (best-effort load).

## Instruction File Self-Violation

**Symptom**: Agent output contains terms or patterns that the agent's own standards explicitly prohibit.

**Cause**: The human-authored instruction file (AGENTS.md or task description) itself contained the prohibited content. The agent faithfully executed the flawed instructions. For example, a brand guideline says "never use term X", but the page footer template in the same file uses term X.

**Fix**: Include compliance scanning in the reviewer's audit checklist. Let the reviewer agent catch errors in human-written instruction files — not just in generated content. This is one of the strongest arguments for the multi-agent review model: even the human operator has blind spots, and the review system can catch them.

## Performance Benchmarks

| Agent | Time | Tokens |
|-------|------|--------|
| Writer | 15-30 min | 40-60K |
| Reviewer | 5-10 min | 15-30K |
| Scorer | 2-4 min | 7-15K |
| Fixer | 10-15 min | 30-40K |

Total pipeline: ~60-90 minutes per product.

Sponsored

Ads related to Agent Team Orchestration and adjacent AI workflows.