Install
openclaw skills install @ygq19901001/biobrain-agent-organization-managerMulti-department agent org setup: hierarchy, comms, reporting, learning, audit. Triggers: 'agent team', 'agent organization', 'agent roster'
openclaw skills install @ygq19901001/biobrain-agent-organization-managerBuild a multi-department AI agent company with clear hierarchy, communication, and accountability.
One agent = one department. Each department has a role, a communication channel, and accountability. The CEO agent (main) orchestrates; department agents execute.
Create company/shared/ROSTER.md — the company directory:
# Company Roster
| Department | Agent ID | Role | Priority |
|------------|----------|------|----------|
| CEO | main | Strategy, decisions, orchestration | P0 |
| Admin | admin | Operations, scheduling, logistics | P0 |
| Data | datacenter | Infrastructure, data, monitoring | P0 |
| Inspector | inspector | Quality audit, compliance checks | P0 |
| Legal | legal | Compliance, risk review | P1 |
| Finance | finance | Cost tracking, token budgets | P1 |
| Brand | brand | Content, marketing, publishing | P1 |
| Sales | sales | Outreach, conversion, revenue | P1 |
sessions_send agentId="admin" message="@admin Assign today's tasks"
Write to company/shared/messages/MSG-{from}-{to}-{timestamp}.md
Write to company/shared/alerts/ALERT-{level}-{timestamp}.md
Levels: INFO / WARN / FLAG / KILL_SWITCH
Write to company/shared/broadcast/BC-{timestamp}.md
Each department reports daily via cron. Use sessions_send to main (not message tool — it may fail in isolated sessions).
Cron payload pattern:
{
"kind": "agentTurn",
"message": "You are [dept]. Daily report: list today's completed work, pending items, next steps. Send sessions_send to main. Do NOT use message tool.",
"model": "zai/glm-4-flash",
"lightContext": true
}
Stagger report times (e.g., 22:00, 22:03, 22:06...) to avoid rate limits.
Each department learns daily in its domain. Stagger morning times (e.g., 07:30-08:30).
{
"name": "Learning · [Dept]",
"schedule": {"kind": "cron", "expr": "30 7 * * *", "tz": "Asia/Shanghai"},
"payload": {
"kind": "agentTurn",
"message": "You are [dept]. Search 1-2 trends in [domain]. Write ~300 words to company/departments/[dept]/learning_YYYYMMDD.md.",
"model": "zai/glm-4-flash",
"lightContext": true
}
}
Inspector agent audits all departments on schedule (e.g., 10:00, 14:00, 22:00).
Checks:
Never do this:
Always do this:
company/
├── shared/
│ ├── ROSTER.md
│ ├── messages/
│ ├── alerts/
│ └── broadcast/
└── departments/
├── admin/
├── datacenter/
├── inspector/
├── legal/
├── finance/
├── brand/
└── sales/