Skip to content

FNSE - Fractal Neural Simulation Engine

Fractal Neural Simulation Engine

A production-grade, self-evolving multi-agent simulation framework with recursive skill compilation, graph-based memory, and enterprise safeguards.

Version 1.0.0
AGPL-3.0 License
Python 3.11+
FastAPI 0.109+
Redis 7.0+
Docker Ready


🏗️ The Five Engine Pillars


🚀 Quick Start

Get up and running in minutes with Docker:

# Clone and start
git clone https://github.com/nasirquant/fractal-neural-engine
cd fractal-neural-engine
docker-compose up -d

# Create your first epoch
curl -X POST http://localhost:8000/epochs \
  -H "Content-Type: application/json" \
  -d '{"num_agents": 10, "max_ticks": 100, "global_objective": "minimize_loss"}'
Requires: Python 3.11+, Redis, OpenAI API key (or Anthropic). See Environment Variables for full configuration.

📚 Documentation

5-Minute Quickstart

  1. Install dependencies

    pip install -r requirements.txt
  2. Configure environment

    cp .env.example .env
    # Edit .env with your OPENAI_API_KEY
  3. Start Redis

    docker run -d -p 6379:6379 redis:7-alpine
  4. Run the API server

    python main.py
  5. Create an epoch

    curl -X POST http://localhost:8000/epochs \
      -H "Content-Type: application/json" \
      -d '{"num_agents": 10, "max_ticks": 100}'

Next: Explore Architecture or API Reference


🔬 How It Works

The Simulation Loop

    graph LR
    A[Spawn Agents] --> B[Tick Scheduler]
    B --> C[Agent Think]
    C --> D[GraphRAG Query]
    D --> E[Skill Execute]
    E --> F[Message Pass]
    F --> G[Evaluate Loss]
    G --> H{Converged?}
    H -- No --> B
    H -- Yes --> I[Checkpoint & Exit]
  

Each epoch runs for max_ticks or until global loss converges below convergence_threshold. Agents operate in parallel, sharing knowledge through GraphRAG and evolving skills through the SkillCompiler.


🏢 Enterprise Ready


📖 Learn More


🤝 Community & Support

💬

Join the conversation:

  • GitHub Discussions — Ask questions, share ideas
  • Issues — Bug reports and feature requests
  • Discord — Real-time community chat (invite in repo)

📄 License

FNSE is licensed under AGPL-3.0 — free for commercial use, modification, and distribution. Network use requires source disclosure.

View LicenseCommercial Licensing


Built with ❤️ for the future of autonomous AI systems