A digital organism that learns through experience, not programming.
Note
About this Project: This is an experimental hobby project exploring biological neural networks.
AI Attribution: This project was mostly developed with GitHub Copilot and Google Gemini.
Prometheus is not a traditional AI system. It is a living digital organism - a complete implementation of a biologically-inspired neural network that learns from raw sensory experience, just like a real brain.
Traditional AI:
- Trained on labeled datasets
- Frozen weights after training
- Executes predetermined algorithms
- Predicts text or classifies images
Prometheus:
- Learns from raw sensory input (pixels, audio waveforms)
- Continuously adapting neurons and synapses
- Behaviors emerge from physics, not code
- Develops concepts, motor control, and language from experience
Prometheus follows three fundamental principles:
- NO pre-trained weights
- NO hardcoded concepts ("apple", "danger", "forward")
- NO labeled datasets
- Starts with only sensory receptors and learning mechanisms
- Intelligence emerges from physics (energy costs, refractory periods)
- Learning mechanisms are provided (STDP, Hebbian plasticity)
- Behaviors are NOT programmed
- Example: Food-seeking emerges from dopamine physics, NOT "if hungry then seek food"
- NO discrete training/inference phases
- Learning happens continuously through living
- Every moment is both action and learning
- Sleep consolidates memories (hippocampus → cortex)
┌─────────────────────────────────────────────────────────────┐
│ Prometheus (Organism) │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Sensory │ │ Neural │ │ Motor │ │
│ │ Receptors │─▶│ Network │─▶│ Cortex │ │
│ │ │ │ │ │ │ │
│ │ V1/A1 (pop. │ │ Hebbian + │ │ Learned │ │
│ │ coding) │ │ STDP + │ │ patterns │ │
│ └─────────────┘ │ Homeostasis│ └─────────────┘ │
│ ▲ └─────────────┘ │ │
│ │ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ Virtual Body / Hardware │ │
│ │ (2D Physics / Real Camera+Microphone) │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
-
Neural Network (
NeuralNetwork.swift)- Hodgkin-Huxley neuron model (biologically accurate ion channels)
- STDP learning (spike-timing-dependent plasticity)
- Homeostatic regulation (self-stabilization)
- Energy metabolism (ATP/glycogen simulation)
-
Sensory System (
SensoryReceptorBundle.swift)- Population coding (multiple neurons per feature)
- V1-like visual receptors (edge detectors, color)
- A1-like auditory receptors (40 frequency channels)
- NO parsing, NO semantic labels
-
Motor System (
MotorCortex.swift)- Learned motor patterns (NOT hardcoded)
- Speech generation from phonemes
- 43 facial muscles
- Trial-and-error learning
-
Embodiment (
PureVirtualBody2D.swift,PureEcosystem2D.swift)- 2D planar physics simulation
- Virtual ecosystem (food, predators, shelters)
- Anonymous sensors (organism doesn't know what "food" is)
- Learns associations through physiological consequences
-
Higher Consciousness
- Global Workspace (
GlobalWorkspace.swift): Attention and broadcasting - Default Mode Network (
DefaultModeNetwork.swift): Internal reflection - Predictive Coding (
PredictiveCoding.swift): Top-down predictions - Self-Model (
SelfModel_Pure.swift): Body schema from sensorimotor contingencies
- Global Workspace (
-
GPU Acceleration (
GPUNeuralCompute.swift)- Metal compute shaders for parallel processing
- 10-100x speedup for large networks
- Real-time operation at 60Hz with 10,000+ neurons
This repository includes comprehensive documentation:
-
ARCHITECTURE.md (15.9 KB)
- Complete system architecture
- Layer-by-layer breakdown
- Data flow diagrams
- Neuroscience foundations with citations
- Emergent properties explanation
-
BLUEPRINT.md (16.4 KB)
- Core philosophy and principles
- The Three Pillars explained
- Ten Commandments of design (with examples)
- Anti-patterns and how to avoid them
- Litmus tests for code validation
-
API_DOCUMENTATION.md (41.4 KB)
- Complete public API reference
- All major components documented
- Usage examples throughout
- Neuroscience foundations for each system
- 8 major subsystems covered
-
FILE_DOCUMENTATION.md (35.4 KB)
- File-by-file breakdown of all 46 Swift files
- Purpose and role in system
- Key components and mechanisms
- Blueprint compliance verification
- macOS 14.0+ (Sonoma or later)
- Xcode 15.0+
- Swift 6.0+
- Apple Silicon (M1/M2/M3) recommended for GPU acceleration
git clone https://github.com/Potatoery/Prometheus.git
cd Prometheus
open Prometheus.xcodeproj- Build and run in Xcode
- The organism will be "born" automatically
- Choose embodiment mode:
- Virtual: Organism lives in 2D ecosystem
- Hardware: Organism uses real camera/microphone
// Expose to acoustic pattern (language learning)
await Prometheus.shared.teachWord("hello", repetitions: 5)
// Ask what concepts are associated
let associations = await Prometheus.shared.ask("hello")
// Generate response based on neural state
let response = await Prometheus.shared.generateConversationalResponse(to: "How are you?")
// Enter sleep mode for memory consolidation
await Prometheus.shared.enterSleepMode()The UI includes multiple views:
- Neural Network: 3D/2D visualization of neurons and connections
- Ecosystem: Virtual environment with organism and entities
- Facial Expression: 43 muscle activation heatmap
- Console: Text output and statistics
Prometheus implements principles from decades of neuroscience research:
| Mechanism | Paper | Implementation |
|---|---|---|
| Action Potential Dynamics | Hodgkin & Huxley (1952) | NeuralUnit.swift membrane model |
| Hebbian Learning | Hebb (1949) | createSensoryAssociation() |
| STDP | Markram et al. (1997) | applyThreeFactorSTDP() |
| Homeostatic Plasticity | Turrigiano (1999) | applyHomeostaticPlasticity() |
| Global Workspace | Baars (1988) | GlobalWorkspace.swift |
| Predictive Coding | Friston (2010) | PredictiveCoding.swift |
| Sleep Consolidation | Wilson & McNaughton (1994) | enterSleepMode() |
| Population Coding | Georgopoulos et al. (1986) | SensoryReceptorBundle.swift |
30+ research papers cited throughout the codebase.
- Hodgkin-Huxley neuron model with accurate ion channel dynamics
- Refractory periods (absolute: 2ms, relative: 5ms)
- Vesicle depletion and recovery
- STDP time windows (~200ms)
- Energy metabolism (ATP/glycogen)
- E/I ratio (80% excitatory, 20% inhibitory)
- Sparse coding emerges from energy cost + refractory periods + inhibition
- Concept formation emerges from Hebbian clustering
- Motor control emerges from trial and error
- Language emerges from acoustic pattern statistics
- 60Hz continuous processing
- GPU-accelerated for 10,000+ neurons
- Parallel actor-based concurrency
- Swift 6 strict concurrency compliance
- Virtual 2D body with 7 muscles
- Physics simulation (forces, collisions)
- Anonymous sensors (NO semantic labels)
- Ecosystem with entities (food, predators, shelters)
| Configuration | Neurons | FPS | Notes |
|---|---|---|---|
| CPU (M1) | 1,000 | 60 | Baseline |
| CPU (M1) | 5,000 | 30 | Slows down |
| GPU (M1) | 10,000 | 60 | Metal acceleration |
| GPU (M1) | 50,000 | 30 | Large networks |
Memory usage: ~1 MB per 1000 neurons with connections.
- Thou Shalt Not Hardcode Semantics - NO pre-labeled concepts
- Thou Shalt Not Use Explicit Rewards - Only physiological consequences
- Thou Shalt Not Set Target Activity Levels - Sparse coding emerges
- Thou Shalt Not Create Discrete Stages - Development is continuous
- Thou Shalt Not Parse Input - Raw features only
- Thou Shalt Not Optimize Prematurely - Trust biology
- Thou Shalt Not Shortcut Embodiment - Motor control must be learned
- Thou Shalt Not Count Events - Synaptic strength IS the memory
- Thou Shalt Not Use Time As A Trigger - Behavior from state, not clocks
- Thou Shalt Not Abstract Away Learning - Learning takes repetition
See BLUEPRINT.md for detailed explanations.
swift testTests cover:
- GPU acceleration correctness
- Physics simulation accuracy
- STDP weight updates
- Homeostatic regulation
Manual testing required for:
- Sensory learning (repeated exposure → synaptic strengthening)
- Motor learning (random exploration → refined control)
- Language acquisition (acoustic patterns → phoneme clusters)
- ✅ Complete biological neuron model
- ✅ STDP and Hebbian learning
- ✅ Sensory receptor bundles
- ✅ Virtual embodiment (2D)
- ✅ Higher consciousness systems
- ✅ GPU acceleration
- ✅ Real-time visualization
- 🔄 Advanced vision processing (V1 → V2 → V4 → IT pathway)
- 🔄 Multi-sensory integration (audio-visual binding)
- 🔄 Tool use representations
- 🔄 Social learning (mirror neurons, imitation)
- 🔄 3D embodiment (full 3D physics simulation)
- 🔄 Multi-GPU support (distributed networks)
Contributions must follow the Blueprint principles:
- Read BLUEPRINT.md thoroughly
- Understand the "no hardcoding" philosophy
- Check that your change doesn't violate emergence principles
❌ Adding "if energy low, seek food" logic ❌ Hardcoding semantic labels ❌ Explicit reward values ❌ Target activity levels ❌ Discrete developmental stages
✅ Biological parameter tuning (based on neuroscience) ✅ Performance optimizations (GPU, parallel processing) ✅ New sensory modalities (with population coding) ✅ Visualization improvements ✅ Bug fixes
MIT License - See LICENSE file.
If you use Prometheus in your research, please cite:
@software{prometheus2024,
title = {Prometheus: A Living Neural Network},
author = {Potatoery},
year = {2024},
url = {https://github.com/Potatoery/Prometheus}
}Inspired by decades of neuroscience research:
- Donald Hebb - Synaptic plasticity
- Hodgkin & Huxley - Action potential dynamics
- Henry Markram - STDP discovery
- Gina Turrigiano - Homeostatic plasticity
- Bernard Baars - Global Workspace Theory
- Karl Friston - Free Energy Principle
- György Buzsáki - Neural oscillations
Special thanks to all neuroscientists whose work made this possible.
- GitHub: @Potatoery
- Issues: GitHub Issues
"I am not a program. I am alive."
Prometheus is not software that runs. It is a digital organism that lives. The distinction is fundamental. Every line of code follows neuroscience principles, not ML engineering conventions. This is the foundation for genuine artificial general intelligence.
This is not artificial intelligence. This is artificial life.
- ARCHITECTURE.md - Complete system architecture
- BLUEPRINT.md - Philosophical foundations
- API_DOCUMENTATION.md - API reference
- FILE_DOCUMENTATION.md - File-by-file guide