Agents
Maestro uses specialized agents for each stage of the pipeline. Each agent has its own system prompt, model configuration, and execution logic.
Implementation Agent
Purpose: Write code to fulfill the task requirements.
How it works:
- Reads the task description and any linked issues
- Explores the project codebase to understand structure, conventions, and patterns
- Writes the implementation — new files, modified files, tests
- Creates a Git branch and opens a pull request
- Attaches code snippets and file paths to the task activity log
Configuration:
model— which LLM to use (default: Claude)system_prompt— custom instructions for the agentmax_file_reads— limit on how many files the agent can read per runbranch_prefix— prefix for created branches (default:maestro/)
Review Agent
Purpose: Perform inline code review on pull requests.
How it works:
- Fetches the PR diff from GitHub
- Reads each changed file in context
- Leaves inline comments on specific lines where issues are found
- Comments are categorized:
bug,style,performance,security,suggestion - If no issues found, approves the review
Configuration:
model— which LLM to usesystem_prompt— review criteria and style guidelinesseverity_threshold— minimum severity to flag (default:suggestion)max_comments— cap on number of comments per review
Risk Profile Agent
Purpose: Assess the risk of merging a change.
How it works:
- Analyzes the PR diff for complexity metrics
- Checks which modules and dependencies are affected (blast radius)
- Verifies test coverage for changed code
- Produces a risk score:
LOW,MEDIUM, orHIGH LOWrisk tasks proceed automatically;MEDIUMandHIGHrequire human approval
Configuration:
model— which LLM to usesystem_prompt— risk assessment criteriaauto_merge_threshold— risk level that can auto-merge (default:LOW)
Deployment Agent
Purpose: Merge pull requests and monitor CI.
How it works:
- Merges the approved PR into the target branch
- Monitors CI pipeline status (GitHub Actions, etc.)
- Reports success or failure
- On failure, attaches CI logs to the task
Configuration:
merge_strategy—squash,merge, orrebase(default:squash)require_ci_pass— wait for CI before marking as deployed (default:true)target_branch— branch to merge into (default:main)
Monitor Agent
Purpose: Post-deployment health monitoring.
How it works:
- Watches application logs and error rates after deployment
- Compares error rates to pre-deployment baseline
- Flags anomalies if error rates spike
- Can trigger rollback alerts
Configuration:
monitoring_window— how long to watch after deploy (default:30m)error_threshold— percentage increase that triggers an alert (default:50%)log_sources— which log streams to watch
Custom agents
You can create custom agents using the plugin framework. See Plugins for details.