Package Exports
- @mcpcodex/syndicodex
- @mcpcodex/syndicodex/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mcpcodex/syndicodex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 onboarding
Start Autonomous Workflow:
syndicodex orchestrate "build a secure user management API"Analyze & Optimize:
syndicodex analyze --production-ready
Quick 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