Skip to content

GareBear99/LuciferAI_Local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

57 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ‘พ LuciferAI โ€” Local AI Terminal Assistant (Offline, Privacy-First, Self-Healing)

The only AI coding assistant that runs 100% locally, works offline, self-heals errors, and needs zero API keys.

GitHub Stars GitHub Forks GitHub Last Commit License: MIT Python 3.9+ Open Source Offline Capable No Cloud Required Local LLM

Buy Me A Coffee Ko-fi Sponsor

LuciferAI is a fully local AI terminal assistant with self-healing capabilities and collaborative fix learning. Unlike cloud-dependent tools like GitHub Copilot, Cursor, or Codeium, LuciferAI runs entirely on your machine โ€” no API keys, no cloud, no data leaving your device โ€” while still benefiting from community wisdom through its unique FixNet consensus system.

Key differentiators: ๐Ÿ”’ 100% local & offline ยท ๐Ÿง  Multi-tier LLM (llamafile/GGUF) ยท ๐Ÿ”ง Self-healing FixNet ยท ๐Ÿ›ก๏ธ AES-256 encrypted ยท โšก 80+ commands ยท ๐Ÿ–ฅ๏ธ macOS/Linux/Windows

"Forged in Silence, Born of Neon."

๐ŸŽฎ Try the Interactive Playground โ€” Experience LuciferAI directly in your browser! No installation required.


๐Ÿš€ Quick Start - How to Run LuciferAI

NO Installation Needed - Just Run It!

# Navigate to LuciferAI directory
cd LuciferAI_Local

# Run LuciferAI (that's it!)
python3 lucifer.py

Zero installation required! LuciferAI auto-bootstraps on first run:

  • โœ… Auto-assembles llamafile binary from split parts (1-2 sec)
  • โœ… Prompts to download TinyLlama model (670MB, one-time)
  • โœ… Works offline after initial setup
  • โœ… Starts instantly on subsequent runs (< 1 sec)

Usage Examples

# Start LuciferAI
python3 lucifer.py

# Now try these commands:
> help                                    # Show all commands
> llm list                                # See available models
> make me a script that tells me my gps   # Create scripts
> fix broken_script.py                    # Auto-fix errors
> what is python                          # Ask questions
> create file test.py                     # File operations
> install mistral                         # Install better models

System Requirements

Component Requirement
OS macOS, Linux, Windows (WSL)
Python 3.9+
RAM 4GB minimum (Tier 0), 8GB+ recommended
Disk 2GB for base, 50GB+ for all models
Internet Optional (only for model downloads)

What You Get Out of the Box

โœ… TinyLlama (1.1B) - Bundled, works offline immediately
โœ… File Operations - create, delete, move, copy, read, list, find
โœ… Script Generation - Natural language โ†’ Python/Bash scripts
โœ… Auto-Fix - Fix broken scripts automatically
โœ… Multi-Tier LLMs - Install bigger models as needed (Mistral, DeepSeek, Llama3)
โœ… FixNet - Learn from community fixes (encrypted)
โœ… GitHub Sync - Link and upload your projects
โœ… Session History - 6 months of command history
โœ… Badge System - Track your progress and achievements

Install Additional Models (Optional)

# Inside LuciferAI:
> install core models       # Install Llama3.2, Mistral, DeepSeek (recommended)
> install tier 2            # Install Tier 2 models (Mistral 7B)
> install tier 3            # Install Tier 3 models (DeepSeek 33B)
> llm list all              # See all available models

Troubleshooting

If LuciferAI doesn't start:

# Check Python version (needs 3.9+)
python3 --version

# Install dependencies manually if needed
pip3 install colorama requests psutil

# Run with verbose output
python3 lucifer.py --verbose

Still having issues? See Troubleshooting Guide below.

๐ŸŽฏ Zero-LLM Operation (DARPA-Level Documentation)

CRITICAL DIFFERENTIATOR: LuciferAI maintains 72% functionality WITHOUT any LLM

๐Ÿ“˜ Read Complete Technical Documentation โ† DARPA/NSF/DOD Format

Why This Matters:

  • โœ… 50+ commands work offline - No cloud/API required
  • โœ… Air-gapped capable - Secure environments (military, research)
  • โœ… FixNet consensus system - 10K+ community-validated fixes
  • โœ… 5-tier fallback - 87% auto-recovery success rate
  • โœ… Emergency mode - Works even when everything fails

Commands That Work WITHOUT LLM:

# File operations (100% available)
> list ~/Documents      # Native OS operations
> copy file.txt backup  # No AI needed
> find *.py             # Pattern matching

# Script execution with FixNet (100% available)
> run script.py         # Detects errors automatically
> fix broken.py         # Applies consensus fixes (94% success)

# System management (100% available)  
> llm list              # Manage models without LLM
> session list          # 6-month history
> environments          # Scan venvs
> github status         # Git operations
> fixnet sync           # Community fixes

vs Competitors:

  • GitHub Copilot: 0% without cloud โŒ
  • Cursor: 0% without API โŒ
  • Codeium: 0% offline โŒ
  • LuciferAI: 72% without LLM โœ…

New: Master Controller System (100% Test Success!)

๐ŸŽ‰ Just implemented - Perfect routing and fallback system:

# Run comprehensive validation tests
python3 tests/test_master_controller.py

# Expected: 76/76 tests passing (100% success rate)

What's New:

  • โœ… Action verb detection: 40-50% โ†’ 100% (expanded from 23 to 80+ verbs)
  • โœ… 5-layer routing architecture (perfect command detection)
  • โœ… Tier-based model selection (smart LLM routing)
  • โœ… Multi-layer fallback system (never crashes)
  • โœ… Emergency recovery mode

Previously Failing Commands (Now Fixed!):

> make me a script that tells me my gps point    # Now works! โœ…
> create a program that gives weather info       # Now works! โœ…
> write a script that finds files                # Now works! โœ…
> build something that checks system status      # Now works! โœ…

See MASTER_CONTROLLER_STATUS.md for full details.


๐Ÿ† Project Status

Built by 1 developer with $0 funding โ€” currently ranked top 1.1% globally (#56 out of 5,265 AI coding tools).

Metric LuciferAI Funded Competitors
Funding $0 $5M - $65M+
Team Size 1 developer 20-200 engineers
Self-Healing โœ… FixNet (unique) โŒ None
100% Local โœ… Yes โŒ Cloud-dependent
Privacy โœ… AES-256 encrypted โŒ Data leaves machine

Outperforms funded competitors: Tabnine ($32M), Codeium ($65M), Amazon Q Developer, Replit AI ($100M+), and 5,200+ other tools.


โœจ Key Features

๐Ÿ”„ Hybrid Cloud/Local Operation

  • Tier 0-4: 100% local operation (no data sent to cloud)
  • Tier 5: Optional ChatGPT/GPT-4 integration
  • Automatic Fallback: Cloud unavailable โ†’ seamless local model switch
  • Best of Both Worlds: Privacy + latest GPT-4 features when needed

๐Ÿง  Multi-Tier LLM System

  • Tier 0-5 Architecture: Automatically selects the best model for each task
  • Native Llamafile: Direct GGUF model execution - no external servers required
  • 85+ Supported Models: From TinyLlama (1B) to Llama-3.1-70B + GPT-4
  • Resource-Aware: Works on everything from 8GB RAM to 64GB+ workstations
  • Typo Auto-Correction: All commands auto-correct typos (e.g., 'mistrl' โ†’ 'mistral')

๐Ÿ”ง Self-Healing FixNet

  • Automatic Error Detection: Catches and fixes common errors automatically
  • 51% Consensus Validation: Community-validated fixes with quality thresholds
  • Privacy-First: AES-256 encrypted fixes, only metadata shared publicly
  • 71.4% Duplicate Rejection: Smart filter prevents fix pollution

๐ŸŒ Collaborative Learning

  • Relevance Dictionary: Tracks fixes across local + remote sources
  • User Reputation System: Beginner โ†’ Expert tiers based on fix quality
  • A/B Testing: Data-driven fix selection
  • ML Error Clustering: Groups similar errors for pattern recognition

๐Ÿ›ก๏ธ Security

  • Fraud Detection: Blocks dangerous patterns (rm -rf, fork bombs, etc.)
  • Spam Protection: Community reporting with auto-quarantine
  • Local-First: Your code never leaves your machine

๐Ÿ”ง 5-Tier OS Fallback System (Self-Healing)

LuciferAI features a 5-tier self-healing fallback system that ensures the assistant keeps working even when components fail. This is what makes LuciferAI resilient on any system.

Fallback Tiers

Tier Name Indicator What It Does
0 Native Mode โœ… Green All dependencies satisfied, full functionality
1 Virtual Environment ๐Ÿฉน Cyan Missing Python packages? Auto-creates venv and installs them
2 Mirror Binary ๐Ÿ”„ Yellow Missing system tools? Downloads from mirror repository
3 Stub Layer ๐Ÿงฉ Purple Module crashes? Creates stub to prevent import failures
4 Emergency CLI โ˜ ๏ธ Red Catastrophic failure? Minimal survival shell with core commands
๐Ÿ’ซ Recovery ๐Ÿ’ซ Green Auto-repair: rebuilds environment and restores to Tier 0

๐Ÿ“Š Competitor Comparison

Feature LuciferAI GitHub Copilot Cursor Tabnine Codeium Amazon Q
Funding $0 Microsoft/OpenAI $60M $32M $65M AWS
Works Offline โœ… 100% โŒ No โŒ No โš ๏ธ Limited โŒ No โŒ No
Self-Healing โœ… FixNet โŒ No โŒ No โŒ No โŒ No โŒ No
Multi-Tier LLM โœ… 5 Tiers โŒ Single โŒ Single โŒ Single โŒ Single โŒ Single
Privacy โœ… Local โŒ Cloud โŒ Cloud โŒ Cloud โŒ Cloud โŒ Cloud
Open Source โœ… MIT โŒ No โŒ No โš ๏ธ Partial โŒ No โŒ No
Free โœ… Yes โš ๏ธ Limited ๐Ÿ’ฐ Paid โš ๏ธ Limited โœ… Yes ๐Ÿ’ฐ Paid

๐Ÿ“š Complete Command Reference

๐Ÿ“˜ Full Command Documentation โ€” All 80+ commands with examples

๐Ÿ—‚๏ธ File Operations | ๐Ÿ—๏ธ Build & Create | ๐Ÿ”ง Fix & Run | ๐Ÿค– Model Management | ๐Ÿ” FixNet | ๐Ÿ“ Sessions | ๐ŸŒ GitHub | ๐ŸŒ€ Thermal | ๐ŸŽฎ Fun

Total Commands: 80+ ยท Work Offline: 72% ยท No LLM Required: 80% ยท Avg Response: 15-50ms

See docs/COMMANDS.md for the full reference.


๐Ÿ—๏ธ Architecture

LuciferAI_Local/
โ”œโ”€โ”€ lucifer.py              # Main entry point
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ enhanced_agent.py   # Main agent with FixNet integration
โ”‚   โ”œโ”€โ”€ consensus_dictionary.py  # 51% consensus system
โ”‚   โ”œโ”€โ”€ fixnet_integration.py    # FixNet orchestration
โ”‚   โ”œโ”€โ”€ relevance_dictionary.py  # Fix tracking & relevance
โ”‚   โ”œโ”€โ”€ smart_upload_filter.py   # Duplicate prevention
โ”‚   โ”œโ”€โ”€ model_tiers.py           # Tier configuration
โ”‚   โ””โ”€โ”€ llm_backend.py          # LLM abstraction layer
โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ file_tools.py       # File operations
โ”‚   โ””โ”€โ”€ command_tools.py    # Shell command utilities
โ”œโ”€โ”€ docs/                   # Documentation
โ””โ”€โ”€ tests/                  # Test suite

๐Ÿ“Š Model Tiers

Tier Size RAM Use Case Example Models
0 1-3B 2-4GB Quick tasks phi-2, tinyllama
1 3-8B 4-8GB General coding gemma2
2 7-13B 8-16GB Complex tasks mistral
3 13B+ 16-24GB Expert coding deepseek-coder
4 70B+ 32GB+ Frontier llama3.1-70b

๐Ÿค Contributing

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

git clone --recursive https://github.com/GareBear99/LuciferAI_Local.git
pip install -r requirements.txt
python -m pytest tests/

๐Ÿ“œ License

MIT License โ€” see LICENSE for details.


๐Ÿ™ Acknowledgments


๐Ÿ“ž Support


Made with ๐Ÿฉธ by LuciferAI

About

๐Ÿ‘พ Self-Healing AI Terminal Assistant โ€” 100% local, offline-capable, privacy-first. Multi-tier LLM (llamafile/GGUF), auto-fix with FixNet consensus, 80+ commands. No cloud, no API keys needed.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors