Skip to content

jthom233/MLRSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MLRSA - Multi-Layer Recursive Specification Architecture

A professional specification-driven development framework that enables autonomous software orchestration using Claude AI agents. Now with ATLAS integration for persistent agent memory and continuous learning.

Python 3.11+ License: MIT ATLAS Bridge

πŸš€ Overview

MLRSA transforms complex software development into a systematic, specification-driven process with AI agents that learn and improve over time through persistent memory.

✨ Key Features

  • 🎯 Specification-Driven Development - Define projects through structured specifications with automatic translation to executable agent tasks
  • πŸ€– Multi-Agent Orchestration - 8 specialized agent roles working in concert with shared knowledge
  • 🧠 Persistent Memory (ATLAS) - Agents remember past experiences and continuously improve
  • πŸ”— Claude MCP Integration - Native integration with Claude MCP server for autonomous orchestration
  • πŸ›‘οΈ AI Code Management - Hallucination detection, constraint enforcement, compilation recovery
  • πŸ“ˆ Iterative Improvement - Each run gets better as agents accumulate experience

πŸ“š Documentation

🚦 Quick Start

Prerequisites

  • Python 3.11+
  • Docker Desktop (for ATLAS memory)
  • Node.js 18+ (optional, for MCP)

Installation

# 1. Clone MLRSA
git clone https://github.com/jthom233/mlrsa.git
cd mlrsa

# 2. Install dependencies
pip install -r requirements.txt

# 3. (Optional) Install ATLAS Bridge for persistent memory
pip install qdrant-client
git clone https://github.com/jthom233/mlrsa-atlas-bridge.git
cd mlrsa-atlas-bridge && docker-compose up -d

Windows Users: See Windows Installation Guide

Troubleshooting Installation

If you encounter compilation errors on Windows, use pre-compiled packages:

# Install latest compatible versions (recommended for Windows)
pip install numpy pandas scipy matplotlib scikit-learn psutil pydantic mypy pytest-cov

# Then install remaining pinned dependencies
pip install pyyaml==6.0.1 requests==2.31.0 networkx==3.2.1 aiofiles==24.1.0 httpx==0.27.0 python-dotenv==1.0.1 websockets==12.0 pytest==7.4.4 pytest-asyncio==0.21.1 black==23.12.1 flake8==7.0.0 colorama==0.4.6 tqdm==4.66.1 tabulate==0.9.0 click==8.1.7 rich==13.7.0 sphinx==7.2.6 sphinx-rtd-theme==2.0.0

Create Your First Project

Option 1: Interactive Generator (Recommended)

python quick_project_generator.py
# Follow the prompts to configure your project

Option 2: CLI

python claude_cli.py init my_app \
  -r "Build a task management system with React and Node.js" \
  -t web_application \
  -s 1000

Option 3: Tell Claude

Read the specifications in ~/Projects/my_app/specifications/
and begin autonomous multi-agent orchestration.

πŸ—οΈ Architecture

System Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    MLRSA    │────▢│ ATLAS Bridge │────▢│    ATLAS    β”‚
β”‚(Orchestration)     β”‚   (Integration)     β”‚   (Memory)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                                         β”‚
       β–Ό                                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   AI Agent Orchestra     │◀─────────│  Persistent      β”‚
β”‚ β€’ Meta-Architect         β”‚          β”‚  Memory Layers   β”‚
β”‚ β€’ Creative Director      β”‚          β”‚ β€’ Hot (Redis)    β”‚
β”‚ β€’ Code Generator         β”‚          β”‚ β€’ Warm (Redis)   β”‚
β”‚ β€’ Tester                 β”‚          β”‚ β€’ Cold (Postgres)β”‚
β”‚ β€’ Optimizer              β”‚          β”‚ β€’ Vector (Qdrant)β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Execution Phases

  1. Initialize - Set up project with constraints
  2. Architecture - Design system with memory guidance
  3. Implementation - Build with learned patterns
  4. Testing - Validate using past bug knowledge
  5. Optimization - Improve based on experience
  6. Knowledge Sharing - Agents share learnings

πŸ€– Agent Roles

Agent Responsibility Capabilities
Meta Architect System design Architecture patterns, tech stack selection, scalability planning
Spec Writer Technical specifications API definitions, data models, business logic
Code Generator Implementation Multi-language code generation, test creation
Tester Quality assurance Unit/integration/performance testing
Validator Formal verification Security validation, compliance checking
Optimizer Performance tuning Algorithm optimization, resource reduction
Creative Director UX/Content User experience, creative features
Polish Director Refinement Post-deployment improvements, A/B testing

πŸ› οΈ CLI Commands

Core Commands

Command Description Example
init Initialize new project python claude_cli.py init my_app -r "requirements" -t api -s 10000
status Check project status python claude_cli.py status -p my_app
validate Validate specifications python claude_cli.py validate my_app
agent Manage agents python claude_cli.py agent --list

AI Code Management

Command Description Example
ai-validate Validate AI code python claude_cli.py ai-validate ./src --fix
compile Compile with recovery python claude_cli.py compile my_app -l python
debug Debug code issues python claude_cli.py debug src/main.py
monitor Monitor runtime python claude_cli.py monitor --pid 12345

Polish & Optimization

Command Description Example
polish Run polish mode python claude_cli.py polish -m autonomous -p my_app
generate Generate prompts `python claude_cli.py generate code_generator '{"module": "auth"}'

🎯 Common Use Cases

Web Application

python claude_cli.py init social_network \
  -r "Social media platform with posts, comments, likes, and real-time chat" \
  -t web_application \
  -s 100000

REST API

python claude_cli.py init payment_api \
  -r "Payment processing API with Stripe integration and fraud detection" \
  -t api \
  -s 50000

Mobile App

python claude_cli.py init fitness_app \
  -r "Cross-platform fitness tracker with workout plans" \
  -t mobile \
  -s 25000

🌟 Advanced Features

AI Code Validation

  • Hallucination Detection - Identifies non-existent packages/methods
  • Security Scanning - Finds SQL injection, hardcoded passwords
  • Performance Analysis - Detects inefficient algorithms
  • Auto-Fixing - Automatically corrects common issues

Polish System Modes

  • Interactive - Manual review and approval
  • Autonomous - Automatic optimization cycles
  • Vibe Adjust - Atmosphere tuning (professional/playful/minimal)

Compilation Recovery

  • Multi-language support (Python, JS, TS, Rust, C++)
  • Automatic error fixing (up to 3 attempts)
  • Pattern-based error resolution

πŸ“ Project Structure

mlrsa/
β”œβ”€β”€ Core System
β”‚   β”œβ”€β”€ claude_orchestrator.py      # Main orchestration engine
β”‚   β”œβ”€β”€ claude_cli.py               # CLI interface
β”‚   β”œβ”€β”€ polish_orchestrator.py      # Polish system
β”‚   └── agent_prompts.py            # Agent templates
β”‚
β”œβ”€β”€ AI Code Management (src/orchestrators/)
β”‚   β”œβ”€β”€ ai_code_validator.py        # Validation & fixing
β”‚   β”œβ”€β”€ compilation_manager.py      # Compilation recovery
β”‚   β”œβ”€β”€ debug_orchestrator.py       # Auto-debugging
β”‚   β”œβ”€β”€ runtime_monitor.py          # Live monitoring
β”‚   β”œβ”€β”€ version_manager.py          # Dependency resolution
β”‚   └── integration_manager.py      # Module contracts
β”‚
β”œβ”€β”€ Configuration
β”‚   β”œβ”€β”€ specifications/              # Project specs
β”‚   β”œβ”€β”€ templates/                   # Project templates
β”‚   β”œβ”€β”€ examples/                    # Example configs
β”‚   └── mcp_config.json             # MCP settings
β”‚
└── Generated Projects (workspace/)
    └── {project_name}/
        β”œβ”€β”€ src/                     # Source code
        β”œβ”€β”€ tests/                   # Test suites
        β”œβ”€β”€ docs/                    # Documentation
        └── deployment/              # Deploy configs

πŸ§ͺ Testing

Run the comprehensive test suite:

# Quick validation test
python quick_test.py

# Full test suite
python test_mlrsa.py

🀝 Contributing

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

πŸ“ License

MIT License - see LICENSE file for details.

πŸ†˜ Support

πŸŽ‰ Acknowledgments

Built with Claude AI and the power of specification-driven development.


Ready to revolutionize how you build software? Start with MLRSA today! πŸš€

About

The Multi-Layer Recursive Specification Architecture (MLRSA)

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors