@oliverpople/agency-x
v6.1.0
Published
π **Transform feature requests into production-ready code in seconds**
Maintainers
Readme
Agency-X: AI-Powered Development Team
π Transform feature requests into production-ready code in seconds
Agency-X is an intelligent orchestration system that simulates a complete software development team using 16 specialized AI agents. From a simple feature prompt, it generates comprehensive project specifications, code, tests, documentation, and deployment plans.
β¨ Features
- π― Complete Project Generation: From requirements to deployment in under 30 seconds
- π€ 16 Specialized Agents: Product Manager, Frontend/Backend Developers, QA Engineer, Security Analyst, and more
- ποΈ Voice Narration: Optional text-to-speech progress updates
- π Comprehensive Output: Code, tests, documentation, security reports, release plans
- π Resume Capability: Continue interrupted sessions
- ποΈ SaaS Integration Ready: Perfect for embedding in your applications
- π¨ AI Assistant Compatible: Works seamlessly with Cursor, Claude Codebase, and Warp AI
- β‘ Smart LLM Routing: Automatic fallback between Anthropic Claude and OpenAI
- π‘οΈ Robust Error Recovery: Graceful handling of agent failures with detailed reporting
- π Progress Tracking: Real-time completion rates and success statistics
π’ The AI Development Team
Phase 1 - Requirements & Architecture:
- π Product Manager: Defines specifications, user stories, acceptance criteria
- π¨ UX Designer: Creates wireframes and user experience guidelines
- βοΈ Copywriter: Generates user-facing content and microcopy
Phase 2 - Development:
- π» Frontend Developer: React/Vue/Angular components and interfaces
- β‘ Backend Developer: APIs, databases, server logic
- π§ Fullstack Integrator: Ensures seamless frontend-backend integration
Phase 3 - Quality & Security:
- π§ͺ QA Engineer: Comprehensive test suites and quality assurance
- π Security Engineer: Security audits and vulnerability assessments
- ποΈ Infrastructure Engineer: Docker, deployment configurations
- π Documentation Agent: Technical documentation and guides
Phase 4 - Intelligence & Analytics:
- π€ AI Prompt Engineer: AI integration and prompt optimization
- π Data Engineer: Analytics, data pipelines, and insights
Phase 5 - Review & Validation:
- π Code Reviewer: Code quality and best practices analysis
- π€ Assumption Challenger: Critical thinking and edge case identification
- β€οΈ User Empathy Agent: User experience and accessibility insights
Phase 6 - Release:
- π Release Manager: Deployment strategy and release planning
π Quick Start
Installation
Option 1: NPM Package (Recommended)
# Install the package
npm install @oliverpople/agency-x
# Use directly with npx
npx subagents --feature "Your feature description"Option 2: Clone and Build
# Clone the repository
git clone https://github.com/oliverpople/agency-x.git
cd agency-x
# Install dependencies
npm install
# Build the project
npm run buildEnvironment Setup
Create a .env file:
# Required: LLM API Keys
ANTHROPIC_API_KEY=your-anthropic-api-key
OPENAI_API_KEY=your-openai-api-key
# Optional: Configuration
DEBUG=falseBasic Usage
Using NPM Package:
# Generate a complete feature
npx subagents --feature "Build a user authentication system"
# Use OpenAI instead of Claude (default)
npx subagents --feature "Create a payment system" --llm openai
# OpenAI with reliable execution (recommended)
npx subagents --feature "Create a BI dashboard" --llm openai --concurrent 1
# With voice narration
npx subagents --feature "Create a dashboard with analytics" --voice
# Resume a previous session
npx subagents --resume SPEC-20250807-ABC123
# Verbose output for debugging
npx subagents --feature "Build an API" --verboseUsing Local Build:
# Generate a complete feature
node dist/cli/index.js --feature "Build a user authentication system"
# With voice narration
node dist/cli/index.js --feature "Create a dashboard with analytics" --voiceπ CLI Options
| Flag | Description | Example |
| -------------- | -------------------------------- | --------------------------- |
| --feature | Feature description to build | "Create a payment system" |
| --resume | Resume from session ID | SPEC-20250807-ABC123 |
| --voice | Enable audio narration | --voice |
| --concurrent | Max parallel agents (default: 5) | --concurrent 3 |
| --verbose | Show detailed logs | --verbose |
| --llm | LLM provider (claude or openai, default: claude) | --llm openai |
| --help | Show help information | --help |
π€ LLM Provider Guidelines
Anthropic Claude (Default)
- Recommended Concurrency:
--concurrent 3-5(default: 5) - Best For: Comprehensive analysis, detailed outputs, complex reasoning
- Performance: ~20-30 seconds with high reliability
OpenAI GPT
- Recommended Concurrency:
--concurrent 1-2for best reliability - Best For: Code generation, structured outputs, faster responses
- Performance: ~40-60 seconds with sequential execution
For Maximum Reliability with OpenAI:
# 100% success rate (recommended)
npx subagents --llm openai --feature "your feature" --concurrent 1
# Faster with good reliability
npx subagents --llm openai --feature "your feature" --concurrent 2Why Different Concurrency?
OpenAI's API architecture handles concurrent requests differently than Claude. Using --concurrent 1 with OpenAI ensures all 16 agents complete successfully by avoiding race conditions and rate limiting issues.
π Output Structure
Each session generates a comprehensive JSON file in ./sessions/:
{
"specId": "SPEC-20250807-ABC123",
"featurePrompt": "Build a user authentication system",
"spec": {
"title": "User Authentication System",
"userStories": [...],
"acceptanceCriteria": [...]
},
"agents": {
"productManager": { "output": "...", "completed": true },
"frontendDeveloper": { "output": "React components...", "completed": true },
"backendDeveloper": { "output": "API endpoints...", "completed": true },
"qaEngineer": { "output": "Test suites...", "completed": true },
// ... 12 more agents
},
"metadata": {
"createdAt": "2025-08-07T08:00:00.000Z",
"version": "1.0.0"
}
}π» Programmatic Usage
import { runOrchestrator } from "@oliverpople/agency-x";
const result = await runOrchestrator({
feature: "Build a user dashboard",
voice: false,
maxConcurrent: 3,
onProgress: (status) => {
console.log(`Progress: ${status.completed}/${status.total}`);
},
});
console.log("Generated session:", result.specId);π¨ AI Assistant Integration
Agency-X outputs are designed to work seamlessly with AI coding assistants:
Cursor AI:
- Generate project specs with Agency-X
- Import the session JSON into your Cursor project
- Use Cursor's AI to refine and enhance the generated code
Claude Codebase:
- Run Agency-X to generate comprehensive specifications
- Upload the session file to Claude for context
- Ask Claude to adapt or extend the generated code
Warp AI Terminal:
- Generate features using Agency-X CLI
- Use Warp's AI to help implement deployment steps
- Get terminal assistance for debugging and optimization
π§ͺ Testing
# Run all tests
npm test
# Run voice functionality tests
npm test -- src/__tests__/voice-simple.test.ts
# Test with voice activation (you'll hear audio)
npx jest src/__tests__/voice-simple.test.ts --verboseποΈ Architecture
Agent Orchestration
Agents run in dependency-based phases:
Phase 1: Product Manager (defines requirements)
β
Phase 2: Frontend & Backend Developers (parallel)
β
Phase 3: Fullstack Integrator + UX + Copy (parallel)
β
Phase 4: QA + Security + Infrastructure + Docs (parallel)
β
Phase 5: AI + Data Engineers (parallel)
β
Phase 6: Review + Validation Agents (parallel)
β
Phase 7: Release Manager (final output)Error Recovery
- Retry Logic: Configurable retry attempts with exponential backoff
- Critical Agents: System fails fast if critical agents (Product, Dev, QA, Release) fail
- Non-Critical Agents: Continue execution if supporting agents fail
- Session Persistence: All progress saved automatically
LLM Routing
- Anthropic Claude: Primary for most agents
- OpenAI GPT: Fallback and specialized tasks
- Automatic Failover: Seamless switching on rate limits/errors
π Documentation
π€ Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and add tests
- Run tests:
npm test - Commit your changes:
git commit -am 'Add feature' - Push to the branch:
git push origin feature-name - Submit a pull request
π Troubleshooting
Common Issues:
- Voice not working: Install system TTS dependencies (
brew install espeakon macOS) - API rate limits: Reduce
--concurrentflag or add delays - OpenAI agents failing: Use
--concurrent 1for 100% reliability with OpenAI - Memory issues: Lower concurrency for large features
- Network timeouts: Check API keys and internet connection
- Some agents not completing: Try sequential execution with
--concurrent 1
Debug Mode:
# Enable verbose logging
node dist/cli/index.js --feature "test" --verbose
# Check session files
ls -la sessions/
cat sessions/SPEC-*.json | jq '.metadata'π Performance
- Average Generation Time: 20-30 seconds for complete features
- Agent Success Rate: 75-95% depending on complexity and API availability
- Concurrent Agents: Up to 10 parallel (recommended: 3-5)
- Session File Size: 10-50KB depending on feature complexity
- Memory Usage: ~100MB during peak orchestration
- LLM Fallback: Automatic provider switching for maximum reliability
π οΈ Roadmap
- [x] NPM package publication (@oliverpople/[email protected])
- [x] Smart LLM routing with automatic fallback
- [x] Robust error recovery and progress tracking
- [ ] Web dashboard for session management
- [ ] Additional LLM providers (Gemini, Cohere)
- [ ] Custom agent definitions
- [ ] Template library for common patterns
- [ ] Integration with popular IDEs (VS Code extension)
- [ ] Real-time collaboration features
- [ ] GitHub Actions for CI/CD workflows
π License
ISC Β© Oliver Pople
π Acknowledgments
- Anthropic for Claude API
- OpenAI for GPT API
- The open-source community for inspiration and tools
β‘ Transform your ideas into production-ready code with Agency-X
Get started today and experience the future of AI-powered development!
