Enhanced AI agent framework extending OpenCode capabilities with MCP integrations, behavioral flags, and modular architecture
Get SuperCode running in minutes with these simple steps:
- Node.js 16.0.0 or higher
- npm (comes with Node.js)
- OpenCode with
@opencode-ai/plugininstalled
# Clone SuperCode framework
git clone https://github.com/niklasschaeffer/supercode-revised.git
cd supercode-revised
# Install dependencies
npm install
# Run the installation script
npm run supercode:init ${YOUR_PROJECT_FOLDER}# Load project context and activate framework
/load
# Try your first enhanced command with behavioral flags
/implement --ultrathink --orchestrate "create a user authentication system"
# Explore available agents
/spawn context-refinement
# Try project renovation with new command
/renovate --analyze "update project dependencies"# Check initialization status
/initialize --status
# Verify context loading
/load --status
# Test agent coordination
/spawn orchestratorβ SuperCode is now ready! You have access to 11 MCP servers, behavioral flags, and complete agent ecosystem (19 agents + 13 commands) with dual MCP foundation established.
SuperCode is a comprehensive AI agent framework that supercharges OpenCode with:
- π MCP Server Integrations: 13 powerful MCP servers for enhanced capabilities
- ποΈ Behavioral Flags: Fine-grained control over AI execution modes
- π€ Modular Agent System: Specialized agents for specific tasks
- β‘ Command System: Reusable commands for common workflows
- π Template System: Standardized templates for consistency
- π§ Memory Management: Dual persistence with Knowledge Graph + Memory Bank
- ποΈ Framework Development - Build complex systems with multi-agent coordination
- π§ Tool Integration - Seamlessly integrate external services and APIs
- π Documentation Projects - Auto-generate and maintain comprehensive docs
- π Startup Prototyping - Rapidly build and iterate on complex features
- π― Enterprise Applications - Build scalable, maintainable systems
SuperCode integrates 11 powerful MCP servers:
| MCP Server | Purpose | Key Features |
|---|---|---|
| Knowledge Graph | Entity Memory | Persistent entity relationships, structured knowledge storage |
| Memory Bank | Project Memory | Multi-project memory management, structured documentation |
| Sequential | Multi-step Reasoning | Complex reasoning workflows, decision trees |
| Context7 | Library Documentation | Official library docs, API references |
| Tavily | Web Search & Research | Real-time web search, content extraction |
| Playwright | Browser Automation | E2E testing, web scraping, browser control |
| Desktop Commander | System Operations | File system, terminal commands, local automation |
| Forgejo | Git Forge Integration | Repository management, CI/CD workflows |
| shadcn | UI Components | Component registry, design system |
| Prompt-Kit | Prompt Patterns | Reusable prompt templates |
| Chrome DevTools | Browser DevTools | Performance profiling, debugging |
Control AI execution with powerful flags:
# Enhanced reasoning and analysis
--ultrathink
# Multi-agent coordination and parallel execution
--orchestrate
# Token-efficient execution
--token-efficient
# Security-focused implementation
--safe
# Pattern-based development
--patterns
# Performance-optimized execution
--performanceSpecialized agents for every task:
- π― Orchestrator - Multi-agent coordination and task decomposition
- π Context-Refinement - Project intelligence and context optimization
- π οΈ Backend-Engineer - API development and server-side logic
- π¨ Frontend-Engineer - UI components and user experience
- π Security-Engineer - Security analysis and vulnerability assessment
- π§ͺ QA-Engineer - Testing strategies and quality assurance
- βοΈ System-Architect - System design and architectural planning
- π§ Refactoring-Expert - Code quality and technical debt reduction
- π DevOps-Engineer - Infrastructure and deployment automation
- π Deep-Research-Specialist - Comprehensive research and analysis
- π Renovator - Project renovation and dependency management
- π Task-Manager - Intelligent task decomposition and hierarchical management
- π Root-Cause-Analyst - Issue analysis and problem resolution
- π± Mobile-Optimization - Mobile-first development and responsive design
- π Logging - System logging and monitoring implementation
- πΏ Git-Specialist - Version control and Git workflow optimization
- β‘ Generator-Specialist - Code generation and scaffolding automation
- ποΈ Database Engineer - Database design and optimization across multiple systems
- π³ Docker Specialist - Containerization and orchestration best practices
Powerful commands for common workflows:
# Initialize project and establish dual MCP foundation
/initialize
# Load project context from memories + patterns
/load
# Save session context with constraint enforcement
/save
# Spawn specialized agents for complex tasks
/spawn
# Direct feature implementation with orchestration
/implement
# Build project compilation, packaging, and deployment preparation
/build
# Quality improvement and optimization
/improve
# Troubleshooting and debugging
/troubleshoot
# Code generation and scaffolding
/generate
# Project renovation and dependency management
/renovate
# Project cleanup and maintenance
/cleanup
# Task management and decomposition
/task
# Git operations and version control
/gitStandardized templates for consistency:
- Agent Templates - For creating new specialized agents
- Command Templates - For extending command capabilities
- MCP Server Templates - For documenting new integrations
- Project Templates - For consistent project structure
SuperCode follows modular architecture principles:
supercode-revised/
βββ agent/ # Agent definitions and configurations
βββ command/ # Command implementations
βββ templates/ # Standardized templates
βββ docs/ # Generated documentation
βββ landingpage/ # Web interface
βββ opendocs/ # Open documentation system
βββ .memory-bank/ # Project memories and structured documentation
Structured + Project Memory Systems:
- Knowledge Graph - Entity relationships for structured knowledge storage and retrieval
- Memory Bank - Project-based memory management with multi-project support
- Intelligent Coordination - Cross-system deduplication and complementary knowledge
Initialization Process:
The /initialize command establishes this dual MCP foundation by:
- Setting up Knowledge Graph for entity relationship management
- Configuring Memory Bank for project-specific documentation
- Creating core memories and structured project files
- Setting up complete context management foundation
Optimized Memory System:
- 33% memory reduction through intelligent consolidation
- 2-3 session memory limit for sustainable development
- Pattern consolidation into single source of truth
- Automatic constraint enforcement without user intervention
- Foundation establishment through
/initializefor optimal memory setup
# Complete project bootstrap with dual MCP foundation
/initialize
# Force relearn for existing projects
/initialize --force-relearn
# Skip analysis for quick setup
/initialize --skip-analysis
# Initialize with verbose output
/initialize --verboseThe Complete Workflow:
/initialize- CREATE foundation from scratch (establishes dual MCP integration)/load- READ existing context from both MCPs- Work with framework - Use agents and commands for development
/save- WRITE completed work to both MCPs
# Complex feature development with coordination
/implement --orchestrate --ultrathink "build a complete e-commerce system"
# This automatically:
# 1. π― Orchestrator analyzes requirements and decomposes tasks
# 2. ποΈ System-Architect designs architecture
# 3. π οΈ Backend-Engineer builds APIs
# 4. π¨ Frontend-Engineer creates UI components
# 5. π Security-Engineer adds authentication
# 6. π§ͺ QA-Engineer implements testing# Initialize project foundation
/initialize
# Load comprehensive project context
/load
# Framework-aware implementation
/implement "add user authentication to existing API"
# Context-aware improvement
/improve --patterns "optimize database queries"# Deep research with web integration
/spawn deep-research-specialist
/research --comprehensive "microservices best practices 2024"
# Auto-generate documentation
/generate --type docs --target "API endpoints"# Analyze and update project dependencies
/renovate --analyze --safe "update all dependencies"
# Renovate with orchestrator coordination
/renovate --orchestrate --ultrathink "comprehensive project renovation"
# Cleanup and maintenance
/cleanup --optimize "remove unused dependencies and files"
# Task-based renovation workflow
/task --decompose "renovate frontend dependencies"
/git --status "check renovation branch status"# Security-focused implementation
/implement --safe "payment processing system"
# Quality improvement with patterns
/improve --patterns --performance "legacy code refactoring"
# Comprehensive testing
/spawn qa-engineer
/test --coverage --integration "user workflows"- Node.js 16.0.0+
- npm 7.0.0+
- Git 2.0.0+
- OpenCode with
@opencode-ai/plugin
# Clone for development
git clone https://github.com/niklasschaeffer/supercode-revised.git
cd supercode-revised
# Install development dependencies
npm install
# Set up development environment
npm run supercode:init .
# Load development context
/load
# Verify setup
/spawn orchestratorsupercode-revised/
βββ agent/ # Agent definitions
β βββ orchestrator.md # Primary coordination agent
β βββ context-gathering.md
β βββ backend-engineer.md
β βββ ...
βββ command/ # Command implementations
β βββ load.md # Context loading
β βββ implement.md # Feature implementation
β βββ ...
βββ templates/ # Standardized templates
β βββ agent.template.md
β βββ command.template.md
β βββ ...
βββ docs/ # Generated documentation
βββ landingpage/ # Web interface
βββ opendocs/ # Open documentation
βββ .memory-bank/ # Project memories and structured documentation
β βββ memories/
β βββ ...
βββ package.json # Dependencies and scripts
βββ install.sh # Installation script
βββ README.md # This file
Configuration is handled through:
- OpenCode Configuration (
~/.config/opencode/) - Environment Variables (optional)
- Project Settings (
project.yml)
# Comprehensive testing with QA agent
/spawn qa-engineer
/test --comprehensive "entire system"
# Security validation
/spawn security-engineer
/audit --security "authentication system"
# Performance optimization
/spawn refactoring-expert
/optimize --performance "database operations"- SOLID Principles - Applied throughout framework
- Design Patterns - Factory, Builder, Decorator, Observer, Strategy
- TypeScript Best Practices - Strict typing and interfaces
- Testing Standards - Unit, integration, and E2E testing
- Security Guidelines - OWASP compliance and secure coding
SuperCode automatically maintains comprehensive documentation:
- API Documentation - Generated from code analysis
- Agent Guides - Auto-updated with capabilities
- MCP Integration Docs - Complete server documentation
- Architecture Documentation - System design and patterns
# Generate current documentation
/generate --docs --comprehensive
# Create agent capability matrix
/generate --matrix --agentsWe welcome contributions! Here's how to get started:
# Fork and clone
git clone https://github.com/niklasschaeffer/supercode-revised.git
# Create feature branch
git checkout -b feature/amazing-feature
# Initialize and load context for development
/initialize
/load
# Make your changes
/implement --ultrathink "your amazing feature"
# Test thoroughly
/spawn qa-engineer
/test --comprehensive
# Submit pull request- Follow Patterns - Use established patterns from
patterns_discovered_consolidated - Add Tests - Include comprehensive tests for new features
- Update Docs - Keep documentation current
- Memory Management - Follow memory optimization guidelines
- Security First - Ensure security compliance
- TypeScript - Strict typing preferred
- Modular Design - Single responsibility principle
- Documentation - Clear, comprehensive documentation
- Testing - High test coverage required
- Patterns - Use established design patterns
This project is licensed under MIT License - see the LICENSE file for details.
- OpenCode Team - For amazing plugin system
- MCP Community - For powerful server ecosystem
- Contributors - Everyone who has contributed to this project
- Early Adopters - For valuable feedback and improvements
- Documentation - Check this README and generated docs
- Issues - GitHub Issues
- Discussions - GitHub Discussions
# Get help with commands
/help
# Check system status
/status
# Debug issues
/troubleshoot
# Load context for support
/load --debugGet started now:
git clone https://github.com/niklasschaeffer/supercode-revised.git
cd supercode-revised
npm install
npm run supercode:init ${YOUR_PROJECT_FOLDER}
/loadπ Welcome to future of AI-assisted development!
Built with β€οΈ by SuperCode team