Generador de ramas ordenadas y flujos optimizados con IA integrada
✨ Repository Status: Recently underwent comprehensive automated cleanup and quality review (2025-12-27). All quality checks passing, zero security vulnerabilities, and full CI/CD pipeline verified. See docs/maintenance.md for details.
Tokyo-IA is a complete AI agent orchestration platform featuring 5 specialized agents with unique personalities and expertise. Built with Go, Python, React, and Android support.
- 🤖 5 Specialized AI Agents: Each with unique personality and LLM model
- 🔄 Multi-Agent Orchestration: Coordinate complex workflows across agents
- 📊 Complete Tracking: PostgreSQL database records all activities
- 🌐 REST API: Full programmatic access to all features
- 📱 Cross-Platform: Web dashboard and Android app support
- 📈 Performance Metrics: Track tokens, costs, and latencies
- 🛡️ Production Ready: Built for scale with Go and Kubernetes support
| Agent | ID | Role | Model | Specialties |
|---|---|---|---|---|
| 侍 Akira | akira-001 | Code Review Master | Claude Opus 4.1 | Security, Performance, Architecture |
| ❄️ Yuki | yuki-002 | Test Engineering | OpenAI o3 | Unit/Integration/E2E Testing |
| 🛡️ Hiro | hiro-003 | SRE & DevOps | Llama 4 405B | Kubernetes, CI/CD, Monitoring |
| 🌸 Sakura | sakura-004 | Documentation | Gemini 3.0 Ultra | Technical Writing, Diagrams |
| 🏗️ Kenji | kenji-005 | Architecture | OpenAI o3 | System Design, Patterns |
SYNEMU Suite is a premium, fully automated platform module for SIMulation, Emulation, Multi-agent orchestration, and Unified automation workflows.
| Agent | ID | Role | Capabilities |
|---|---|---|---|
| 🎭 Orchestrator | synemu-orchestrator-001 | Multi-Agent Coordinator | Task management, workflow execution |
| 🔥 2D Flare | synemu-2d-flare-002 | 2D Simulation | Physics, sprites, animations |
| 🎮 3D Unity | synemu-3d-unity-003 | 3D Integration | Unity scenes, 3D objects, physics |
| 🎬 Video Viz | synemu-video-viz-004 | Video Rendering | HD video, effects, format conversion |
| 🦉 QA Owl | synemu-qa-owl-005 | Quality Assurance | Testing, coverage, validation |
| ⚖️ Docu Libra | synemu-docu-libra-006 | Documentation | API docs, manuals, diagrams |
| 🗺️ Asset Atlas | synemu-asset-atlas-007 | Asset Management | Storage, CDN, optimization |
Documentation: See SYNEMU/README.md for complete documentation.
Quick Start:
from SYNEMU.agents_bots import SynemuOrchestrator, Synemu2DFlareAgent
orchestrator = SynemuOrchestrator()
agent_2d = Synemu2DFlareAgent()
scene_id = agent_2d.create_scene(width=1920, height=1080)
result = agent_2d.run_simulation(scene_id, duration=5.0)Tokyo-IA is a polyglot platform leveraging the strengths of multiple programming languages:
pie title Lenguajes
"Go" : 44.8
"Python" : 37.5
"TypeScript" : 4.2
"Kotlin" : 4.1
"HTML" : 4.1
"PLpgSQL" : 2.6
"Otros" : 2.7
- Go (44.8%): High-performance backend core, APIs, and CLI tools
- Python (37.5%): AI agents, orchestration, and ML components
- TypeScript (4.2%): Modern web dashboard
- Kotlin (4.1%): Native Android application
- HTML (4.1%): Web interface templates
- PLpgSQL (2.6%): Database functions and procedures
- Others (2.7%): Ruby version management, configs, and templates
- Quick Start
- Architecture
- Repository Structure
- Documentation
- API Reference
- Development
- Contributing
- Security
- License
- 🌿 Optimized Branch Management: Intelligent branch creation and workflow
- 📁 Automated File Generation: GitHub file creation with templates
- 🤖 AI-Powered: ML-based repository optimization
- 🔄 PR Automation: Complete PR lifecycle automation with 5 specialized workflows
- 🔒 Enterprise Security: CodeQL scanning, dependency review
- 📊 Web Dashboard: Real-time monitoring interface
- 🎭 SYNEMU Suite: Complete simulation, emulation, QA, and automation platform (NEW!)
# Create PostgreSQL database
createdb tokyoia
# Run schema
psql tokyoia < db/schema.sql
# Set environment variable
export DATABASE_URL="postgresql://user:password@localhost:5432/tokyoia"# Install dependencies
go mod download
# Build and run
make build
./bin/registry-api
# Or directly
go run ./cmd/registry-api/main.goThe API will be available at http://localhost:8080
# Install Python dependencies
pip install -r requirements.txt
# Set API keys
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
export GROQ_API_KEY="gsk_..."
export GOOGLE_API_KEY="..."from lib.orchestrator import AgentOrchestrator
from lib.orchestrator.workflows import full_code_review_workflow
# Initialize orchestrator
orchestrator = AgentOrchestrator()
orchestrator.initialize_agents()
# Run a code review workflow
code = """
def authenticate_user(username, password):
query = f"SELECT * FROM users WHERE name = '{username}'"
# ... rest of code
"""
result = full_code_review_workflow(orchestrator, code, "python")
print(result)┌─────────────────────────────────────────────────────────────┐
│ Client Layer │
│ Web Dashboard │ Android App │ CLI Tools │ API Calls │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────▼────────────────────────────────────┐
│ Registry API (Go) │
│ REST Server - Port 8080 │
│ Agents │ Tasks │ Workflows │ Metrics │ Sessions │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────▼────────────────────────────────────┐
│ PostgreSQL Database │
│ agents │ agent_tasks │ workflows │ metrics │ interactions │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────▼────────────────────────────────────┐
│ Agent Orchestrator (Python) │
│ Multi-Agent Workflow Coordinator │
└────┬─────┬──────┬──────┬──────┬─────────────────────────────┘
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
Akira Yuki Hiro Sakura Kenji
侍 ❄️ 🛡️ 🌸 🏗️
See docs/agents/ORCHESTRATION.md for detailed architecture.
tokyoia/
│
├── cmd/ # Go applications
│ ├── main.go # Main Tokyo-IA application
│ ├── elite/main.go # Elite framework CLI
│ └── registry-api/main.go # REST API server ⭐
│
├── internal/ # Internal Go packages
│ └── registry/ # Agent registry system ⭐
│ ├── models.go # Data models
│ └── agent_registry.go # Database operations
│
├── lib/ # Shared libraries
│ ├── generator/ # Code generation
│ ├── agents/ # AI agents ⭐
│ │ └── specialized/ # 5 specialized agents
│ │ ├── akira_code_reviewer.py # 侍 Code Review Master
│ │ ├── yuki_test_engineer.py # ❄️ Test Specialist
│ │ ├── hiro_sre.py # 🛡️ SRE/DevOps Guardian
│ │ ├── sakura_documentation.py # 🌸 Documentation Artist
│ │ └── kenji_architect.py # 🏗️ Architecture Visionary
│ └── orchestrator/ # Multi-agent coordinator ⭐
│ ├── agent_orchestrator.py # Orchestration engine
│ └── workflows.py # Pre-built workflows
│
├── SYNEMU/ # SYNEMU Suite 🎭 NEW!
│ ├── agents_bots/ # 8 specialized SYNEMU agents
│ │ ├── synemu_integrations.py # API key management
│ │ ├── synemu_orchestrator.py # 🎭 Multi-agent coordinator
│ │ ├── synemu_agent2d_flare.py # 🔥 2D simulation
│ │ ├── synemu_agent3d_unity.py # 🎮 3D Unity integration
│ │ ├── synemu_agent_video_viz.py # 🎬 Video rendering
│ │ ├── synemu_qa_owl.py # 🦉 QA automation
│ │ ├── synemu_docu_libra.py # ⚖️ Documentation
│ │ └── synemu_asset_atlas.py # 🗺️ Asset management
│ ├── docs/ # SYNEMU documentation
│ └── recursos/ # Additional resources
│
├── hojas_membretadas/ # Official letterheads 📄 NEW!
├── manuales/ # User manuals 📖 NEW!
├── instructivos/ # How-to guides 📝 NEW!
├── plantillas/ # Project templates 📋 NEW!
├── recursos_identidad/ # Brand assets 🎨 NEW!
├── reportes_graficos/ # Reports & dashboards 📊 NEW!
│
├── db/ # Database ⭐
│ ├── schema.sql # PostgreSQL schema
│ └── README.md # Database documentation
│
├── admin/ # Web dashboard ⭐
│ └── src/components/
│ ├── AgentDashboard.tsx # Agent monitoring
│ └── WorkflowMonitor.tsx # Workflow tracking
│
├── app/ # Android app ⭐
│ └── src/main/java/com/tokyoia/app/
│ ├── ui/agents/ # Agent UI screens
│ │ ├── AgentsScreen.kt
│ │ └── AgentsViewModel.kt
│ └── data/repository/ # Data layer
│ └── AgentRepository.kt
│
├── docs/ # Documentation
│ └── agents/ # Agent system docs ⭐
│ └── ORCHESTRATION.md # Complete guide
│
├── examples/ # Example code
│ └── python/
│ └── basic_agent.py # Basic agent usage
│
├── .github/
│ └── workflows/
│ └── ci.yml # CI pipeline
│
├── go.mod # Go dependencies
├── requirements.txt # Python dependencies ⭐
├── Makefile # Build commands
├── README.md # This file
├── CONTRIBUTING.md # Contribution guidelines
└── SECURITY.md # Security policy
⭐ = New in Agent Orchestration System
- 🚀 Quick Setup Guide - Get started in 5 minutes
- 🏗️ Architecture Documentation - Complete visual architecture with Mermaid diagrams
- Language composition and project structure
- Development workflows and CI/CD pipeline
- Branch strategy and component interactions
- System architecture and security measures
- 🚀 CI/CD Pipeline - Comprehensive CI/CD documentation
- Workflow descriptions and setup
- Railway deployment guide
- Troubleshooting and rollback procedures
- 🤖 PR Automation System - Complete Pull Request automation ⭐ NEW!
- 5 automated workflows for PR management
- Auto-labeling, triage, merge, and cleanup
- Bot commands for manual control
- Quick Reference Guide
- 🔐 Secrets Configuration - GitHub Actions secrets setup
- Required and optional secrets
- How to obtain tokens
- Security best practices
- 📱 Play Store Checklist - Complete guide for Google Play Store publication
- Asset requirements and specifications
- Release signing configuration
- Testing and submission process
- 📝 Store Listing Template - Pre-written content for Play Store
- 🔐 Secrets Setup Guide - All required secrets for deployments
- Android release signing
- Vercel deployment
- Google Play API
- 🌐 Vercel Setup - Web dashboard deployment guide
- Step-by-step Vercel configuration
- Domain setup and SSL
- Automated deployment workflow
- 🔒 Privacy Policy - GDPR-compliant privacy policy
- Agent Orchestration Guide - Complete system documentation
- Database Schema - Database setup and operations
- API Reference - REST API endpoints
- Workflow Examples - Pre-built workflows
- Contributing Guide - How to contribute
- Security Policy - Security guidelines
The Registry API runs on http://localhost:8080 by default.
GET /api/agents- List all agentsGET /api/agents/{id}- Get agent detailsGET /api/agents/{id}/stats- Get agent statisticsGET /api/agents/{id}/tasks- Get agent tasks
POST /api/tasks- Create new taskPUT /api/tasks/{id}- Update task status
GET /api/workflows- List workflowsPOST /api/workflows- Create workflowGET /api/workflows/{id}- Get workflow detailsGET /api/workflows/{id}/tasks- Get workflow tasks
GET /api/metrics?agent_id={id}&metric_type={type}- Get metrics
See API documentation for details.
# Build main application
make build
# Build Registry API
go build -o bin/registry-api ./cmd/registry-api/main.go
# Build Elite Framework
make elite
# Format code
make fmt
# Run tests
make test
# Clean build artifacts
make clean# Go tests
go test ./...
# Python agent tests (when available)
pytest lib/agents/
# Full CI suite
make ci# Database
export DATABASE_URL="postgresql://user:password@localhost:5432/tokyoia"
# Registry API
export PORT="8080"
export REGISTRY_API_URL="http://localhost:8080"
# LLM API Keys
export ANTHROPIC_API_KEY="sk-ant-..." # For Akira
export OPENAI_API_KEY="sk-..." # For Yuki & Kenji
export GROQ_API_KEY="gsk_..." # For Hiro
export GOOGLE_API_KEY="..." # For SakuraTokyo-IA features a comprehensive CI/CD pipeline with automated testing, security scanning, and Railway deployment.
Every push and pull request triggers:
- ✅ Go Tests (1.21 & 1.22) with race detector and coverage
- ✅ Python Tests (3.11 & 3.12) with pytest and coverage
- ✅ Linting (golangci-lint, Ruff)
- ✅ Build Verification for all binaries
- ✅ Database Schema Tests with PostgreSQL
- ✅ Security Scanning (CodeQL, Trivy, TruffleHog)
Staging: Automatic deployment to Railway on every push to main
git push origin main # → Deploys to staging automaticallyProduction: Automatic deployment on version tags
git tag v1.0.0
git push origin v1.0.0 # → Deploys to production + creates GitHub releaseManual Deployment:
./scripts/deploy.sh staging # Deploy to staging
./scripts/deploy.sh production # Deploy to production# Local development with Docker Compose
docker-compose up -d
# Build Docker image
docker build -t tokyo-ia:local .
# Run container
docker run -p 8080:8080 tokyo-ia:localEvery version tag automatically:
- 📦 Builds binaries for Linux, macOS, Windows (amd64 & arm64)
- 🔐 Generates SHA256 checksums
- 📝 Creates GitHub release with changelog
- 🐳 Builds and pushes Docker images to GHCR
- 🚀 Deploys to Railway production
See docs/CICD.md for complete CI/CD documentation.
Tokyo IA includes a Flutter-based Android application ready for Google Play Store publication.
Quick Start:
cd flutter_app/
# Build release AAB
flutter build appbundle --release
# Output: build/app/outputs/bundle/release/app-release.aabPre-requisites:
- Configure release signing in
flutter_app/android/app/build.gradle✅ - Generate and secure your keystore (see docs/PLAY_STORE_CHECKLIST.md)
- Configure GitHub Secrets for automated signing
Resources:
- 📋 Play Store Checklist - Complete publication guide
- 📝 Store Listing Template - Pre-written descriptions
- 🔐 Privacy Policy - GDPR-compliant policy
- 🎨 Assets Guide - Icon and screenshot specs
Automated Testing: The pre-release-tests.yml workflow automatically:
- Runs Flutter tests
- Builds release AAB
- Verifies signing configuration
The web interface is automatically deployed to Vercel on every push to main.
Local Development:
cd web/
npm install
npm run dev
# Visit http://localhost:5173Deployment:
- Automatic: Push to
mainbranch triggers Vercel deployment - Manual: Use Vercel CLI:
vercel --prod - Preview: Every PR gets a unique preview URL
Setup:
- Create Vercel account and link repo
- Configure GitHub Secrets:
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID
- See docs/VERCEL_SETUP.md for detailed instructions
Live Demo:
🌐 Web Dashboard: https://tokyo-ia-web.vercel.app (update after deployment)
TokyoApps-Multispace-IA is fully configured for Vercel deployment with Python serverless functions.
Quick Deploy:
# Using Vercel CLI
vercel
# Or using our deployment script
./scripts/deploy-vercel.sh preview
./scripts/deploy-vercel.sh productionAvailable API Endpoints:
GET /api/index- Service information and metadataGET /api/health- Health check endpointGET /api/agents- List AI agents (Akira, Yuki, Hiro, Sakura, Kenji)POST /api/agents- Start agent task
Configuration:
- ✅ Serverless functions configured for Python 3.11
- ✅ 1024MB memory allocation for AI operations
- ✅ 10s max duration for serverless functions
- ✅ CORS headers configured for API access
- ✅ Automatic preview deployments for PRs
Documentation: 📖 Complete deployment guide: DEPLOY_VERCEL.md
- 3 deployment options (GitHub, CLI, Script)
- Environment variables setup
- Local development with
vercel dev - Troubleshooting and monitoring
- CI/CD automation
Test Locally:
vercel dev
# Visit http://localhost:3000All deployments require GitHub Secrets. See docs/SECRETS_SETUP.md for complete guide:
Android Release:
KEYSTORE_FILE- Keystore for signingKEYSTORE_PASSWORD- Keystore passwordKEY_ALIAS- Key aliasKEY_PASSWORD- Key password
Vercel Deployment:
VERCEL_TOKEN- Vercel authentication tokenVERCEL_ORG_ID- Organization/Team IDVERCEL_PROJECT_ID- Project ID
Google Play API (Optional):
GOOGLE_PLAY_JSON- Service account credentials for automated publishing
Code Coverage & Security:
CODECOV_TOKEN- CodeCov API token for coverage reporting
TokyoApps-Multispace-IA includes comprehensive automation for pull requests:
| Bot | Purpose | Trigger |
|---|---|---|
| 🏷️ Auto-Labeler | Applies labels based on changed files | PR open/update |
| 🤖 Auto-Review | Provides code review feedback | PR open/update |
| 📊 CodeCov | Tracks test coverage | Push/PR |
| 🔒 CodeQL Security | Advanced security scanning | Push/PR/Weekly |
| 🚀 Preview Deploy | Creates preview deployments | PR with web changes |
| ⏰ Stale Bot | Manages inactive issues/PRs | Daily |
| 📝 Release Drafter | Generates release notes | PR merge |
| 👥 Auto-Assign | Assigns reviewers | PR open |
| 📈 PR Metrics | Posts PR complexity metrics | PR open/update |
All bots are pre-configured and active. For details:
- Overview: docs/automation/bots-overview.md
- CodeCov Setup: docs/automation/codecov-setup.md
- Preview Deployments: docs/automation/preview-deployments.md
- PR Guidelines: .github/PULL_REQUEST_GUIDELINES.md
Add these secrets in Settings → Secrets and variables → Actions:
Essential (for code coverage):
CODECOV_TOKEN=<your-codecov-token>
Optional (for preview deployments):
VERCEL_TOKEN=<your-vercel-token>
VERCEL_ORG_ID=<your-org-id>
VERCEL_PROJECT_ID=<your-project-id>
Alternative (if using Netlify):
NETLIFY_AUTH_TOKEN=<your-netlify-token>
NETLIFY_SITE_ID=<your-site-id>
See docs/automation/codecov-setup.md and docs/automation/preview-deployments.md for detailed setup instructions.
Automatically review code for security, generate tests, setup CI/CD, and create documentation.
from lib.orchestrator.workflows import full_code_review_workflow
result = full_code_review_workflow(orchestrator, code, "python")Design architecture, plan testing, and create specifications for new features.
from lib.orchestrator.workflows import new_feature_workflow
result = new_feature_workflow(orchestrator, {
"name": "User Authentication",
"description": "OAuth2 + JWT",
"scale": "10k users"
})Design Kubernetes deployment, setup monitoring, and create deployment docs.
from lib.orchestrator.workflows import production_deployment_workflow
result = production_deployment_workflow(orchestrator, {
"name": "my-app",
"image": "my-app:latest",
"port": 8080
})We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
make test) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Security is a top priority. See SECURITY.md for:
- Vulnerability reporting
- Security best practices
- Supported versions
Never commit API keys or secrets!
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- CrewAI for the agent framework
- Anthropic, OpenAI, Meta, and Google for LLM APIs
- The Go and Python communities
- 🐛 Report Issues
- 💬 Discussions
- 📧 Contact
Made with ❤️ by the Tokyo-IA team
- Go 1.21+: For building the AI services
- Python 3.11+: For agent framework
- Make: For build commands
- Git: Version control
# Clone the repository
git clone https://github.com/Melampe001/Tokyo-IA.git
cd Tokyo-IA
# Install Go dependencies
go mod download
# Install Python dependencies
pip install -r requirements.txt
# Setup pre-commit hooks (optional)
pre-commit install# Build
make build
# Run tests
make test
# Format code
make fmt
# Full CI locally
make ciSet up your API keys (optional for development with mock clients):
export OPENAI_API_KEY="your-key-here"
export ANTHROPIC_API_KEY="your-key-here"
export GEMINI_API_KEY="your-key-here"Configure models in config/ai_models.yaml.
- Architecture Overview - System design and components
- AI Integration Architecture - AI system design
- Model Router Guide - Intelligent routing and cost optimization
- API Reference - HTTP API documentation
- Agent Workflows - Multi-agent system usage (planned)
- Elite Framework - Automated project generation system
- Contributing Guide - How to contribute to the project
- CI/CD Documentation - Continuous Integration and Deployment
- Security Policy - Security best practices
Tokyo-IA includes the Elite Framework, an automated project generator that creates complete, production-ready projects from simple descriptions.
# Build the elite CLI
make elite
# Generate a project
./bin/elite generate "REST API for task management"
# Or use make command
make generate IDEA="Telegram bot for weather updates"- PWAs - Progressive Web Apps with React/Vite
- Bots - Telegram, Discord, Slack bots
- APIs - REST/GraphQL APIs with Go
- E-commerce - Online stores with Stripe
- AI Agents - CrewAI/Groq powered agents
Each generated project includes:
- ✅ Complete source code
- ✅ Tests (unit + integration)
- ✅ Docker deployment
- ✅ CI/CD workflows
- ✅ Full documentation
See the Elite Framework Documentation for details.
This project uses:
- CodeQL analysis
- Dependabot
- Pre-commit hooks
- Automated security scans
Report vulnerabilities to [security contact]
For more details, see the Security Policy.
We welcome contributions! Please read our Contributing Guide for details on:
- Development setup
- Code standards
- Pull request process
- Branch protection rules
This repository follows the Athena Protocol with automated:
- ✅ CI/CD pipelines
- ✅ Security scanning
- ✅ Code quality enforcement
- ✅ Comprehensive documentation
See LICENSE file for details.