An intelligent code generation and project management tool powered by natural language processing. The Multi-Orchestrator understands your intent from natural language commands and generates complete project structures, handlers, databases, and more.
- Intent Classification: Automatically classifies user commands using MoE (Mixture of Experts) based semantic analysis
- Named Entity Recognition (NER): Extracts entities like handler names, database names, file paths from natural language
- Semantic Parsing: Converts natural language into structured semantic output for precise code generation
- Interactive Clarification: When intent is unclear, the system asks for clarification with helpful options
Create your own custom intents with reusable code templates:
# Create a new custom intent
> create intent
# or
> new intent
# Follow the interactive prompts:
# 1. Intent name (e.g., 'create_jwt_middleware')
# 2. Description
# 3. Keywords (comma-separated)
# 4. Patterns (comma-separated phrases that trigger this intent)
# 5. Output file path
# 6. Code template (inline or from learning directory)Template Variables: Use {{.VariableName}} placeholders in your templates for dynamic code generation.
Example Custom Intent:
- Name:
create_jwt_middleware - Keywords:
jwt,auth,middleware - Patterns:
add jwt,create jwt middleware - Template: Uses Go template syntax with variables like
{{.SecretKey}},{{.TokenExpiry}}
# List all custom intents
> list intents
> show intents
# Remove a custom intent
> remove intent <name>
> delete intent <name>Every command is automatically committed to Git, enabling powerful revert capabilities:
# Show command history with commit hashes
> show history
# Revert by command ID
> revert 5
# Revert by commit hash
> revert a1b2c3d
# Revert by command text (finds most recent match)
> revert create authentication handlerHow it works:
- Each successful command creates a Git commit
- Command history is stored in SQLite database with commit hashes
- Revert uses
git reset --hardto restore project state - Git history is preserved even when deleting projects
- Go Web Servers: Generate complete HTTP servers with routing
- Custom Handlers: Create specific handlers (authentication, user management, etc.)
- Database Integration: Generate servers with SQLite database support
- Dockerfile: Automatic Docker containerization
- README: Auto-generated project documentation
The orchestrator learns from your code:
- Store code templates in the
learning/directory - When generating files, the system searches for relevant learned content
- Interactive selection of learned templates during generation
- Reuse patterns across projects
Parallel task execution with specialized agents:
- Coder Agent: Generates Go server code and handlers
- DevOps Agent: Creates Dockerfile and deployment configs
- Documentation Agent: Writes README files
- QA Agent: Runs tests and builds to validate generated code
Create complex project structures from natural language:
> create a webserver with authentication handler
> add a database with users table
> create middleware folder with jwt authThe system understands:
- File and folder hierarchies
- Component relationships
- Code dependencies
- Project structure conventions
- SQLite Database: Stores all commands, generated code, and metadata
- Git Repository: Tracks all changes with full history
- Session Continuity: Resume work across sessions
- Command History: Full audit trail of all operations
go run ./cmd/multi_orchestrator# Create a basic web server
> create a webserver
# Create a server with specific handler
> create a webserver with authentication handler
# Create a server with database
> create a webserver with database users.db
# Delete project (preserves Git history)
> delete project
# View command history
> show history
# Revert to previous state
> revert 3
> revert create authentication
# Create custom intent
> create intent
# List custom intents
> list intents
# Exit
> exitgenerated_projects/
โโโ project/ # Generated project files
โ โโโ .git/ # Git repository (preserved on delete)
โ โโโ server.go # Generated Go server
โ โโโ handlers/ # Generated handlers
โ โโโ database/ # SQLite databases
โ โโโ Dockerfile # Docker configuration
โ โโโ README.md # Project documentation
โโโ orchestrator.db # Command history and metadata
โโโ custom_intents.json # User-defined custom intents
learning/ # Knowledge base directory
โโโ *.go # Learned code templates
cmd/multi_orchestrator/
โโโ main.go # Main orchestrator logic
โโโ custom_intents.go # Custom intent system
โโโ knowledge.go # Knowledge base implementation
The orchestrator automatically validates generated code:
- Syntax Check: Ensures Go code compiles
- Build Test: Attempts to build the project
- Error Reporting: Provides detailed error messages
- Auto-retry: Prompts for retry on failure
Custom intents support Go template syntax:
{{.Name}}- Simple variable substitution{{.HandlerName}}- Dynamic handler names{{.DatabasePath}}- File paths- Any custom variables you define
Command matching is flexible:
- Case-insensitive matching
- Partial phrase matching
- Keyword-based intent detection
When the system is uncertain:
- Shows detected entities
- Presents likely intent options
- Allows manual intent specification
- Supports custom intent creation on-the-fly
Place code templates in the learning/ directory:
learning/
โโโ auth_handler.go
โโโ jwt_middleware.go
โโโ database_models.goWhen generating similar files, the orchestrator:
- Searches for relevant templates
- Presents matches to the user
- Allows selection of learned content
- Applies templates to new files
The SQLite database stores:
- messages: Command history with timestamps
- commit_hash: Git commit for each command
- role: User commands vs. generated code
- content: Full command text or generated code
-
Run the orchestrator:
go run ./cmd/multi_orchestrator
-
Create your first project:
> create a webserver with user handler -
View what was created:
ls generated_projects/project/
-
Create a custom intent:
> create intent -
Experiment with revert:
> show history > revert 1
- Rapid Prototyping: Generate project scaffolding in seconds
- Learning Tool: Understand project structure patterns
- Template Management: Reuse code patterns across projects
- Experimentation: Try different approaches with easy revert
- Custom Workflows: Define your own intents for repeated tasks
- CSV to handler code generation
- better learning and remembering intent
GPL 3
Built with: Go, SQLite, Git, Neural Networks (MoE), NLP