This document provides an overview of Nebula Code's system architecture and design decisions.
Nebula Code is built as a modular monorepo with clear separation of concerns:
┌─────────────────────────────────────────────────────────────┐
│ Nebula Code Platform │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Desktop │ │ CLI │ │ Marketplace │ │
│ │ (Tauri) │ │ (Rust) │ │ (Next.js) │ │
│ └─────┬───────┘ └─────┬───────┘ └─────┬───────┘ │
│ │ │ │ │
│ └────────────────┼────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Shared Crates │ │
│ │ & Packages │ │
│ └────────┬────────┘ │
│ │ │
│ ┌────────────────┼────────────────┐ │
│ │ │ │ │
│ ┌─────▼───────┐ ┌─────▼───────┐ ┌─────▼───────┐ │
│ │ Agents │ │ Skills │ │ Models │ │
│ │ System │ │ System │ │ Integration │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
The agent system is the heart of Nebula Code, consisting of specialized agents:
- Architect Agent: Designs system architecture and creates implementation plans
- Coder Agent: Writes production-ready code following best practices
- Tester Agent: Generates comprehensive test suites and validates code quality
- Reviewer Agent: Performs security audits and code reviews
- Deployer Agent: Handles CI/CD, deployment, and monitoring setup
Agents communicate through a shared context and can be orchestrated in workflows.
Skills are reusable coding patterns and workflows that can be:
- Created by developers
- Shared with the community
- Sold on the marketplace
- Installed locally
Each skill card contains:
- Metadata (name, description, version, author)
- Files (code, configuration, documentation)
- Dependencies
- Compatibility information
Privacy-preserving learning system that:
- Extracts code patterns without exposing raw code
- Uses differential privacy for aggregation
- Continuously improves models through community contributions
- Maintains local model instances
Supports multiple LLM providers:
- Local models via Ollama (DeepSeek-Coder, Qwen2.5-Coder, Llama)
- Cloud models via OpenRouter (multi-model routing)
- Future: Claude, GPT, Gemini direct integration
- Desktop: Tauri 2.0 (Rust + React)
- Web Marketplace: Next.js 14 (React + TypeScript)
- State Management: Zustand
- Styling: Tailwind CSS
- CLI: Rust with Clap
- Shared Libraries: Rust crates
- Database: SQLite (local), PostgreSQL (marketplace)
- API: REST + WebSocket
- CI/CD: GitHub Actions
- Hosting: Vercel (web), GitHub Releases (desktop)
- Storage: IPFS (decentralized skill storage)
- Payments: Stripe + Crypto (USDC)
- User runs
nebula init my-project - Architect agent creates a plan based on requirements
- User reviews and approves the plan
- Coder agent generates code using selected skill cards
- Tester agent creates test suites
- Reviewer agent performs security audit
- Deployer agent sets up CI/CD
- User browses marketplace or local store
- User purchases or downloads skill
- Skill is validated and installed to local store
- Skill becomes available for use in projects
- All code execution happens in sandboxed environments
- Skill cards are verified before installation
- API keys and credentials are encrypted
- Federated learning uses differential privacy
- Regular security audits and dependency updates
- Local model caching for faster inference
- Incremental builds for large projects
- Parallel agent execution when possible
- Efficient pattern matching for skill selection
- Mobile app support (Tauri 2.0 mobile)
- Advanced code completion with local models
- Real-time collaboration features
- Plugin system for extensibility
- Enterprise features (SSO, team management)