๐Ÿš€ LuciferAI - Quick Start Guide

January 23, 2026 ยท View on GitHub

\ud83d\udce6 Installation

cd ~/Desktop/Projects/LuciferAI_Local

# Install core dependencies
pip3 install cryptography rich colorama

# Make executable
chmod +x lucifer.py

๐ŸŒ Setup GitHub FixNet (One-Time)

1. Create Public Repository

Go to GitHub and create a new public repository:

  • Name: luciferai-fixnet (or your choice)
  • Description: "LuciferAI FixNet - Collaborative Fix Learning"
  • Must be Public (for collaborative learning)

2. Configure Local FixNet

# Navigate to FixNet repo
cd ~/.luciferai/fixnet

# Set your GitHub remote
git remote add origin https://github.com/YOUR_USERNAME/luciferai-fixnet.git

# Rename branch to main (if needed)
git branch -M main

# Push initial commit
git push -u origin main

3. Setup GitHub Authentication

# Use credential helper to cache token
git config --global credential.helper store

# Next push will prompt for credentials:
# Username: YOUR_GITHUB_USERNAME
# Password: YOUR_PERSONAL_ACCESS_TOKEN (not your password!)

Get Personal Access Token:

  1. GitHub โ†’ Settings โ†’ Developer Settings โ†’ Personal Access Tokens
  2. Generate new token (classic)
  3. Select scopes: repo (full control)
  4. Copy token and use as password

\ud83d\ude80 Launch

cd ~/Desktop/Projects/LuciferAI_Local
./lucifer.py

\ud83d\udcdd Example Commands

You > help
๐Ÿ‘พ Shows all capabilities

You > run test_script.py
โšก Executes script with auto-fix on error

You > fix broken_script.py
๐Ÿ”ง Manually trigger fix analysis

You > search fixes for 'NameError'
๐Ÿ” Search FixNet for similar fixes

You > fixnet sync
๐Ÿ”„ Sync with remote fixes from other users

You > fixnet stats
๐Ÿ“Š View your fix dictionary statistics

You > list .
๐Ÿ“‚ List files in current directory

You > where am i
๐Ÿ“ Show environment info

\ud83e\uddea Demo: Auto-Fix Flow

Create a broken script:

echo 'print(json.dumps({"test": "data"}))' > broken.py

Run with LuciferAI:

You > run broken.py

What happens:

  1. \ud83d\udea8 Error detected: NameError: name 'json' is not defined
  2. \ud83d\udd0d Searches dictionary for similar fixes
  3. \u2699\ufe0f If found: applies known fix
  4. \u2705 If not found: generates new fix (import json)
  5. \ud83d\udcbe Applies fix to script
  6. \ud83d\udd10 Encrypts fix (AES-256)
  7. \u270d\ufe0f Signs fix (SHA256)
  8. \ud83c\udf0d Uploads to GitHub FixNet
  9. \ud83d\udccacUpdates local dictionary
  10. \ud83c\udf3f Creates branch links if inspired by other fixes

Output:

โœ… Script fixed and uploaded to FixNet!

Fix Applied:
import json

FixNet Commit:
https://github.com/YOUR_USERNAME/luciferai-fixnet/commit/abc123

Dictionary:
Added to dictionary key: nameerror: name 'json' is not defined...

\ud83e\uddd1\u200d\ud83d\ude80 Advanced Usage

Search for Fixes

You > search fixes for "ImportError: No module named requests"

Shows:

  • \ud83d\udcc1 Local fixes: Your past solutions (can read)
  • \ud83c\udf0d Remote fixes: Other users' solutions (encrypted, but metadata visible)

View Statistics

You > fixnet stats

Shows:

  • Total errors indexed
  • Total fixes in your dictionary
  • Branch connections
  • Remote fixes available
  • Top error types

Manual Sync

You > fixnet sync

Pulls latest refs.json from GitHub to see new fixes from other users.

\ud83d\udcca How Learning Works

Local Learning (Your Fixes)

Error A (first time)
  โ†“ fix manually
Fix A created
  โ†“ reuse later
Error A (second time)
  โ†“ apply known fix
Success! Score improves: 0.70 โ†’ 0.85

Collaborative Learning (All Users)

User 1: Fixes NameError โ†’ Uploads encrypted
User 2: Sees metadata โ†’ "NameError fixed by user ABC123"
User 2: Gets similar error โ†’ Generates own fix
User 2: Uploads โ†’ Creates branch link
User 3: Searches โ†’ Finds 2 similar fixes (relevance scores)
User 3: Applies best one โ†’ Updates its score

Branching

Your Fix
  โ†“ inspired by
Remote Fix (encrypted)
  โ†“ relationship: solved_similar
Your Dictionary
  โ†“ tracks link
Future similar errors โ†’ Higher relevance score

\ud83d\udd12 Security & Privacy

What's Encrypted

  • โŒ Error details (private)
  • โŒ Solution code (private)
  • โŒ File contents (private)
  • โŒ Context (private)

What's Public

  • \u2705 User ID (anonymized hash)
  • \u2705 Error type (NameError, etc.)
  • \u2705 Script name (parser.py, etc.)
  • \u2705 Timestamp (when fixed)
  • \u2705 Signatures (integrity verification)

How It Works

Your Fix
  โ†“ AES-256 encryption (device-bound key)
  โ†“ SHA256 signature
  โ†“ Upload .enc + .sig files
GitHub (public)
  โ†“ Other users see metadata only
  โ†“ Can't decrypt your fix
  โ†“ But know "User XYZ fixed this error type"

\ud83d\udee0\ufe0f Troubleshooting

Fixes Not Uploading?

cd ~/.luciferai/fixnet
git remote -v
# Should show your GitHub repo

git push
# Test manual push

Authentication Failed?

# Reset credentials
git config --global --unset credential.helper
# Next push will prompt again

FixNet Not Found?

The first run creates ~/.luciferai/fixnet/. If missing:

rm -rf ~/.luciferai/fixnet
./lucifer.py
# Will reinitialize

\ud83d\udcda File Locations

~/.luciferai/
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ auth.key                  # Your encryption key
โ”‚   โ”œโ”€โ”€ fix_dictionary.json       # Your fixes
โ”‚   โ””โ”€โ”€ user_branches.json        # Branch links
โ”œโ”€โ”€ logs/
โ”‚   โ”œโ”€โ”€ fixes/                    # All your fix patches
โ”‚   โ””โ”€โ”€ security.log              # Auth events
โ””โ”€โ”€ fixnet/                       # Local GitHub repo
    โ”œโ”€โ”€ fixes/                    # Encrypted fixes (all users)
    โ”œโ”€โ”€ signatures/               # Integrity signatures
    โ””โ”€โ”€ refs.json                 # Public searchable metadata

\u2699\ufe0f Configuration

Edit ~/.luciferai/fixnet/README.md after first run to add:

  • Repository description
  • Contributing guidelines
  • Your contact info

\ud83d\ude80 Next Steps

  1. Run Some Scripts: Let LuciferAI fix them automatically
  2. Check FixNet: See your fixes uploaded to GitHub
  3. View Dictionary: fixnet stats to see learning progress
  4. Sync Regularly: fixnet sync to get community fixes
  5. Share: Tell others about your FixNet repo

\ud83c\udd98 Tips

  • Let it learn: The more you use it, the smarter it gets
  • Check branches: See what fixes helped solve what
  • Review commits: Your GitHub repo shows all fixes
  • Sync often: More remote fixes = better search results
  • Trust the scores: High relevance = proven solutions

Ready? Launch with: ./lucifer.py

Need help? help command shows all capabilities

Full docs: See FIXNET_GUIDE.md for complete system details


Made with \ud83e\ude78 by TheRustySpoon