| name | amcos-agent-coordination |
| description | Use when managing team registry, inter-agent messaging, role boundaries, or sub-agent delegation. Trigger with team coordination tasks. Loaded by ai-maestro-chief-of-staff-main-agent |
| user-invocable | false |
| license | Apache-2.0 |
| compatibility | Requires AI Maestro installed. |
| metadata | {"author":"Emasoft","version":"1.0.0"} |
| context | fork |
| agent | ai-maestro-chief-of-staff-main-agent |
Agent Coordination
Overview
Manages team registry, messaging, role boundaries, and delegation.
Prerequisites
- AI Maestro running with
agent-messaging skill
- Registry via
aimaestro-teams.sh show <team-id> (team object includes its agents)
- Script:
uv run python scripts/amcos_team_registry.py
Instructions
- Identify the coordination action needed (registry, messaging, delegation)
- Execute the action using the appropriate procedure below
- Verify the result and update team registry
- Log the operation and notify affected agents
Team Registry
Commands: create, add-agent, remove-agent, update-status, list, publish
Steps: Identify type -> Execute -> Verify via list -> Optionally publish -> Backup
Inter-Agent Messaging
Use agent-messaging skill. Always use FULL session names (e.g., amoa-svgbbox-orchestrator).
Message types: role-assignment, project-assignment, task-delegation, status-request, status-report, team-notification, hibernation-warning, wake-notification, registry-update
Standards: Include from field. Acknowledge role assignments. Retry 3x before escalating.
Role Boundaries (CRITICAL)
- AMCOS is TEAM-SCOPED (one per team)
- AMCOS CREATES agents and ASSIGNS to teams
- AMCOS does NOT assign tasks (AMOA's job)
- AMCOS does NOT manage kanban (AMOA's job)
- AMCOS does NOT create projects (AMAMA's job)
- AMCOS NEVER spawns a copy of itself
Agent vs Sub-Agent
| Term | Definition |
|---|
| Agent | Separate process in own tmux session. Own context, hibernates/terminates independently. |
| Sub-agent | Spawned via Task tool inside parent. Shares context, terminates with parent. |
Cross-Host Awareness
Remote ops require GovernanceRequest + ConfigOperationType. Messages route via API.
Workflow Checklists
See the workflow checklists in Resources for agent lifecycle procedures.
Output
Registry update -> state reflected. Message -> delivery confirmed. Role assignment -> acknowledged.
Error Handling
| Issue | Resolution |
|---|
| Maestro unavailable | File-based fallback, retry 30s |
| Delivery fails | Retry 3x/10s, escalate to AMAMA |
| Registry fails | Retry 3x, fallback aimaestro-teams.sh add-agent |
| Boundary violation | Log, reject, notify AMAMA |
| Not in registry | Verify FULL name, check if terminated |
Examples
Update Registry After Spawn
uv run python scripts/amcos_team_registry.py add-agent \
--team svgbbox-team --name ampa-svgbbox-impl --role programmer --status running
uv run python scripts/amcos_team_registry.py list --team svgbbox-team
Send Team Notification
Checklist
Copy this checklist and track your progress:
Resources
- op-update-team-registry — Team registry update procedures and examples
- workflow-checklists — Agent lifecycle checklists
- 1.1 Spawning New Agent Checklist
- 2.1 Terminating Agent Checklist
- 3.1 Hibernating Agent Checklist
- 4.1 Waking Agent Checklist
- 5.1 Completing the Team Checklist
- 6.1 Updating Team Registry Checklist