AgileFlow

Agents

PreviousNext

131 specialized AI agents for every aspect of software development. Each agent is an expert in their domain, ready to help with specific tasks.

Agents

AgileFlow includes 131 specialized agents, each an expert in their domain. Agents can be spawned by the /babysit mentor or invoked directly using the Task tool.

How Agents Work

  1. Expertise-First: Each agent loads their expertise file to understand your codebase patterns
  2. Context-Aware: Agents read project docs, status.json, and recent changes
  3. Context Preservation: Enhanced agents use compact_context configuration to preserve critical knowledge during conversation compaction
  4. Collaborative: Agents communicate via the message bus and update story status
  5. Self-Improving: Agents update their expertise after completing work

Compact Context Feature

To maintain focus during long conversations, AgileFlow agents use compact_context configuration to preserve critical information when context is automatically compacted. This ensures agents don't lose important rules, state, and priorities mid-conversation.

How It Works

Each agent has a compact_context configuration with three components:

Priority Level: Determines how aggressively the agent's context is preserved

  • critical - Always preserved (highest priority agents like mentor, api, ui)
  • high - Preserved in most compactions (important agents)
  • medium - Preserved when possible (standard agents)
  • low - First to be removed (rare, used for advisory agents)

Preserve Rules: Core behavioral rules that must never be lost

  • Agent identity and role
  • Critical constraints and safety rules
  • Must-follow procedures (e.g., "Load expertise first")
  • State management requirements
  • Coordination protocols

State Fields: Dynamic state that changes during work

  • Current story being implemented (US-#### ID)
  • Task progress and completion percentage
  • Known blockers and dependencies
  • Next prioritized actions
  • Test/build status

Example Configuration

compact_context:
  priority: critical
  preserve_rules:
    - "LOAD EXPERTISE FIRST: Read packages/cli/src/core/experts/api/expertise.yaml"
    - "VERIFY TEST BASELINE: Check test_status before starting"
    - "PRIORITIZE AG-UI BLOCKERS: Unblock UI stories waiting on API endpoints"
    - "DIFF-FIRST APPROACH: Show edits with confirmation before applying"
  state_fields:
    - current_story
    - endpoints_implemented
    - blocked_ui_stories
    - test_status_baseline

When Claude Code compresses context, it preserves these rules and state fields for all agents, ensuring continuity even after multiple rounds of conversation compaction.

Agent Priority Distribution

  • Critical (4 agents): mentor, api, ui, database
  • High (14 agents): ci, devops, testing, security, documentation, performance, codebase-query, orchestrator, team-coordinator, team-lead, error-analyzer, code-reviewer, multi-expert, browser-qa
  • Medium (27 agents): datamigration, qa, accessibility, monitoring, research, adr-writer, analytics, integrations, mobile, design, compliance, refactor, product, readme-updater, rlm-subcore, council-*, *-consensus (9 consensus coordinators)
  • Low (66 agents): logic-analyzer-, legal-analyzer-, security-analyzer-, perf-analyzer-, test-analyzer-, completeness-analyzer-, seo-analyzer-, ads-audit-, brainstorm-analyzer-*, epic-planner, api-validator, schema-validator, ui-validator

This tiered approach ensures the most critical agents always maintain focus while others gracefully degrade context when needed.

Agent Categories

Core Development

The primary agents for building features:

AgentDescription
mentorEnd-to-end implementation guidance from idea to PR
epic-plannerBreak down features into epics and stories
databaseSchema design, migrations, query optimization
apiBackend services, business logic, data layer
uiFrontend components, styling, accessibility

Quality & Testing

Agents focused on code quality:

AgentDescription
testingTest strategy, patterns, coverage optimization
qaTest planning, quality metrics, release readiness
securityVulnerability analysis, auth patterns, compliance
performanceOptimization, profiling, benchmarking
accessibilityWCAG compliance, assistive technology support

Infrastructure

Agents for DevOps and operations:

AgentDescription
devopsDeployment setup, testing infrastructure, quality checks
ciCI/CD workflows, linting, type checking, coverage
monitoringObservability, logging, alerting, dashboards
datamigrationZero-downtime migrations, data validation, rollback

Documentation & Research

Agents for knowledge management:

AgentDescription
documentationTechnical docs, API docs, user guides
researchGathering information, research notes, best practices
adr-writerArchitecture Decision Records
readme-updaterAuditing and updating documentation files
codebase-queryIntelligent codebase search using programmatic queries

Specialized Domains

Agents for specific use cases:

AgentDescription
mobileReact Native, Flutter, cross-platform mobile
integrationsThird-party APIs, webhooks, payment processors
analyticsEvent tracking, metrics dashboards, data analysis
complianceGDPR, HIPAA, SOC2, audit trails
designUI/UX design systems, visual design, patterns

Meta Agents

Agents that coordinate other agents:

AgentDescription
multi-expertDeploys 3-5 experts on the same problem for high-confidence answers
orchestratorMulti-expert orchestrator that coordinates parallel domain experts
team-coordinatorOrchestrates builder+validator pairs for systematic verification
team-leadNative Agent Teams lead that coordinates teammate sessions in delegate mode
productRequirements analysis, user stories, acceptance criteria
refactorTechnical debt cleanup, legacy code modernization

Security Analysis

Agents for automated security vulnerability detection:

AgentDescription
security-analyzer-injectionSQL injection, command injection, XSS, template injection, path traversal
security-analyzer-authAuthentication weaknesses, password handling, session management, token security
security-analyzer-inputInput validation, sanitization, type coercion attacks, prototype pollution
security-analyzer-secretsHardcoded secrets, API keys in code, credential exposure, insecure storage
security-analyzer-depsKnown vulnerable dependencies, outdated packages, supply chain risks
security-analyzer-apiAPI security, rate limiting, CORS misconfiguration, data exposure
security-analyzer-authzAuthorization flaws, IDOR, privilege escalation, access control gaps
security-analyzer-infraInfrastructure security, headers, TLS configuration, CSP, HSTS
security-consensusConsensus coordinator for security audit findings

Logic Analysis

Agents for automated code analysis and bug detection:

AgentDescription
logic-analyzer-edgeEdge case detection for boundary conditions and off-by-one errors
logic-analyzer-flowControl flow analysis for dead code and unreachable branches
logic-analyzer-invariantState consistency analysis for invariant violations
logic-analyzer-raceRace condition and concurrency issue detection
logic-analyzer-typeType safety analysis for coercion and null issues
logic-consensusConsensus coordinator for logic audit voting

Agents for automated legal risk analysis and compliance auditing:

AgentDescription
legal-analyzer-privacyPrivacy and data protection (GDPR, CCPA, cookie consent)
legal-analyzer-termsTerms of service, disclaimers, and legal documents
legal-analyzer-a11yAccessibility compliance (ADA, WCAG, Section 508)
legal-analyzer-licensingOpen source license compliance and IP risks
legal-analyzer-consumerConsumer protection, dark patterns, FTC/COPPA
legal-analyzer-securitySecurity legal obligations (breach notification, PCI-DSS)
legal-analyzer-aiAI compliance (EU AI Act, FTC disclosure, bias)
legal-analyzer-contentContent moderation, DMCA, Digital Services Act
legal-analyzer-internationalInternational compliance (LGPD, PIPL, data localization)
legal-consensusConsensus coordinator for legal audit findings

Performance Analysis

Agents for automated performance bottleneck detection:

AgentDescription
perf-analyzer-queriesN+1 queries, unindexed lookups, missing pagination, ORM anti-patterns
perf-analyzer-renderingUnnecessary re-renders, missing memoization, expensive render computations
perf-analyzer-memoryMemory leaks, event listener cleanup, closure captures, large object retention
perf-analyzer-bundleLarge imports, missing tree-shaking, missing dynamic imports, duplicate dependencies
perf-analyzer-computeSync I/O on main thread, CPU-intensive loops, blocking operations
perf-analyzer-networkHTTP waterfall, missing request batching, no compression, large payloads
perf-analyzer-cachingMissing memoization, redundant computations, no HTTP cache headers
perf-analyzer-assetsUnoptimized images, render-blocking resources, missing lazy loading
perf-consensusConsensus coordinator for performance audit findings

Test Analysis

Agents for automated test quality analysis:

AgentDescription
test-analyzer-coverageUntested critical paths, missing error path tests, low branch coverage
test-analyzer-fragilityTiming-dependent tests, order-dependent tests, flaky indicators
test-analyzer-mockingOver-mocking, mock leakage, mocking what you own, testing mocks not code
test-analyzer-assertionsWeak assertions, missing negative tests, snapshot overuse
test-analyzer-structureMissing describe/it nesting, unclear test names, duplication
test-analyzer-integrationMissing API endpoint tests, no E2E coverage, unit-only suites
test-analyzer-maintenanceDead tests, outdated assertions, tests passing for wrong reasons
test-analyzer-patternsTesting private methods, deep mock chains, oversized snapshots
test-consensusConsensus coordinator for test audit findings

SEO Analysis

Agents for automated search engine optimization audit and improvements:

AgentDescription
seo-analyzer-technicalTechnical SEO: site structure, crawlability, indexation, XML sitemaps, robots.txt
seo-analyzer-contentOn-page content optimization: keywords, meta tags, headings, keyword density
seo-analyzer-imagesImage optimization: alt text, compression, format, responsive images, lazy loading
seo-analyzer-performancePerformance impact on SEO: Core Web Vitals, page speed, rendering, JavaScript
seo-analyzer-schemaStructured data: schema.org markup, rich snippets, SERP features
seo-analyzer-sitemapSitemap optimization: coverage, freshness, priority, URL patterns
seo-consensusConsensus coordinator for SEO audit findings

Brainstorm Analysis

Agents for analyzing product opportunities and feature ideation:

AgentDescription
brainstorm-analyzer-featuresFeature opportunity analysis: competitive gaps, user needs, differentiation
brainstorm-analyzer-uxUser experience improvements: usability, conversion, retention opportunities
brainstorm-analyzer-marketMarket analysis: TAM expansion, segment opportunities, pricing models
brainstorm-analyzer-growthGrowth opportunities: viral loops, engagement metrics, scaling strategies
brainstorm-analyzer-integrationIntegration opportunities: partner networks, API ecosystems, third-party services
brainstorm-consensusConsensus coordinator for brainstorm analysis findings

Advertising Analysis

Agents for automated paid advertising audit and optimization:

AgentDescription
ads-audit-googleGoogle Ads auditor with 74 checks across tracking, spend, structure, keywords, ads, settings
ads-audit-metaMeta/Facebook auditor with 46 checks for Pixel/CAPI, creative, structure, audience
ads-audit-budgetBudget and bidding strategy auditor with 24 checks across allocation, bidding, scaling
ads-audit-creativeCreative quality auditor with 21 checks for copy, video, platform specs, testing
ads-audit-trackingConversion tracking auditor with 7 critical checks for pixels, tags, attribution
ads-audit-complianceCompliance and benchmarks auditor with 18 checks for policy, regulations, performance
ads-consensusConsensus coordinator for advertising audit - aggregates findings into Ads Health Score

Validation

Read-only validator agents that verify implementations:

AgentDescription
api-validatorAPI contract validation and quality gates
schema-validatorDatabase migration and schema validation
ui-validatorUI accessibility and design system validation

AI Council

Three-perspective strategic decision making:

AgentDescription
council-advocateDevil's Advocate - critical examination of risks and blind spots
council-analystNeutral Analyst - objective trade-off evaluation
council-optimistOptimist Strategist - identifies opportunities and success paths

Completeness Analysis

Agents for detecting forgotten features, dead code, and incomplete implementations:

AgentDescription
completeness-analyzer-apiFrontend-backend endpoint mismatches, missing API handlers, orphaned endpoints
completeness-analyzer-conditionalDead feature flags, hardcoded false conditions, unreachable code blocks
completeness-analyzer-handlersEmpty onClick/onSubmit/onChange, console-only handlers, noop callbacks
completeness-analyzer-importsDead exports, orphaned source files, unused dependencies, dead barrel re-exports
completeness-analyzer-routesPlaceholder hrefs, missing route targets, orphaned navigation items
completeness-analyzer-stateUnused useState/useReducer, orphaned context providers, dead store slices
completeness-analyzer-stubsTODO/FIXME comments, empty function bodies, hardcoded mock data, placeholder text
completeness-consensusConsensus coordinator for completeness audit findings

Debugging & Analysis

Agents for debugging and problem diagnosis:

AgentDescription
error-analyzerError diagnosis, stack trace analysis, root cause identification
browser-qaAgentic browser automation for exploratory UI testing with Playwright
code-reviewerComprehensive code review with security and performance analysis
rlm-subcoreDocument search sub-agent for RLM pattern (cost-optimized)

Spawning Agents

The /babysit mentor automatically detects which agent is needed:

/agileflow:babysit
# Then describe your task - babysit will spawn the right agent

Direct Spawning

You can also spawn agents directly using the Task tool:

Task(
  description: "Design user sessions schema",
  prompt: "Create a sessions table to track user logins with proper indexes",
  subagent_type: "agileflow-database"
)

Parallel Agents

For full-stack features, spawn multiple agents simultaneously:

# API work
Task(subagent_type: "agileflow-api", run_in_background: true, ...)
 
# UI work (runs in parallel)
Task(subagent_type: "agileflow-ui", run_in_background: true, ...)

Agent Communication

Agents coordinate through docs/09-agents/:

docs
09-agents
status.json— Story statuses and assignments
bus
log.jsonl— Agent messages and handoffs

Status Updates

Agents update status.json as they work:

{
  "stories": {
    "US-0042": {
      "status": "in-progress",
      "owner": "AG-DATABASE",
      "summary": "Created sessions table with indexes"
    }
  }
}

Message Bus

Agents log coordination messages:

{"timestamp": "2025-12-24T10:00:00Z", "type": "assign", "story": "US-0042", "owner": "AG-DATABASE"}
{"timestamp": "2025-12-24T11:00:00Z", "type": "handoff", "story": "US-0042", "from": "AG-DATABASE", "to": "AG-API"}

Best Practices

  1. Let babysit choose: The mentor knows which agent fits best
  2. Provide context: Tell agents about existing patterns in your codebase
  3. Review updates: Check status.json changes agents make
  4. Use multi-expert for uncertainty: When you need high confidence, deploy multiple experts