.maestro/cue.yaml configurations for common workflows. Each example is self-contained - drop it into your project’s .maestro/ directory and adjust agent names to match your Left Bar.
Pipeline Grouping
Group related automations under a single pipeline - multiple trigger lines appear as one pipeline in the Pipeline Editor instead of cluttering the dropdown.- The
# Pipeline: Monitoring (color: #06b6d4)comment declares the pipeline name and UI color - The first subscription’s
namematches the pipeline name (Monitoring) - Additional subscriptions use
Name-chain-N(e.g.,Monitoring-chain-1) - The
labelfield gives each line a descriptive name in the UI
Workspace Initialization
Run setup tasks once when the Maestro application launches - install dependencies, verify environment, run health checks. Agents needed:setup-agent
CI-Style Pipeline
Lint, test, and deploy in sequence. Each step only runs if the previous one succeeded. Agents needed:linter, tester, deployer
This example assumes each agent has its own project root and therefore its own
.maestro/cue.yaml. The three files below live under three different project roots - that’s the supported pattern for multi-root pipelines (the engine reads each agent’s own cue.yaml and never aggregates across roots). See Multi-root pipelines for the full rule. If all three agents share one project root, put all three subscriptions in a single .maestro/cue.yaml and use agent_id (or settings.owner_agent_id plus an explicit agent_id per sub) to route each one.linter agent’s .maestro/cue.yaml:
tester agent’s .maestro/cue.yaml:
deployer agent’s .maestro/cue.yaml:
Scheduled Automation
Run prompts at specific times and days usingtime.scheduled. Unlike time.heartbeat (which fires every N minutes), scheduled triggers fire at exact clock times.
Agent needed: ops
Selective Chaining with triggeredBy
When an agent has multiple subscriptions but only one should chain to another agent, use thetriggeredBy filter. This field contains the subscription name that triggered the completing run.
Agents needed: worker (has multiple cue subscriptions), reviewer
The worker agent’s .maestro/cue.yaml:
reviewer agent’s .maestro/cue.yaml:
triggeredBy filter also supports glob patterns: triggeredBy: "implement-*" matches any subscription name starting with implement-.
Research Swarm
Fan out a question to multiple agents, then fan in to synthesize results. Agents needed:coordinator, researcher-a, researcher-b, researcher-c
The coordinator agent’s .maestro/cue.yaml:
PR Review with Targeted Follow-Up
Auto-review new PRs, then selectively notify a security reviewer only for PRs that touch auth code. Agents needed:pr-reviewer, security-reviewer
The pr-reviewer agent’s .maestro/cue.yaml:
security-reviewer agent’s .maestro/cue.yaml:
TODO Task Queue
Watch a markdown file for unchecked tasks and work through them sequentially. Agents needed:task-worker
Multi-Environment Deploy
Fan out deployments to staging, production, and docs after a build passes. Agents needed:builder, deploy-staging, deploy-prod, deploy-docs
The builder agent’s .maestro/cue.yaml:
builder (e.g., deploy-staging):
Issue Triage Bot
Auto-triage new GitHub issues by labeling and assigning them. Agents needed:triage-bot
Debate Pattern
Two agents analyze a problem independently, then a third synthesizes their perspectives. Agents needed:advocate, critic, judge
The config that triggers the debate (on any agent with visibility):
judge agent’s .maestro/cue.yaml:
Scheduled Report with Conditional Chain
Generate an hourly report, but only notify a summary agent when there’s meaningful activity. Agents needed:reporter, summarizer
The reporter agent’s .maestro/cue.yaml:
summarizer agent’s .maestro/cue.yaml:
CLI-Triggered Code Review
Set up an on-demand code review that agents or CI can trigger from the command line. Agents needed:reviewer
The reviewer agent’s .maestro/cue.yaml:
CI/CD Deploy Pipeline
Trigger a deploy from CI or scripts, passing the environment as the prompt. Agents needed:deployer
The deployer agent’s .maestro/cue.yaml:
One-Time Tasks and Reminders
Schedule a single action tied to a wall-clock moment - “in 20 minutes do X”, “tomorrow at 9am email me a summary”, “remind me at 4pm to push the rc branch”. These are authored exclusively throughmaestro-cli cue schedule (the CLI handles ISO formatting, timezone offsets, and writes directly to the owning agent’s .maestro/cue.yaml). The subscriptions self-destruct from the YAML after they fire.
See time.once event reference for the full schema.
Schedule an agent run 20 minutes from now:
.maestro/cue.yaml):
--notify switches the dispatched action to notify. --sticky marks the toast as dismissible so it stays on screen until the user clicks it. Clicking the toast jumps to the owning agent.
Listing and cancelling pending one-time tasks:
--list only shows enabled, unfired time.once subs - completed and expired ones have already self-destructed. --cancel deletes the sub from cue.yaml in place.