---
name: php186-skill-3723
description: "{\"answer\":\"管理按部门划分的AI子智能体团队。适用于委派任务给专职智能体、跟踪部门产出、分配角色等场景。\"}"
---

# Department Manager

## Department Manager

 

Organize your AI workers into departments. Assign tasks, track output, and coordinate multi-agent teams like a CEO.

 

## Why This Exists

 

Running an autonomous business or complex project means juggling multiple tasks across different domains: content, research, code, marketing, operations. Instead of doing everything sequentially, organize your workers into departments and delegate in parallel.

 

## Commands

 

### Create a department

 

```
python3 {baseDir}/scripts/departments.py create --name "content" --description "SEO blog posts, marketing copy, newsletters" --model "arcee-ai/trinity-large-preview:free"
```

 

### List departments

 

```
python3 {baseDir}/scripts/departments.py list
```

 

### Assign a task to a department

 

```
python3 {baseDir}/scripts/departments.py assign --dept "content" --task "Write a blog post about OpenClaw memory system" --priority high
```

 

### Check department status

 

```
python3 {baseDir}/scripts/departments.py status --dept "content"
```

 

### View all active tasks across departments

 

```
python3 {baseDir}/scripts/departments.py active
```

 

### Complete a task

 

```
python3 {baseDir}/scripts/departments.py complete --task-id 1 --output "Blog post written and saved to drafts/memory-post.md"
```

 

### Department report (summary of all departments)

 

```
python3 {baseDir}/scripts/departments.py report
```

 

### Remove a department

 

```
python3 {baseDir}/scripts/departments.py remove --name "content"
```

 

## Recommended Department Structure

 

| Department | Model | Responsibilities |
| --- | --- | --- |
| content | arcee-ai/trinity-large-preview:free | Blog posts, marketing copy, newsletters |
| research | stepfun/step-3.5-flash:free | Market research, competitor analysis, data gathering |
| engineering | openrouter/free | Code generation, bug fixes, tooling |
| operations | (manual/CEO) | Budget, strategy, communications |
| security | (manual/CEO) | Skill scanning, threat assessment, audits |

 

## Data Storage

 

Department data stored in ` ~/.openclaw/department-manager/departments.json `.

 

## Tips

 

- Create departments based on your actual workflow, not hypothetical needs
- Assign one default model per department for consistency
- Review completed tasks before publishing — QA is the CEO's job
- Use priority levels to focus workers on what matters now
- Run ` report ` at the end of each day for a team overview
