> For the complete documentation index, see [llms.txt](https://www.openclawbook.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openclawbook.xyz/en/ch09-multi-agent-in-practice/9.3-team-collaboration-and-case-studies.md). Agents can also search and read this documentation through its [MCP server](https://www.openclawbook.xyz/~gitbook/mcp).

# 9.3 Team Collaboration and Case Studies

> **Generated by**: Claude Opus 5 (claude-opus-5\[1m]) **Token usage**: Input \~176,000 tokens, Output \~9,000 tokens (this section) **Source baseline**: `v2026.3.9` (`v2026.3.8-170-g665f67726`)

***

## 9.3.1 Read This Before Deploying to a Team

OpenClaw's trust model assumes **a single trusted operator** (§32.6.1, §44.4). Everyone who can reach the agent is treated as that operator.

That has a direct consequence for team deployments:

```
Anyone in an allowlisted group chat
  → can ask the agent to read files, run commands, browse
  → with your credentials, on your machine
```

There is no per-user permission model. `allowFrom` decides *who gets in*, not *what each person can do*.

So a team deployment is safe under one condition: **everyone with access is someone you'd give a shell account to.** If that's not true, what you want is either a much narrower tool policy or separate instances.

> **This isn't a gap to work around — it's the stated design.** §44.4 puts it plainly: the system is built for one person's machine, and a multi-tenant story would be a different product. Knowing that in advance saves you from discovering it the hard way.

## 9.3.2 A Small-Team Setup

A workable pattern for a team of trusted colleagues:

### Configuration

```json5
{
  agents: {
    list: [
      { id: "main", default: true },
      {
        id: "team",
        workspace: "~/openclaw-team",
        tools: { profile: "messaging" },      // no exec, no browser
      },
    ],
  },
  bindings: [
    { channel: "slack", agentId: "team" },
  ],
  channels: {
    slack: {
      groupPolicy: "allowlist",
      groups: { allow: ["C0123ENGINEERING"] },
      requireMention: true,
    },
  },
}
```

Four things are doing the work here:

1. **A dedicated agent** — the team's memory and personality stay separate from yours;
2. **A narrow tool profile** — the team agent can't run shell commands even if asked;
3. **Group allowlist** — only the named channel, not every channel the bot is in;
4. **`requireMention`** — the agent stays quiet unless addressed, which matters a lot in an active channel.

### What a team agent is good at

| Task                                        | Why it fits           |
| ------------------------------------------- | --------------------- |
| Answering questions from team documentation | Read-only, high value |
| Summarizing a long thread                   | Contained             |
| Drafting responses, translating             | No side effects       |
| Looking up an issue or PR status            | Via a scoped skill    |

### What to keep out of it

| Task                                               | Why not                                                      |
| -------------------------------------------------- | ------------------------------------------------------------ |
| Deploying, restarting services                     | Runs as you, with no audit trail per person                  |
| Anything touching production data                  | Same                                                         |
| Anything requiring "who asked" to be authoritative | The system doesn't model per-user identity for authorization |

## 9.3.3 Case: A Shared Knowledge Agent

**Goal**: the team asks questions in Slack; the agent answers from a documentation repository.

**Setup**:

```json5
{
  id: "docs",
  workspace: "~/team-docs-workspace",
  tools: { profile: "messaging" },
  model: { primary: "anthropic/claude-sonnet-4-6" },
}
```

The workspace contains a checkout of the documentation repo, plus an `AGENTS.md`:

```markdown
# Team Documentation Agent

Answer questions from the docs in ./docs.
Always cite the file you drew from.
If the docs don't cover it, say so — do not guess.
```

**Why this works well**: the agent has no write capability, no shell, and a clear instruction to admit ignorance. The failure mode of a documentation bot is confident invention, and "cite the file, or say you don't know" addresses it directly.

**Keeping docs current**: a cron job (§26.4) pulling the repo daily:

```json5
{
  schedules: [
    {
      id: "docs-sync",
      cron: "0 6 * * *",
      agentId: "docs",
      prompt: "Run: git -C ./docs pull. Report only if it failed.",
      model: "anthropic/claude-haiku-4-5",   // cheap model for a mechanical job
    },
  ],
}
```

Note the cheap model and "report only if it failed" — a daily job that reports success is a daily notification you'll learn to ignore.

## 9.3.4 Case: A Personal Research Pipeline

**Goal**: gather material on a topic each morning, deposit a summary in memory.

```json5
{
  schedules: [
    {
      id: "morning-research",
      cron: "0 8 * * 1-5",
      agentId: "research",
      prompt: "Search for developments in <topic> from the last 24 hours. Write a short summary to memory. Message me only the three most notable items.",
    },
  ],
}
```

This uses several pieces together:

* **cron** for the trigger (§26.4);
* **subagents** if the agent chooses to parallelize the searches (§9.2.1);
* **memory** for the durable record (§28.5);
* **a channel** for the notification.

**Two things to get right**:

1. **"Message me only the three most notable"** — otherwise you get a wall of text daily and stop reading it. The value of a scheduled job is inversely proportional to how much it outputs.
2. **Write to memory even when the notification is short** — the summary stays searchable, so "what did I see about X last month" works later.

## 9.3.5 Case: Multi-Agent Separation Done Right

A configuration with clear reasoning for each agent:

```json5
{
  agents: {
    list: [
      {
        id: "main",
        default: true,
        // full capability, personal DMs only
      },
      {
        id: "team",
        workspace: "~/openclaw-team",
        tools: { profile: "messaging" },
      },
      {
        id: "cron",
        workspace: "~/openclaw-cron",
        model: { primary: "anthropic/claude-haiku-4-5" },
      },
    ],
  },
  bindings: [
    { channel: "slack", agentId: "team" },
  ],
}
```

| Agent  | Reachable by            | Capability        | Rationale                            |
| ------ | ----------------------- | ----------------- | ------------------------------------ |
| `main` | You, in DMs             | Full              | You're the trusted operator          |
| `team` | Slack channel           | Messaging only    | Trusted colleagues, but no shell     |
| `cron` | Nobody — scheduled only | Full, cheap model | **No external input surface at all** |

> **The `cron` agent is the interesting one.** It has full capability but no way for anyone to talk to it — its only inputs are prompts you wrote in the config. That's the cleanest form of the §44.4 principle: capability is safe when the input path is trusted, and dangerous when it isn't.

### Verifying the separation

```bash
openclaw sessions list          # confirm sessions land under the expected agent
openclaw security audit         # check the whole configuration
```

Run `security audit` after any change to bindings or tool policy. Its severities are rated against your actual exposure (§32.6.4), so a warning on a private instance can legitimately become critical once you attach a public channel — and it's the audit, not you, that remembers to re-evaluate that.

***

## Section Summary

1. **The trust model assumes a single trusted operator** — `allowFrom` decides *who gets in*, not *what each person can do*. **There is no per-user permission model.**
2. **A team deployment is safe under one condition**: everyone with access is someone you'd give a shell account to. Otherwise use a narrow tool policy or separate instances.
3. **This is the stated design, not a gap** — §44.4 says the system is built for one person's machine; knowing it in advance saves discovering it the hard way.
4. **The working team pattern is four things together**: a dedicated agent, a narrow tool profile, a group allowlist, and `requireMention`.
5. **Keep deployment, production data, and anything needing authoritative "who asked" out of a team agent** — it runs as you, with no per-person audit trail.
6. **A documentation agent's failure mode is confident invention** — "cite the file, or say you don't know" addresses it directly.
7. **Scheduled jobs should report only exceptions and use cheap models** — a job that reports success daily is a notification you'll learn to ignore.
8. **A cron-only agent can safely hold full capability because it has no external input surface** — capability is safe when the input path is trusted, dangerous when it isn't.
