AI Maestro Assistant Manager Agent (AMAMA)

August 29, 2026 · View on GitHub

Version: 2.20.1

Part of the AI Maestro ecosystem. See also: AI Maestro Plugins Marketplace.

Overview

The AI Maestro Assistant Manager Agent (AMAMA) is the user's right hand -- the sole interlocutor with the user. It receives user requests, clarifies requirements, routes work to appropriate specialist agents via the Chief-of-Staff (AMCOS), and presents results back to the user.

Requires AI Maestro >= 0.26.0 for inter-agent messaging, governance APIs, and team management.

Communication Hierarchy

USER <-> AMAMA (manager) <-> AMCOS (chief-of-staff) <-> Specialist Agents (member)
                                                    <-> AMAA  (architect skills)
                                                    <-> AMOA  (orchestrator skills)
                                                    <-> AMIA  (integrator skills)

Key principle: AMAMA never communicates directly with specialist agents. All specialist routing goes through AMCOS.

Governance Model (v2)

AI Maestro defines exactly 3 governance titles:

RoleAgentPurpose
managerAMAMATeam manager, sole user contact, full admin authority
chief-of-staffAMCOSAgent lifecycle, permissions, failure recovery
memberAMAA, AMOA, AMIAAll specialist agents (specialization via skills/tags, NOT the role field)

COS Assignment Model (R29): AMAMA (MANAGER) creates AND deletes teams on its own with NO user approval, and the team's COS is created as part of team creation -- when AMAMA runs aimaestro-teams.sh create, the AI Maestro server auto-creates the chief-of-staff for that team. AMAMA then wakes the COS and grants its mandate (R30). The whole COS lifecycle is AID-authorized (R28); AMAMA never uses a sudo/governance password and there is no dashboard step (R32).

Two-Track Approval System

TrackScopeMechanismSkill
Governance approvalsTeam membership, COS assignment, agent lifecycle, transfersGovernanceRequest APIamama-approval-workflows
Operational approvalsDeployments, merges, test runs, routine AMCOS operationsMessage-based flow (approval_request / approval_decision)amama-amcos-coordination

TRDD lifecycle — at a glance

The project's design/ folder on GitHub is the sole source of truth for all TRDDs (proposals, open work, and terminal records). Every clone pulls before acting and pushes after each change.

        ┌───────────────────────────────────────────────────────────────┐
        │  design/  ⇅  GitHub repo  =  SOLE SOURCE OF TRUTH              │
        │  every clone PULLS before acting and PUSHES after each change   │
        └───────────────────────────────────────────────────────────────┘

  idea / request
       │
       │  Tier 0 (own scope · NPT/EHT) ── author directly as `planned` ──┐
       │                                                                 │
       ▼   needs approval                                                ▼
 ┌───────────────────┐   approve                                ┌────────────────────────┐
 │ design/proposals/ │   (T1 COS · T2 MANAGER · T3 USER)         │  design/tasks/         │
 │  column: proposal │ ───────────────────────────────────────▶ │  = OPEN WORK           │
 │   (PENDING)       │                                          │                        │
 └───────────────────┘                                          │  planned→todo→dispatch │
       │                                                        │  →dev→testing→ai_review│
       │ refuse  (NEVER approved)                               │  →human_review         │
       ▼                                                        │  →complete→publish|deploy
 ┌───────────────────┐                                          │                        │
 │ design/refused/   │                                          │  • blocked  (lists its │
 │  column: refused  │                                          │    blocked-by:)        │
 └───────────────────┘                                          │  • failed → RETRY      │
                                                                │    (stays OPEN, never  │
                                                                │     archived)          │
                                                                └───────────┬────────────┘
                                                                            │ terminal-DONE
                                                                            │ (was approved)
                                                                            ▼
                                                          ┌──────────────────────────────┐
                                                          │  design/archived/            │
                                                          │  completed · cancelled ·     │
                                                          │  superseded                  │
                                                          └──────────────────────────────┘

  OPEN TRDD  = any file in design/tasks/  (INCLUDING `blocked` and `failed`).
  refused/   = proposals NEVER approved.   archived/ = ONCE-approved, now terminal.
  `failed` is OPEN and retryable — fix the cause (often via other TRDDs), retry;
  it is NEVER moved to archived. Giving up on a failed TRDD = cancel → archived.

Full rules: the base ~/.claude/rules/trdd-design-tasks.md plus the seeded DEP overlay .claude/rules/aimaestro-trdd-approval.md. Decide proposals fast with the core ama-proposal-approvals skill (approved: 4,6 / refused: 7,8). A refusal must state its reason — the defect, the bar for acceptance, and the invitation to re-propose; the tool rejects a reasonless refusal.

Plugin Components

Agents

AgentFileDescription
Assistant Manageragents/ai-maestro-assistant-manager-agent-main-agent.mdMain AMAMA agent -- user communication, routing, approvals, team management
Report Generatoragents/amama-report-generator.mdGenerates formatted status reports for user

Commands

CommandFileDescription
/amama-planning-statuscommands/amama-planning-status.mdShow planning phase status
/amama-orchestration-statuscommands/amama-orchestration-status.mdShow orchestration phase status
/amama-approve-plancommands/amama-approve-plan.mdApprove plan for orchestration
/amama-respond-to-amcoscommands/amama-respond-to-amcos.mdRespond to AMCOS approval requests (approve/deny/defer)

Skills

SkillRefsDescription
amama-user-communication6Communicating with users: clarification, options, approval, reporting
amama-status-reporting4Generating status reports via AI Maestro APIs (sessions, health, teams, tasks)
amama-approval-workflows11Governance approvals via GovernanceRequest API (team, agent lifecycle, COS)
amama-role-routing4Routing user requests to specialist agents based on intent
amama-amcos-coordination16COS coordination: approvals, delegation, health checks, completions
amama-github-routing7Routing GitHub operations (issues, PRs, projects, releases) via team labels
amama-label-taxonomy2GitHub label taxonomy management and triage
amama-autonomous-fallback2Approve-autonomously / defer / escalate when a peer approval arrives and the user is unavailable
amama-presence-tracker1Compute the user's availability state (active/monitoring/away/dnd) for autonomous-fallback gating
amama-agent-unblock0Detect whether a silent agent is BLOCKED and why (block-state, reads the terminal), and answer its pending question — the one permitted cross-agent command

Hooks

Hook IDEventScriptDescription
amama-memory-loadSessionStartscripts/amama_session_start.pySessionStart wiring (memory recall is now on-demand via the global /janitor-memory-recall skill)
amama-stop-checkStopscripts/amama_stop_check.pyBlock exit until coordination work is complete

Shared Resources

FileDescription
shared/handoff_template.mdStandard handoff document format with YAML front-matter
shared/message_templates.mdGeneric message templates for inter-agent communication
shared/thresholds.pyGovernance thresholds, valid roles, valid specializations

Message Protocol

Standard Message Types

TypeDirectionPurpose
work_requestAMAMA -> AMCOSRoute user work to specialist via AMCOS
approval_requestAMCOS -> AMAMARequest approval for an operation
approval_decisionAMAMA -> AMCOSRespond with approve, deny, or defer
status_queryAMAMA -> AMCOSRequest status update
status_reportAMCOS -> AMAMAStatus response
ping / pongbidirectionalHealth check (30s timeout)
cos-role-assignmentAMAMA -> agentAssign COS role to agent
cos-role-acceptedagent -> AMAMAAgent accepts COS role
autonomy_grant / autonomy_revokeAMAMA -> AMCOSGrant/revoke autonomous operation
operation_completeAMCOS -> AMAMANotify task completion
user_decisionAMAMA -> AMCOSForward user decision

Request ID Format

All AMCOS requests use the format: amcos-req-<uuid> (e.g., amcos-req-a1b2c3d4).

Communication Methods

  1. Handoff .md files with UUIDs -- for detailed specifications and deliverables
  2. AI Maestro AMP messages -- for short exchanges (status, approvals, health checks)
  3. GitHub Issues -- as permanent record and discovery mechanism

Plugin Abbreviations

AbbreviationFull NameGovernance Role
AMAMAAI Maestro Assistant Manager Agentmanager
AMCOSAI Maestro Chief-of-Staffchief-of-staff
AMAAAI Maestro Architect Agentmember (architect specialization)
AMOAAI Maestro Orchestrator Agentmember (orchestrator specialization)
AMIAAI Maestro Integrator Agentmember (integrator specialization)

Installation

This plugin ships with AI Maestro. It is installed automatically when AI Maestro provisions an Assistant Manager agent.

# Start a session with the main agent
claude --agent ai-maestro-assistant-manager-agent-main-agent

Development Only (--plugin-dir)

--plugin-dir loads a plugin directly from a local directory without installation. Use only during plugin development.

claude --plugin-dir /path/to/ai-maestro-assistant-manager-agent

Usage

Once installed, the MANAGER agent is your single point of contact with the fleet: you talk to it in natural language, and it owns governance, task routing (the 3-pillars TRDD / PRRD / kanban system), and the two-track approval flow on your behalf. Start a session with it as shown in Installation, then:

  • Ask it anything about the project — it plans, routes to specialist agents, and reports back, surfacing only the decisions that need your sign-off.
  • Check where work stands with /amama-planning-status and /amama-orchestration-status.
  • Sign off on work with /amama-approve-plan (approve a plan for orchestration) and /amama-respond-to-amcos (approve / deny / defer a chief-of-staff request).

The full command, skill, and hook inventory is under Plugin Components.

Validation

Validation runs against the canonical CPV pipeline fetched from GitHub — no validator scripts are vendored into this repo:

cd /path/to/ai-maestro-assistant-manager-agent
uvx --from git+https://github.com/Emasoft/claude-plugins-validation \
    --with pyyaml cpv-remote-validate plugin . --strict --verbose

Token Optimization

All AMAMA scripts write verbose output to timestamped report files in the gitignored reports/<component>/ (never the git-tracked design/ tree) and print only 2-3 line summaries to stdout. Sub-agents must follow the same pattern — see the main agent's "Sub-Agent Output Rules" section.

Scripts

All runtime scripts are in the scripts/ directory. The plugin's own functional scripts use the amama_ prefix; publish.py is the canonical release pipeline. Validation and linting are NOT vendored — they run remotely against CPV from GitHub (see Validation above).

ScriptPurpose
amama_session_start.pySessionStart hook -- wiring (memory recall is on-demand via the global /janitor-memory-recall skill)
amama_stop_check.pyStop hook -- verify coordination complete
amama_user_prompt_submit.pyUserPromptSubmit hook -- record user-input presence
amama_report_writer.pyShared report writer for token-efficient output
amama_notify_agent.pySend notifications to agents
amama_approve_plan.pyPlan approval logic
amama_planning_status.pyPlanning status logic
amama_orchestration_status.pyOrchestration status logic
amama_design_search.pySearch design documents
amama_download.pyDownload resources
amama_init_design_folders.pyInitialize design folder structure
publish.pyCanonical plugin release pipeline (bump, lint, validate, test, tag, push)

Project Structure

ai-maestro-assistant-manager-agent/
├── .claude-plugin/
│   └── plugin.json                    # Plugin manifest
├── agents/
│   ├── ai-maestro-assistant-manager-agent-main-agent.md  # Main agent definition
│   └── amama-report-generator.md              # Report generator agent
├── commands/
│   ├── amama-approve-plan.md          # Approve plan command
│   ├── amama-orchestration-status.md  # Orchestration status command
│   ├── amama-planning-status.md       # Planning status command
│   └── amama-respond-to-amcos.md      # Respond to AMCOS command
├── hooks/
│   └── hooks.json                     # Hook definitions
├── scripts/
│   ├── amama_*.py                     # AMAMA functional scripts (hooks + logic)
│   └── publish.py                     # Canonical release pipeline (remote CPV validate/lint)
├── shared/
│   ├── handoff_template.md            # Handoff document format
│   ├── message_templates.md           # Generic message templates
│   └── thresholds.py                  # Governance thresholds
├── skills/
│   ├── amama-agent-unblock/           # Detect a blocked agent + answer its prompt (the only cross-agent command)
│   ├── amama-amcos-coordination/      # AMCOS coordination skill + 16 reference docs
│   ├── amama-approval-workflows/      # Governance approval workflows + 11 reference docs
│   ├── amama-autonomous-fallback/     # Approve/defer/escalate when user unavailable + 2 reference docs
│   ├── amama-github-routing/          # GitHub operations routing + 7 reference docs
│   ├── amama-label-taxonomy/          # GitHub label management + 2 reference docs
│   ├── amama-presence-tracker/        # User availability state for autonomous-fallback + 1 reference doc
│   ├── amama-role-routing/            # Request routing to specialists + 4 reference docs
│   ├── amama-status-reporting/        # Status report generation + 4 reference docs
│   └── amama-user-communication/      # User interaction patterns + 6 reference docs
├── docs/                              # Published documentation
├── git-hooks/                         # Git hook scripts
├── LICENSE                            # MIT License
└── README.md

AMAMA agents should use these tools (when available) to conserve orchestrator context tokens:

ToolPlugin / CLIPurpose
LLM Externalizerllm-externalizer plugin (MCP)Offload analysis/scanning to cheaper external LLMs
Serena MCPserena-mcp (MCP)Symbol-aware code navigation and search
TLDRtldr CLIToken-efficient code structure analysis

See the main agent's "Token-Efficient External Tools" section for usage details.

Compatibility

DependencyMinimum Version
Claude Code2.1.69+
AI Maestro0.26.0+
Python3.8+

License

MIT