@mcpcodex/syndicodex
v1.0.9
Published
π Revolutionary Autonomous Development Intelligence CLI by Ethical AI Syndicate & MCPCodex. Multi-agent orchestration for autonomous code generation, analysis, and project management.
Maintainers
Readme
π SyndiCodex
Revolutionary Autonomous Development Intelligence by Ethical AI Syndicate & MCPCodex
A groundbreaking CLI tool that harnesses multi-agent orchestration for autonomous code generation, analysis, and project management. Built with TypeScript and designed to revolutionize your development workflow through ethical AI innovation.
β¨ Revolutionary Features
π€ Autonomous Development Intelligence
- Multi-Agent Orchestration: Specialized AI agents working in harmony for complex development tasks
- Self-Healing Code: Autonomous error detection, correction, and optimization
- Adaptive Learning: Cross-project knowledge sharing and pattern recognition
- Production Monitoring: Real-time validation and deployment readiness assessment
π§ Advanced AI Capabilities
- Natural Language to Code: Transform requirements into production-ready code
- Intelligent Code Analysis: Deep codebase understanding with 60+ specialized services
- Context-Aware Generation: Understands your entire project ecosystem
- Quality Assurance: Automated testing, security scanning, and performance optimization
π Enterprise-Grade Features
- Workflow Orchestration: End-to-end autonomous development workflows
- Interactive Chat Mode: Conversational interface with memory and context persistence
- Multi-Language Mastery: TypeScript, JavaScript, Python, Go, Rust, and more
- Plugin Ecosystem: Extensible architecture with MCP (Model Context Protocol) integration
π¦ Installation
Global Installation (Recommended)
npm install -g syndicodexLocal Installation
npm install syndicodex
# or
yarn add syndicodex
# or
pnpm add syndicodexπ― Quick Start
Interactive Setup:
syndicodex onboardingStart Autonomous Workflow:
syndicodex orchestrate "build a secure user management API"Analyze & Optimize:
syndicodex analyze --production-readyQuick Code Generation:
syndicodex generate "JWT authentication middleware with rate limiting"Interactive Chat Mode:
syndicodex chat
π Commands
π― Core Commands
syndicodex onboarding
Interactive first-time setup and configuration wizard.
syndicodex onboardingsyndicodex orchestrate <description>
Launch autonomous development workflows with multi-agent coordination.
# Full autonomous development
syndicodex orchestrate "build a secure REST API with authentication"
# Quick task execution
syndicodex orchestrate "optimize database queries" --type quick
# Production deployment
syndicodex orchestrate "deploy microservice" --environment productionsyndicodex analyze [path]
Analyze codebase structure and patterns.
# Analyze current directory with production readiness assessment
syndicodex analyze
# Analyze specific directory with autonomous intelligence
syndicodex analyze ./src --depth 5 --autonomous
# Production readiness validation
syndicodex analyze --production-ready --security-scan
# Output comprehensive analysis as JSON
syndicodex analyze --output json --comprehensiveOptions:
-d, --depth <number>: Analysis depth (default: 3)-o, --output <format>: Output format (json|text, default: text)--include-tests: Include test files in analysis--exclude <patterns>: Comma-separated patterns to exclude
syndicodex generate <description>
Autonomous code generation with multi-agent intelligence.
# Generate production-ready function
syndicodex generate "email validation with security best practices"
# Generate full-stack component with tests
syndicodex generate "user profile card" --type component --framework react --include-tests
# Interactive autonomous mode
syndicodex generate "authentication middleware" --autonomous --interactive
# Enterprise-grade generation
syndicodex generate "microservice API client with monitoring" \
--type service \
--language typescript \
--style enterprise \
--include-tests \
--production-readyOptions:
-t, --type <type>: Code type (function|class|component|test|file, default: function)-l, --language <lang>: Programming language (default: typescript)-f, --framework <framework>: Framework to use (react|express|etc)-o, --output <path>: Output file path--style <style>: Coding style (functional|oop|mixed, default: functional)--no-tests: Skip test generation--no-comments: Skip comment generation-i, --interactive: Interactive mode with prompts
syndicodex chat
Intelligent multi-agent chat with memory and context persistence.
# Advanced chat with autonomous intelligence
syndicodex chat
# Chat with full project context and memory
syndicodex chat --context ./src --memory
# Enterprise chat with specialized agents
syndicodex chat --agents security,performance,architecture --model claude-3Options:
-m, --model <model>: AI model to use (default: gpt-4)--context <path>: Include project context from path--max-tokens <number>: Maximum tokens per response (default: 2000)
Project Management
agent init
Initialize coding agent in current project.
# Initialize with default settings
agent init
# Force reinitialize
agent init --forceagent config
Manage agent configuration.
# Set configuration value
agent config set openai.api_key sk-your-key-here
agent config set defaults.model gpt-4
agent config set features.autoSave true
# Get configuration value
agent config get openai.api_key
# List all configuration
agent config list
# Show sensitive values
agent config list --show-sensitive
# Delete configuration
agent config delete openai.api_keyagent status
Show current project context and agent status.
# Basic status
agent status
# Detailed status with project info
agent status --verboseβοΈ Configuration
The agent stores configuration in ~/.cli-coding-agent/ by default. You can override this with the CLI_AGENT_CONFIG_DIR environment variable.
Required Configuration
# OpenRouter API Key (required - provides access to multiple AI models with smart selection)
agent config set openrouter.api_key sk-or-v1-your-openrouter-api-key
# Optional: Alternative direct provider keys (if not using OpenRouter)
# agent config set openai.api_key sk-your-openai-api-key
# agent config set anthropic.api_key your-anthropic-api-keyOptional Configuration
# Default AI model
agent config set defaults.model gpt-4
# Temperature for AI responses (0.0-1.0)
agent config set defaults.temperature 0.7
# Maximum tokens per response
agent config set defaults.maxTokens 2000
# Enable auto-save of generated code
agent config set features.autoSave true
# Enable context-aware generation
agent config set features.contextAware trueπ οΈ Development
Prerequisites
- Node.js 16+
- npm, yarn, or pnpm
Setup
# Clone the repository
git clone https://github.com/your-org/cli-coding-agent.git
cd cli-coding-agent
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm run test:coverageProject Structure
cli-coding-agent/
βββ src/
β βββ commands/ # CLI command implementations
β β βββ analyze.ts # Code analysis command
β β βββ generate.ts # Code generation command
β β βββ chat.ts # Interactive chat command
β β βββ init.ts # Project initialization
β β βββ config.ts # Configuration management
β β βββ status.ts # Status reporting
β βββ services/ # Core business logic
β β βββ project-analyzer.ts # Project analysis service
β β βββ code-generator.ts # Code generation service
β β βββ chat-service.ts # Chat/AI interaction service
β βββ utils/ # Utility functions
β β βββ config-manager.ts # Configuration management
β β βββ logger.ts # Logging utilities
β β βββ file-utils.ts # File system utilities
β βββ types/ # TypeScript type definitions
β βββ index.ts # Main CLI entry point
βββ tests/
β βββ unit/ # Unit tests
β βββ integration/ # Integration tests
β βββ setup.ts # Test configuration
βββ bin/ # Executable scripts
βββ dist/ # Compiled JavaScript output
βββ docs/ # DocumentationTesting
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run specific test files
npm test -- analyze.test.ts
# Run tests with coverage
npm run test:coverage
# Run only unit tests
npm run test:unit
# Run only integration tests
npm run test:integrationCode Quality
# Lint code
npm run lint
# Fix linting issues
npm run lint:fix
# Type checking
npm run type-check
# Format code
npm run formatπ§ͺ Examples
Basic Usage Examples
Generate a utility function:
agent generate "create a debounce function that delays execution"Analyze project complexity:
agent analyze --depth 4 --include-testsInteractive chat for debugging:
agent chat
> "Help me debug this React component that's not rendering properly"
> "Show me how to optimize this SQL query"
> "What's the best way to handle errors in this async function?"Advanced Usage Examples
Generate a complete feature:
agent generate "user authentication system with login, register, and password reset" \
--type file \
--framework express \
--language typescript \
--style oopProject scaffolding:
agent generate "REST API project structure" \
--type project \
--framework express \
--include-testsContext-aware generation:
# After running 'agent analyze' to build context
agent generate "add a new endpoint to handle user preferences" \
--context-awareπ Plugin System
The agent supports plugins for extending functionality:
# Install a plugin (future feature)
agent plugin install @cli-agent/plugin-react
# List installed plugins
agent plugin list
# Enable/disable plugins
agent plugin enable react-helpers
agent plugin disable outdated-pluginπ Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| CLI_AGENT_CONFIG_DIR | Configuration directory | ~/.cli-coding-agent |
| CLI_AGENT_LOG_LEVEL | Logging level (debug|info|warn|error) | info |
| CLI_AGENT_CACHE_DIR | Cache directory for analysis | ~/.cli-coding-agent/cache |
| OPENROUTER_API_KEY | OpenRouter API key (recommended for multi-model access) | - |
| OPENAI_API_KEY | OpenAI API key (alternative) | - |
| ANTHROPIC_API_KEY | Anthropic API key (alternative) | - |
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes with tests
- Run the test suite:
npm test - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
- π Documentation
- π Bug Reports
- π¬ Discussions
- π§ Email Support
π― Roadmap
- [ ] Plugin System: Extensible architecture for custom functionality
- [ ] IDE Integration: VS Code extension for seamless integration
- [ ] Team Collaboration: Shared configurations and code templates
- [ ] Advanced Analytics: Detailed code quality metrics and trends
- [ ] Multi-Model Support: Support for multiple AI providers
- [ ] Code Refactoring: Intelligent code refactoring suggestions
- [ ] Performance Optimization: Code performance analysis and optimization
- [ ] Security Analysis: Built-in security vulnerability detection
β Star History
Built with β€οΈ by the CLI Coding Agent Team
