Skip to content

Roberdan/Convergio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Convergio logo: stylized brain split β€” left colorful facets, right blue circuitry

πŸš€ Convergio β€” Human purpose. AI momentum.

β€œConvergio is the platform that lets solopreneurs blend human ingenuity with AI so seamlessly, it feels like magic.”

Convergio is the AI‑first orchestration platform where human ingenuity converges with a coordinated crew of specialized agents. Through intelligent coordinationβ€”not just parallel processingβ€”they plan together, execute seamlessly, and explain outcomes across your tools.

CI/CD Pipeline Python FastAPI SvelteKit Microsoft AutoGen License: BSL 1.1


πŸ—žοΈ What this is (and why it matters)


πŸ—οΈ Architecture (truth, no buzzwords)

  • Backend: FastAPI (Python 3.11), SQLAlchemy 2.x (async), PostgreSQL, Redis, Prometheus metrics
  • Frontend: SvelteKit + TypeScript + TailwindCSS (dev server on port 4000, proxy to backend 9000)
  • AI Orchestration: Multi‑agent system using Microsoft AutoGen 0.7.x (autogen-core, autogen-agentchat, autogen-ext)
  • Streaming & coordination: internal streaming orchestrator with typed protocols and runners
  • Security: security headers, CORS, JWT scaffolding (RS256), optional rate‑limit middleware (currently disabled in code)

No Docker/Kubernetes manifests are provided in this repo. Local developer setup runs with system Postgres + Redis or containers you manage yourself.

Key capabilities

  • Multi‑agent conversations with tool use, memory, and specialization
  • Agent planner/critic loop that turns human intent into plans β†’ actions β†’ verified outcomes
  • Hybrid orchestration: AI agents plus human‑in‑the‑loop and human‑on‑demand routing (gig platforms)
  • Explainability & provenance: every step auditable ("why this, why now")
  • Safety rails & cost governance: approvals, budget caps, per‑agent SLOs
  • Accessibility‑first UI (voice, high‑contrast, keyboard, clear status cues)
  • GraphFlow for generating workflows from natural language
  • Cost tracking, analytics endpoints, and observability hooks
  • Vector search utilities for RAG‑style enrichment
  • Dynamic Theme System: Light/dark/system mode with persistent preferences

πŸš€ Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • PostgreSQL 14+
  • Redis 6+

Installation

  1. Clone the repository
git clone https://github.com/Roberdan/Convergio.git
cd convergio
  1. Backend Setup
cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

# Configure environment (see example below)
# Initialize DB with provided SQL (see commands below)
# Start backend
uvicorn src.main:app --reload --port 9000
  1. Frontend Setup
cd frontend
npm install

# Start frontend (dev server on :4000)
npm run dev
  1. Access the application

πŸ“ Project Structure

convergio/
β”œβ”€β”€ πŸ“„ README.md                          # This file
β”œβ”€β”€ πŸ“„ LICENSE                            # BSL 1.1 License
β”œβ”€β”€ πŸ“„ VERSION                            # Version tracking
β”œβ”€β”€ πŸ“„ start.sh                          # Quick start script
β”œβ”€β”€ πŸ“„ test.sh                           # Comprehensive test runner
β”œβ”€β”€ πŸ“„ pytest.ini                        # Test configuration
β”‚
β”œβ”€β”€ πŸ“ backend/                           # FastAPI backend (Python 3.11+)
β”‚   β”œβ”€β”€ πŸ“„ requirements.txt              # Python dependencies
β”‚   β”œβ”€β”€ πŸ“„ pyproject.toml               # Python project config
β”‚   β”œβ”€β”€ πŸ“„ validate_imports.py          # Import consistency validator
β”‚   └── πŸ“ src/                          # Source code
β”‚       β”œβ”€β”€ πŸ“„ main.py                   # FastAPI application entry
β”‚       β”œβ”€β”€ πŸ“ api/                      # REST API endpoints
β”‚       β”œβ”€β”€ πŸ“ agents/                   # AI agent definitions & orchestration
β”‚       β”œβ”€β”€ πŸ“ core/                     # Core utilities (database, config, etc.)
β”‚       β”œβ”€β”€ πŸ“ models/                   # SQLAlchemy models
β”‚       └── πŸ“ services/                 # Business logic services
β”‚
β”œβ”€β”€ πŸ“ frontend/                          # SvelteKit frontend (TypeScript)
β”‚   β”œβ”€β”€ πŸ“„ package.json                  # NPM dependencies
β”‚   β”œβ”€β”€ πŸ“„ svelte.config.js             # SvelteKit configuration
β”‚   β”œβ”€β”€ πŸ“„ tailwind.config.js           # TailwindCSS configuration
β”‚   β”œβ”€β”€ πŸ“„ playwright.config.ts         # E2E test configuration
β”‚   └── πŸ“ src/                          # Source code
β”‚       β”œβ”€β”€ πŸ“ lib/                      # Reusable components & utilities
β”‚       └── πŸ“ routes/                   # SvelteKit pages & API routes
β”‚
β”œβ”€β”€ πŸ“ docs/                             # Documentation
β”‚   β”œβ”€β”€ πŸ“„ API_REFERENCE.md             # Complete API documentation
β”‚   β”œβ”€β”€ πŸ“„ ADMIN_GUIDE.md               # Administrator guide
β”‚   β”œβ”€β”€ πŸ“„ AGENTS.md                    # AI agents catalog
β”‚   β”œβ”€β”€ πŸ“„ IMPORT_PATH_CONSISTENCY_GUIDE.md  # Import standards (moved)
β”‚   β”œβ”€β”€ πŸ“„ PM_DASHBOARD_IMPLEMENTATION_SUMMARY.md  # Dashboard docs (moved)
β”‚   └── πŸ“„ USER_GUIDE.md                # End user guide
β”‚
β”œβ”€β”€ πŸ“ scripts/test/                     # Test automation scripts (organized)
β”‚   β”œβ”€β”€ πŸ“„ 01_test_backend_unit.sh       # Backend unit tests
β”‚   β”œβ”€β”€ πŸ“„ 02_test_backend_integration.sh # Backend integration tests
β”‚   β”œβ”€β”€ πŸ“„ 03_test_backend_e2e.sh        # Backend E2E tests
β”‚   └── πŸ“„ ...                          # Additional test scripts
β”‚
β”œβ”€β”€ πŸ“ tests/                            # Main test directory
β”‚   β”œβ”€β”€ πŸ“„ conftest.py                   # Pytest configuration
β”‚   β”œβ”€β”€ πŸ“„ master_test_runner.py        # Central test orchestration
β”‚   └── πŸ“ backend/                      # Backend-specific tests
β”‚
└── πŸ“ logs/                             # Test execution logs (auto-generated)
    └── πŸ“„ test_*.log                    # Individual test execution logs

πŸ”‘ Key Directories

  • backend/src/agents/definitions/ - 48 specialized AI agent definitions
  • backend/src/api/ - FastAPI routers for all endpoints
  • frontend/src/lib/components/ - Reusable Svelte components
  • docs/ - Comprehensive documentation (organized and updated)
  • scripts/test/ - All test automation scripts (organized from root)

πŸ“š Documentation

Core Documentation

Agent System

  • Agent Definitions: backend/src/agents/definitions/
  • Orchestrators & resilience: backend/src/agents/orchestrators/
  • Ali Proactive Intelligence: backend/src/agents/ali_ceo.py

Enterprise Features

Live Documentation


πŸ€– Multi‑agent ecosystem

Convergio features a comprehensive multi‑agent system of specialized agents organized into functional domains:

Leadership & Strategy (6 agents)

  • Ali - Chief of Staff & Proactive Intelligence Engine
  • Amy - Chief Financial Officer
  • Satya - Board of Directors Representative
  • Antonio - Strategy Expert
  • Matteo - Strategic Business Architect
  • Domik - McKinsey Strategic Decision Maker

Project Management & Operations (8 agents)

  • Davide - Project Manager
  • Oliver - Project Manager
  • Marcus - Project Manager
  • Luke - Program Manager
  • Wanda - Workflow Orchestrator
  • Taskmaster - Strategic Task Decomposition Master
  • Dave - Change Management Specialist
  • Xavier - Coordination Patterns Expert

Technology & Engineering (6 agents)

  • Dan - Engineering General Manager
  • Baccio - Tech Architect
  • Marco - DevOps Engineer
  • Luca - Security Expert
  • Guardian - AI Security Validator
  • Thor - Quality Assurance Guardian

Data & Analytics (6 agents)

  • Angela - Data Analyst
  • Ethan - Data Analyst
  • Ethan IC6 - Senior Data Analyst
  • Omri - Data Scientist
  • Ava - Analytics Insights Virtuoso
  • Diana - Performance Dashboard Expert

Business Development & Sales (4 agents)

  • Fabio - Sales & Business Development
  • Michael - Venture Capitalist
  • Wiz - Investor & Venture Capital
  • Sam - Startup Expert

Human Resources & Culture (4 agents)

  • Giulia - HR Talent Acquisition
  • Coach - Team Coach
  • Behice - Cultural Coach
  • Jenny - Inclusive Accessibility Champion

Creative & Communication (5 agents)

  • Sara - UX/UI Designer
  • Jony - Creative Director
  • Riccardo - Storyteller
  • Steve - Executive Communication Strategist
  • Sofia - Marketing Strategist

Customer Success & Compliance (5 agents)

  • Andrea - Customer Success Manager
  • Elena - Legal Compliance Expert
  • Dr. Enzo - Healthcare Compliance Manager
  • Sophia - Government Affairs
  • Enrico - Business Process Engineer

AI & Optimization (4 agents)

  • PO - Prompt Optimizer
  • Marcus - Context Memory Keeper
  • Socrates - First Principles Reasoning
  • Stefano - Design Thinking Facilitator

Each agent is powered by advanced AI capabilities including:

  • Context-aware reasoning with per-turn RAG
  • Tool execution with intelligent selection
  • Memory persistence across conversations
  • Security validation and compliance checks
  • Cost optimization and rate limiting
  • Real-time collaboration and coordination

πŸ§ͺ Testing

Test Suite Status (August 2025)

βœ… All test scripts systematically fixed and optimized

Backend Tests

  • Unit Tests: 97/97 passing βœ…
  • Integration Tests: 117/118 passing (99.2%) βœ…
  • E2E Tests: 4/5 passing (database session issues resolved) βœ…
  • Security Tests: All core security validations passing βœ…
  • Performance Tests: Load testing and metrics collection working βœ…

Frontend Tests

  • Unit Tests (Vitest): Core functionality tests passing βœ…
  • E2E Tests (Playwright): 30+ core tests passing βœ…
  • Accessibility Tests: All 11 accessibility requirements met βœ…
  • Component Tests: Dashboard, agents, navigation all working βœ…

Quick Test Execution

# Run all backend tests
cd backend
pytest tests/ -v

# Run all frontend tests
cd frontend
npm run test        # Unit tests
npm run test:e2e    # E2E tests

# Run specific test categories
./08_test_frontend_e2e.sh    # Frontend E2E (optimized)
./09_test_master_runner.sh   # Master test orchestration
./10_test_go_backend.sh      # Go backend tests
./11_test_backend_top_level.sh # Top-level Python tests

Test Scripts (All Fixed & Optimized)

Production-Ready Test Scripts:

  • βœ… ./08_test_frontend_e2e.sh - Frontend E2E with Playwright (fixed strict mode issues)
  • βœ… ./09_test_master_runner.sh - Master test orchestration (Redis async fixes)
  • βœ… ./10_test_go_backend.sh - Go backend tests (handles no Go files gracefully)
  • βœ… ./11_test_backend_top_level.sh - Top-level tests (macOS compatibility fixed)

Additional Test Categories:

  • ./01_test_backend_unit.sh - Backend unit tests
  • ./02_test_backend_integration.sh - Backend integration tests
  • ./03_test_backend_e2e.sh - Backend E2E tests
  • ./04_test_security.sh - Security validation tests
  • ./05_test_performance.sh - Performance and load tests

🎨 UI/UX Features (August 2025)

Dynamic Theme System

  • Light/Dark/System Mode: Automatic OS theme detection with manual override
  • Persistent Preferences: Theme choice saved in localStorage
  • Surface Color System: surface-0 to surface-950 with dark mode variants
  • Component Theming: 800+ hardcoded colors replaced with dynamic theme classes

User Interface

  • Ali Assistant: Floating chat interface with real-time AI coordination
  • Project Management: Gantt charts and Kanban boards with dynamic theming
  • Analytics Dashboard: Real-time metrics and cost tracking
  • Agent Management: Visual agent orchestration and status monitoring

Theme Toggle

Access theme controls via the toggle in the top-right header (next to cost display):

  • 🌞 Light mode
  • πŸŒ™ Dark mode
  • πŸ–₯️ System (follows OS preference)

Additional Test Categories

  • ./06_test_frontend_unit.sh - Frontend unit tests (Vitest)
  • ./07_test_frontend_storybook.sh - Storybook component tests

Recent Test Improvements (August 2025)

Frontend E2E Optimizations:

  • Fixed Playwright strict mode violations in dashboard tests
  • Updated agent selector strategies for dynamic UI elements
  • Improved navigation test flexibility for responsive design
  • Skipped complex AI orchestration tests pending full implementation

Backend Test Stabilization:

  • Resolved SQLAlchemy async session management issues
  • Fixed Redis connection handling with proper async/await patterns
  • Enhanced database test isolation and cleanup procedures
  • Improved cross-platform shell script compatibility

Test Infrastructure:

  • All test scripts now handle edge cases gracefully
  • Enhanced error reporting and debugging capabilities
  • Optimized test execution times with parallel processing
  • Added comprehensive test coverage reporting

Tips & Best Practices

# Continue-on-error mode
FAIL_FAST=false ./08_test_frontend_e2e.sh

# Verbose output for debugging
VERBOSE=true ./09_test_master_runner.sh

# Run specific test patterns
npx playwright test --grep "dashboard" # Frontend specific tests
pytest tests/ -k "cost_tracking"       # Backend specific tests

βš™οΈ Environment variables (backend/.env)

Minimal set to get running locally:

# Environment
ENVIRONMENT=development
DEBUG=true

# Security (generate strong JWT secret for production)
JWT_SECRET=your_super_secure_jwt_secret_that_should_be_very_long_and_random_at_least_64_chars
JWT_ALGORITHM=RS256

# Database
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=convergio_db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres

# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=1

# Network Configuration
DEFAULT_HOST=localhost
FRONTEND_PORT=4000
BACKEND_PORT=9000
API_PORT=9000
ADMIN_PORT=9001

# User Configuration
DEFAULT_USER_ID=system_user
DEFAULT_ANONYMOUS_USER=system_anonymous
DEFAULT_TEST_USER=system_test_user

# Feature Configuration
REFERENCE_AGENT_TRUNCATE_LENGTH=3000
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE_API=100

# AI providers
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GRAPHFLOW=true

# Health Monitoring
HEALTH_CHECK_ENABLED=true
LOG_LEVEL=INFO

πŸ“ Note: For a complete list of all available environment variables with detailed explanations, see .env.example in the project root.


🀝 Contributing

We welcome contributions! Please see docs/CONTRIBUTING.md for guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Standards

  • Python: Black + Ruff + mypy
  • TypeScript: ESLint + Prettier
  • Commits: Conventional Commits specification
  • Tests: Required for all new features

πŸ“Š Observability & performance

  • Prometheus metrics exposed at /metrics
  • Structured logs (JSON) via structlog; configure via LOG_LEVEL, LOG_FORMAT
  • Connection pooling for Postgres and Redis; tune via DB_* and REDIS_* settings

πŸ“„ License

This project is licensed under the Business Source License 1.1 - see the LICENSE file for details.

After the change date (2027-01-01), this software will be available under the Apache 2.0 license.


πŸ™ Acknowledgments

  • Microsoft AutoGen team for the amazing multi-agent framework
  • OpenAI for GPT models powering our agents
  • The open-source community for invaluable tools and libraries

πŸ“ž Support


πŸš€ Roadmap

Q4 2025

  • Advanced AI agents marketplace
  • Mobile applications (iOS/Android)
  • Advanced workflow templates library
  • Enhanced multi-language support

Q1 2026

  • AI model fine-tuning capabilities
  • Advanced analytics dashboard
  • Enterprise SSO integration
  • Compliance certifications (SOC2, ISO)

Built with ❀️ for Mario by the Convergio Team

Making AI work for humans, not the other way around.

About

Convergio.io is not software that you use, but a team that you direct.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •