Skip to content

ivin-santhosh/SAIS-Kernel

Repository files navigation

SAIS: Sovereign Adaptive Intelligence System

A modular, local-first artificial intelligence operating system designed for dynamic capability generation, multi-persona orchestration, and structured task execution.

πŸ“‘ Table of Contents

  1. Overview
  2. Supported AI Models
  3. Key Features
  4. The Persona System
  5. Architecture
  6. Quickstart
  7. Development Roadmap
  8. UI Screenshots
  9. Disclaimer

πŸ”¬ Overview

The Sovereign Adaptive Intelligence System (SAIS) is a locally hosted AI ecosystem. Built entirely independent of cloud APIs, SAIS processes all data locally on the host machine to ensure absolute privacy and data sovereignty.

SAIS is designed to move beyond standard conversational interfaces into functional automation. It can dynamically learn new tasks by writing and saving its own code logic, store long-term context, and switch between specialized reasoning modes to handle different types of user requests effectively.

SAIS Kernel Interface : the Llama 3 8B Model (~4.5GB)

image

🧠 Supported AI Models

SAIS is built to leverage local inference engines (such as WebLLM, Ollama, or ggml) and provides the user with the flexibility to choose the appropriate model based on their hardware capabilities and task complexity.

The system natively supports and allows seamless switching between:

  • Llama 3.2 1B (~700MB): Highly efficient and lightweight. Ideal for rapid task execution, basic system commands, and operation on machines with limited GPU memory.
  • Llama 3 8B (~4.5GB): A more robust model suited for deep reasoning, complex mathematical analysis, extended code generation, and sophisticated pedagogical tasks.

✨ Key Features

  • Local-First Privacy: All processing, memory storage, and capability generation occur entirely on your local hardware.
  • Dynamic Capability Expansion: When presented with a novel task, the system can write physical .js or .py modules, save them locally, and mount them as new tools for future use.
  • Dual-Layer Memory: Utilizes a short-term session context for active conversations and a persistent long-term JSON storage system (with tagging and importance scoring) for continuous learning.
  • Live Telemetry: A transparent dashboard that logs every system thought process, hardware allocation, and tool execution in real-time.
  • User-Gated Evolution: The system proposes code optimizations and improvements, which are placed in an Approval Queue. No system evolution occurs without explicit user authorization.

🎭 The Persona System

SAIS dynamically analyzes the user's intent and routes the prompt to one of five specialized reasoning engines, optimizing the output for the specific task at hand.

Persona Role Optimized For
JARVIS The Mentor (Default) General guidance, learning, and proactive assistance.
FRIDAY The Tactician Data processing, logic, and rapid mathematical problem-solving.
EDITH The Hacker Direct system commands, DOM manipulation, and code execution.
TARS The Critic Debugging, error analysis, and validating logical consistency.
CORTANA The Strategist High-level planning, structural organization, and long-term goals.

πŸ—οΈ Architecture

SAIS utilizes a clean, modular architecture that separates decision-making from execution and interface layers.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              USER INTERFACE                 β”‚
β”‚      (WebUI / Local API Dashboard)          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        ORCHESTRATOR (Decision Engine)       β”‚
β”‚  - Parses Intent & Validates Dependencies   β”‚
β”‚  - Generates Step-by-Step Execution Plans   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     ↓
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        ↓            ↓           ↓
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ PERSONA β”‚ β”‚CAPABILITYβ”‚ β”‚ MEMORY  β”‚
   β”‚ ROUTER  β”‚ β”‚ REPOSITORY β”‚ β”‚ ENGINE  β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quickstart

Prerequisites

  • Python 3.9+
  • Local inference engine setup (e.g., Ollama or WebLLM dependencies)

Installation

  1. Clone the repository:
git clone [https://github.com/yourusername/sais-kernel.git](https://github.com/yourusername/sais-kernel.git)
cd sais-kernel
  1. Boot the core kernel:
python3 phase1_sais_kernel.py

Core Commands

Once the system is active, you can interact naturally or use the following system commands:

  • status - View active memory, hardware uptime, and system diagnostics.
  • capabilities - List all locally learned logic modules.
  • approvals - View the queue of self-evolution tasks awaiting user authorization.
  • persona [name] - Manually override the active persona.

πŸ—ΊοΈ Development Roadmap

  • Phase 1: Core Kernel - Orchestration, Memory, Personas, Capabilities (Completed).
  • Phase 2: Self-Evolution Engine - Improvement detection, proposal generation, and rollback systems.
  • Phase 3: Tool Integration - Local web scraping, sandboxed code execution, and file I/O operations.
  • Phase 4: UI + API Bridge - FastAPI integration linking the Python backend to the local WebGL interface.
  • Phase 5: Vector Memory - Semantic embeddings and vector search for expanded context retention.
  • Phase 6: AIMO Engine - Lean 4 formal verification integration for structured mathematical problem-solving.

πŸ“· UI Screenshots

SAIS Kernel Interface : the Llama 3.2 1B Model (~700MB)

image

Loading the Llama 3 8B Model

image

The Llama 3 8B Model is Ready for Use

image

⚠️ Disclaimer

SAIS is a powerful system designed with local-first execution capabilities, including direct system-level access and physical codebase generation. The owner of this repository, along with any developers and contributors to this repository, assume no liability and are not responsible for any misuse, damage, data loss, or unauthorized access caused by utilizing this software. Users are solely responsible for managing the Approval Queue, reviewing AI-generated logic before execution, and ensuring the secure operation of their local environments.

About

A sovereign autonomous AI ecosystem utilizing Llama 3.2 1B and Llama 3 8B via a Python/FastAPI backend to power a multi-persona agentic loop and local inference.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors