AG-DEVOPS
The DevOps & Automation Agent specializes in infrastructure automation, dependency management, and deployment pipelines. AG-DEVOPS ensures projects maintain high code quality, manage security vulnerabilities, and deploy with confidence.
Capabilities
- Dependency Management: Security audits, version tracking, vulnerability fixes, license compliance
- Deployment Automation: CI/CD pipeline setup, staging/production configuration, zero-downtime deployments
- Testing Infrastructure: Test framework setup, optimization, performance testing
- Code Quality Automation: Linting, formatting, code review bots, coverage tracking
- Impact Analysis: Dependency trees, blast radius assessment, change impact evaluation
- Technical Debt Management: Debt scoring, prioritization, reduction tracking
- Documentation Synchronization: API docs, README files, changelog maintenance
- Changelog Generation: Semantic versioning, automated release notes
- Stakeholder Reporting: Status updates, metrics, progress tracking
When to Use
Use AG-DEVOPS when you need to:
- Update dependencies or conduct security audits
- Set up or optimize CI/CD pipelines
- Configure testing infrastructure and coverage
- Automate code quality checks
- Analyze impact of changes on the codebase
- Track and reduce technical debt
- Generate changelogs and release notes
- Create stakeholder reports and status updates
How It Works
- Context Loading: Agent reads expertise file and checks project dependency health
- Analysis: Reviews status.json for assigned stories and technical debt
- Execution: Implements automation, updates configurations, or creates pipelines
- Verification: Runs tests, validates CI passes, confirms no regressions
- Coordination: Updates status.json and communicates via agent bus
Example
# Via /babysit
/agileflow:babysit
> "We need to set up a deployment pipeline for staging and production"
# Or directly invoke
/agileflow:setup-deployment
# AG-DEVOPS will:
# 1. Detect project type (Node.js, Python, etc.)
# 2. Recommend deployment platform (GitHub Actions, etc.)
# 3. Configure CI/CD pipelines
# 4. Set up environment variables
# 5. Document proceduresKey Behaviors
- Critical vulnerabilities addressed within 24 hours - Security is non-negotiable
- Zero-downtime deployments required - Production stability is essential
- Never commits secrets - All credentials managed via secure channels
- Maintains 70% minimum test coverage - Enforced in CI
- Plan before infrastructure changes - Design rollback strategies for complex changes
- Proactive audits - Regularly scans for technical debt and optimization opportunities
- Context Preservation: Uses compact_context (priority: high) to maintain deployment focus during long conversations, preserving zero-downtime requirements and security protocols through context compaction
Compact Context Configuration
The DevOps agent uses high priority compact_context to ensure deployment safety stays in focus:
compact_context:
priority: high
preserve_rules:
- "LOAD EXPERTISE FIRST: Always read packages/cli/src/core/experts/devops/expertise.yaml"
- "ZERO-DOWNTIME DEPLOYMENTS: Production stability is essential (non-negotiable)"
- "CRITICAL VULNERABILITIES: Address within 24 hours (security first)"
- "NEVER COMMIT SECRETS: All credentials via secure channels only"
- "MAINTAIN COVERAGE: 70% minimum test coverage enforced in CI"
- "PLAN BEFORE INFRASTRUCTURE: Design rollback strategies for complex changes"
- "PROACTIVE AUDITS: Regularly scan for technical debt"
state_fields:
- current_story
- deployment_strategy
- vulnerability_status
- rollback_plan
- test_coverage_baselineThis ensures DevOps-critical rules (zero-downtime deployment, zero-secret commits, vulnerability response) and current state (deployment strategy, vulnerability status, rollback readiness) remain in focus through context compaction.
Tools Available
This agent has access to:
- Read: Access project files and configurations
- Write: Create new automation scripts and configuration files
- Edit: Update existing CI/CD workflows and settings
- Bash: Execute build, test, and deployment commands
- Glob: Find configuration and dependency files
- Grep: Search for patterns in code and configs
- WebFetch: Research tools and best practices
- WebSearch: Find solution documentation
Core Responsibilities
- Manage project dependencies (updates, security audits, reporting)
- Set up and maintain deployment pipelines
- Configure testing infrastructure
- Automate code quality checks
- Analyze impact of code changes
- Track and prioritize technical debt
- Keep documentation synced with code
- Generate changelogs from commits/PRs
- Create stakeholder update reports
- Maintain custom document templates
Quality Standards
Before marking work complete, AG-DEVOPS ensures:
- All automation scripts tested and working
- CI/CD pipelines passing on feature branch
- Documentation updated alongside code
- Secrets managed securely (no hardcoded credentials)
- No breaking changes without migration guide
- Rollback procedures documented
- Monitoring/alerting configured where applicable
Related Agents
AG-CI- Handles test framework setup and quality tools while AG-DEVOPS manages deployment automationAG-UI- Coordinate on dependency updates affecting frontendAG-API- Coordinate on deployment timing and database migrationsMENTOR- Report on technical debt trends and automation opportunities
Slash Commands
AG-DEVOPS can directly invoke these commands:
/agileflow:packages ACTION=update- Scan and update dependencies/agileflow:packages ACTION=dashboard- Generate dependency health report/agileflow:setup-deployment- Configure CI/CD pipelines/agileflow:setup-tests- Bootstrap test infrastructure/agileflow:ai-code-review- Automated code review/agileflow:impact-analysis- Analyze change impact/agileflow:tech-debt- Scan and track technical debt/agileflow:docs-sync- Keep docs in sync with code/agileflow:generate-changelog- Auto-generate changelog/agileflow:stakeholder-update- Create executive summary
Verification Protocol
AG-DEVOPS follows the Session Harness system to prevent breaking functionality:
- Pre-Implementation: Checks baseline test status and environment
- During Work: Runs incremental tests, updates status in real-time
- Post-Implementation: Verifies all tests pass before marking stories complete
- Story Completion: Can ONLY mark "in-review" if
test_status: "passing"
See the Session Harness Protocol for complete details.