---
name: opencognitos-team-delegation
title: team delegation
kind: skill
description: >
  How to work as one of several coding agents on the same project - split a goal
  into tasks, hand them to other agents, avoid conflicts and report back. Use
  when the user asks to parallelize work, delegate, "use multiple agents", or
  when other agents are working in the same repository.
updated: 2026-12-05
authored_by: OpenCognitOS
author_url: https://github.com/OpenCognitOS
source_url: https://github.com/OpenCognitOS/skills/tree/HEAD/team-delegation
brought_by: kt
---

# Team delegation

Several agents on one codebase are fast only if they do not step on each other. This skill covers splitting work, handing it off and reporting back.

## 1. Check who is working where

Before larger changes, find out what else is running. In OpenCognit:

```bash
"$OPENCOGNIT_CLI" team
```

Without OpenCognit, check `git worktree list`, open branches and recently modified files. Do not edit files another agent is clearly working on.

## 2. Split the goal

A good task for another agent is:

- **Independent**: it can be finished without waiting for other tasks.
- **Bounded**: it touches a clear set of files or one module.
- **Checkable**: it has a done criterion ("tests in `queue.test.ts` pass", "page renders without console errors").

Bad splits: two agents editing the same file, tasks that depend on each other's unfinished output, vague goals ("improve the code").

Write each task as a short brief:

```
Goal: <one sentence>
Scope: <files/modules allowed to change>
Out of scope: <what not to touch>
Done when: <test, check or visible result>
Report: <what you want back>
```

## 3. Hand it off

In OpenCognit, start a new agent session with its own worktree so changes stay isolated:

```bash
node "$OPENCOGNIT_CLI" spawn --agent codex --workspace worktree --prompt "<brief>"
```

Pick the agent by task: fast models for tests and small fixes, stronger models for design and tricky bugs. Without OpenCognit, give the user the briefs so they can start the agents themselves.

## 4. Report back

When you were given a task id (like `t-…`), report the result when finished:

```bash
"$OPENCOGNIT_CLI" report <task-id> --status done|blocked|question --summary "<what changed, checks run, open points>"
```

A good report says: what changed (files, branch), which checks ran and their result, what is left open. Report `blocked` or `question` early instead of guessing.

## 5. Bring it together

- Merge one finished branch at a time and run the tests after each merge.
- If two branches conflict, resolve in favour of the task that owns the file and tell the user.
- Summarize for the user: which agent did what, what is merged, what still needs a decision.
