Agentic Quality Engineering Fleet - AI-driven quality management platform Features: - 16 specialized QE agents for comprehensive testing - AI-powered test generation with 95% coverage targets - O(log n) sublinear algorithms for massive scale - Parallel test execution with intelligent orchestration - Real-time coverage analysis and gap detection - Smart quality gates with ML-driven decisions - Security scanning (SAST, DAST, dependency analysis) - Performance testing with load orchestration - Flaky test detection with automatic stabilization - API contract validation with breaking change detection - Test data generation (10,000+ records/sec) - Production intelligence (convert incidents to tests) - Chaos engineering for resilience testing - MCP integration with Claude Code - Multi-framework support (Jest, Mocha, Cypress, Playwright) Architecture: - TypeScript implementation - MCP (Model Context Protocol) integration - Claude Code agent orchestration - Event-driven agent coordination - Distributed fleet management - Cross-session memory persistence Documentation: - Complete API documentation (TypeDoc) - User guides (Getting Started, MCP Integration, Test Generation, etc.) - Architecture deep-dive - CLI reference - Contributing guidelines - MIT License Tech Stack: - TypeScript 5.3+ - Node.js 18+ - @anthropic-ai/sdk ^0.64.0 - @modelcontextprotocol/sdk ^1.18.2 - Jest for testing - Winston for logging - SQLite for persistence Project Structure: - src/ - Source code (agents, core, MCP, CLI) - tests/ - Comprehensive test suite - docs/ - Complete documentation - .claude/ - Agent definitions and commands - config/ - Configuration files 🤖 Generated with Claude Code https://claude.com/claude-code Co-Authored-By: Claude <noreply@anthropic.com>
5.8 KiB
CLAUDE.md Integration for Agentic QE Fleet
Overview
The Agentic QE Fleet now includes automatic CLAUDE.md integration. When initializing AQE agents in any project, the system automatically updates or creates the project's CLAUDE.md file with essential AQE rules and best practices.
Features
Automatic CLAUDE.md Management
- New Projects: Creates CLAUDE.md with complete AQE configuration
- Existing Projects: Appends AQE rules while preserving existing content
- Idempotent Updates: Running init multiple times won't duplicate rules
- Target Directory Support: Initialize AQE in any project directory
What Gets Added
The following sections are automatically added to CLAUDE.md:
- 🚀 AGENTIC QE FLEET - CRITICAL RULES
- Project structure explanation
- Available QE agents and their capabilities
- Agent usage examples
- Best practices
- Common pitfalls
- Command reference
Usage
Initialize in Current Directory
aqe init
This will:
- Create
.claude/agents/directory with 6 QE agents - Create/update
CLAUDE.mdwith AQE rules - Initialize Claude Flow hooks
- Store fleet configuration
Initialize in Target Directory
aqe init /path/to/project
This will initialize AQE in the specified project directory.
Using the Shorthand Command
aqe init [directory]
The aqe command is the recommended shorthand for all AQE operations. It's easier to type and remember.
CLAUDE.md Structure
The AQE section added to CLAUDE.md includes:
📦 Project Structure
Explains why AQE is in a subfolder and the modular monorepo pattern.
🤖 Available QE Agents
Lists all 6 QE agents with their key capabilities:
qe-test-generator: AI-powered test creationqe-test-executor: Parallel test executionqe-coverage-analyzer: O(log n) coverage optimizationqe-quality-gate: Intelligent go/no-go decisionsqe-performance-tester: Load testing and bottleneck detectionqe-security-scanner: SAST/DAST integration
⚡ Agent Usage
Shows how to spawn agents using:
- Claude Code Task tool
- MCP tools for coordination
🎯 Best Practices
Key recommendations for effective AQE usage.
⚠️ Common Pitfalls
Warns about common mistakes and misconceptions.
🔧 Commands
Quick reference for essential AQE commands.
Implementation Details
Update Logic
The updateClaudeMD() function in bin/agentic-qe-real:
-
Checks for existing CLAUDE.md
- If exists: Appends or updates AQE section
- If not exists: Creates new file with AQE rules
-
Prevents Duplication
- Detects existing AQE sections
- Replaces old sections with updated content
- Uses markers to identify AQE content boundaries
-
Preserves Existing Content
- Never removes non-AQE content
- Maintains project-specific configurations
- Appends AQE rules at the end if not present
Integration Points
The CLAUDE.md update happens during:
-
Fleet Initialization (
aqe init)- Automatically updates CLAUDE.md
- No additional command needed
-
Agent Registration
- Creates agent definitions in
.claude/agents/ - References in CLAUDE.md for visibility
- Creates agent definitions in
-
Claude Flow Integration
- Hooks are documented in CLAUDE.md
- Memory patterns explained for coordination
Testing
Test Coverage
The tests/test-claude-md-update.js script validates:
-
New CLAUDE.md Creation
- Verifies file creation in empty projects
- Confirms AQE rules are present
-
Existing CLAUDE.md Update
- Tests appending to existing files
- Preserves original content
-
Idempotency
- Running init twice doesn't duplicate rules
- Updates replace old AQE sections cleanly
Running Tests
node tests/test-claude-md-update.js
Expected output:
- ✅ Test 1 PASSED: CLAUDE.md created with AQE rules
- ✅ Test 2 PASSED: Existing CLAUDE.md updated with AQE rules
- ✅ Test 3 PASSED: AQE rules not duplicated on second run
Benefits
For Developers
- Instant Documentation: No manual CLAUDE.md setup required
- Consistent Configuration: All projects get the same AQE rules
- Best Practices Built-in: Automatically includes tips and warnings
- Version Control Friendly: Changes tracked in Git
For Claude Code
- Context Awareness: Claude Code understands AQE configuration
- Agent Discovery: Agents visible in
.claude/agents/ - Command Reference: Quick access to AQE commands
- Integration Points: Hooks and memory patterns documented
Troubleshooting
CLAUDE.md Not Updated
If CLAUDE.md isn't updated:
- Check write permissions in target directory
- Verify
aqeis in PATH - Run with explicit target:
aqe init .
Duplicate AQE Sections
If you see duplicate sections:
- Manually remove one section
- Run
agentic-qe initagain - The update logic will handle it correctly
Agents Not Visible
If agents aren't in .claude/agents/:
- Check the target directory is correct
- Verify initialization completed successfully
- Look for
.claude/aqe-fleet.jsonconfiguration
Future Enhancements
Potential improvements for CLAUDE.md integration:
- Custom Templates: Allow projects to define their own AQE templates
- Version Tracking: Track AQE version in CLAUDE.md
- Auto-Update: Update CLAUDE.md when agents are modified
- Validation: Verify CLAUDE.md syntax after updates
- Backup: Create backups before modifying existing files
Conclusion
The CLAUDE.md integration ensures every project using Agentic QE Fleet has proper documentation and configuration. This automatic setup reduces onboarding time and ensures consistency across all projects using the QE agents.
For questions or issues, refer to the main Agentic QE documentation or open an issue on GitHub.