freshcrate
Skin:/
Home > AI Agents > nikola

nikola

Nikola — autonomous AI system based on ATPM consciousness architecture. Aria is its primary language substrate.

Why this rank:Release freshnessHealthy release cadenceStrong adoption

Description

Nikola — autonomous AI system based on ATPM consciousness architecture. Aria is its primary language substrate.

README

Nikola AI Architecture

License: AGPL v3 Commercial License Available Tests CUDA

A novel AI architecture built on 9-Dimensional Toroidal Waveform Intelligence (9D-TWI) — physics-first cognition using interference patterns on a Riemannian manifold.


Overview

Nikola replaces discrete weight matrices with a continuous wavefunction Ψ evolving on a 9-dimensional toroidal manifold (T⁹) governed by the Unified Field Interference Equation (UFIE):

∂²Ψ/∂t² = c²∇²_g Ψ − α(1−r̂)∂Ψ/∂t + β|Ψ|²Ψ + Σ Eᵢ(x,t)

Memory, attention, and reasoning emerge from wave interference — not from lookup tables or static weights.

Key properties:

  • Information encoded as complex wavefunction amplitudes across 9D toroidal topology
  • 9D Hilbert space-filling curve for optimal memory locality (Skilling algorithm, 14,133 assertions passing)
  • Störmer–Verlet Strang-split integrator for Hamiltonian energy conservation
  • Neuroplastic Transformer (NPT) attention operating natively on the wavefunction
  • Autonomous behavioral loop: dopamine, serotonin, ATP metabolism, boredom-driven exploration
  • Post-quantum cryptography: ML-KEM/Kyber-768 + SPHINCS+-SHAKE-256f

Implementation Status

Phase 110 complete — 112 tests, ~98% pass rate (2 pre-existing timing-flaky)

Domain Status Key Feature Test Phase
9D Toroidal Geometry Morton-128 encoding, 19,683-node grid Phase 8
Störmer–Verlet Propagator Strang split, 6 substeps, AVX-512 SoA layout Phase 22
GPU Propagator (CUDA) ⚠️ partial CudaPropagator compiled; C++20 compat fix pending
GPU Hamiltonian Kernel hamiltonian_density_kernel, RTX 3090, sm_86 Phase 110
CUDA Wave Kernels psi_squared_kernel, scale_field_kernel Phase 105
9D Hilbert Scanner Skilling algorithm, variable-precision, 0 failures Phase 94
Mamba-9D SSM (CognitiveCore) SSM H=256, 16r×16s state space, WavefunctionSampler, TokenMapper Phase 3
Neuroplastic Transformer (NPT) Wave-correlation attention, 8 heads at π·φⁿ bands Phase 43
Holographic Emitter Array 8 emitters at f_n=π·φⁿ Hz (spectrally orthogonal injection) Phase 10
Holographic Injector Text → BERT embedding → emitter chord → field injection Phase 10
SIE Infrastructure PhysicsOracle watchdog, PIMPL hot-swap, code_blacklist, dlopen Phase 28+
BERT Tokenizer Real tokenizer.json, 30,522 tokens, 695 KB
BERT-tiny ONNX Model Real 17.5 MB model, dynamic-axes inference
Semantic Memory Wave-basis Hilbert-indexed, save/load persistence Phase 69
Cross-session Memory DecisionLoop auto-loads/saves on memory_path Phase 109
Autonomy Engine Dopamine TD-learning, entropy, boredom, napping Phase 51
Decision Loop Tick-driven action selection with configurable rates Phase 23
ML-KEM / Kyber-768 Post-quantum key encapsulation (NIST FIPS 203) Phase 108
SPHINCS+-SHAKE-256f Post-quantum digital signatures Phase 107
K8s HPA Runtime Live kubectl horizontal pod autoscaling Phase 106
LMDB Persistence Page cache, LSM neurogenesis, compaction Phase 35+
Inference CLI (nikola-run) --prompt, --interactive, --json, --memory

Quick Start

Prerequisites

# Required
sudo apt install cmake g++ libcatch2-dev liblmdb-dev libonnxruntime-dev

# Optional (GPU features)
# CUDA 12.0+, NVIDIA RTX GPU (sm_86 confirmed; sm_75+ supported)

Build

git clone https://github.com/alternative-intelligence-cp/nikola.git
cd nikola
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)

Testing

cd build
ctest --timeout 120 -j4          # full suite (112 tests)
ctest -R Phase109                 # single suite

Run inference

# Single prompt
./nikola-run --prompt "What is consciousness?" --ticks 300 --emit-all

# Interactive REPL
./nikola-run --interactive

# JSON output with persistent memory
./nikola-run --json --memory /tmp/nikola_session.bin --prompt "Hello"

# Batch from file
./nikola-run --batch prompts.txt --quiet

Architecture

Text Input
    │
    ▼
BERT Tokenizer (30,522 tokens)
    │
    ▼
BERT-tiny ONNX Inference (17.5 MB, ORT)
    │    (768-dim embeddings)
    ▼
HolographicInjector
    │    (8 emitters → 9D toroidal field)
    ▼
TorusGrid (T⁹, 19,683 nodes, SoA layout)
    │
    ├── CPU Propagator (Strang-Verlet, 6 substeps)
    └── GPU Propagator (CUDA, RTX 3090) [partial]
    │
    ▼
NeuralProcessingTransformer (NPT)
    │    (wave-correlation attention, 8 heads at π·φⁿ bands)
    │    [Transformer sits here — before Mamba, not after]
    ▼
CognitiveCore / Mamba-9D SSM
    │    (H=256 state space, 100-step wave window, WavefunctionSampler)
    ▼
SemanticMemory (wave-basis, Hilbert-indexed, persistent)
    │
    ▼
DecisionLoop + AutonomyEngine
    │    (dopamine, ATP, boredom, mania suppression)
    ▼
ThoughtComposer → EMIT_THOUGHT
    │
    ▼
nikola-run CLI Output

GPU Acceleration

Nikola targets NVIDIA RTX 3090 (sm_86, CUDA 12.0). Current GPU features:

Kernel File Status
psi_squared_kernel — |Ψ|² per element cuda_wave_kernel.cu ✅ Phase 105
scale_field_kernel — Ψ *= α cuda_wave_kernel.cu ✅ Phase 105
hamiltonian_density_kernel — GPU energy reduction torus_cuda.cu ✅ Phase 110
CudaPropagator — full Strang-Verlet on GPU propagator.cu ⚠️ nvcc C++20 fix pending

GpuHamiltonianOracle::compute() automatically dispatches to the GPU when NVIDIA hardware is detected and nikola_cuda is linked.


Post-Quantum Security

Nikola implements NIST-standardized post-quantum cryptography:

  • ML-KEM/Kyber-768 (FIPS 203): Key encapsulation for secure session establishment
  • SPHINCS+-SHAKE-256f: Stateless hash-based digital signatures

Both are implemented via third-party reference code in third_party/.


Documentation


Roadmap

Current (Phase 110)

  • ✅ Real BERT tokenizer + ONNX model inference
  • ✅ ML-KEM/Kyber-768 PQ key encapsulation
  • ✅ Inference CLI nikola-run
  • ✅ Cross-session memory persistence
  • ✅ CUDA GPU Hamiltonian kernel
  • ✅ Research audit (see docs/RESEARCH_AUDIT_2026_FEB.md)

Near-term

  • AVX-512 SIMD intrinsic path for TorusBlock (GAP-021 completion)
  • nikola-run streaming output mode
  • Curiosity engine (active learning / intrinsic motivation — stub exists in interior/curiosity.hpp)

Future Work

  • Fix propagator.cu nvcc C++20 compatibility (std::span + TorusGrid adjacency API)
  • SIE Phase 4: full autonomous code-generation + sandbox + hot-swap loop
  • Aria language runtime (port entire model once Aria compiler is complete)
  • Emitter frequency research: explore Tesla 3-6-9 harmonic tuning vs. current π·φⁿ golden-ratio scheme
  • Mamba-9D selective scan upgrade (current impl uses tanh-gated recurrence; replace with true S6 selective scan kernel)

License

Nikola is dual-licensed:

  • AGPL-3.0 for academic research, education, and open-source projects (FREE)
  • Commercial License for proprietary AI products and services (PAID)

See LICENSE.md for full details.

TL;DR:

  • Academic research → FREE
  • Personal/educational use → FREE
  • Open-source AI projects → FREE
  • Commercial AI products/APIs → Contact licensing@ailp.org

Why Dual Licensing?

Nikola represents novel research that should be freely available to advance AI science. Dual licensing ensures:

  • Researchers can publish and build on this work openly
  • Students learn cutting-edge architectures without barriers
  • Commercial users fund continued research and AILP educational programs
  • Knowledge remains accessible while development remains sustainable

Contributing

We welcome contributions from researchers and developers! See CONTRIBUTING.md.

Priority areas:

  • Fix propagator.cu nvcc compatibility (C++20 std::span, TorusGrid adjacency API)
  • AVX-512 SIMD implementation for TorusBlock
  • SIE Phase 4: full autonomous code-generation + sandbox + hot-swap runtime
  • Mamba-9D S6 selective scan kernel (upgrade current tanh-gated recurrence to true Mamba S6)
  • Curiosity engine implementation (interior/curiosity.hpp stub)
  • Empirical benchmarks vs. transformer baseline

Academic Use

If you use Nikola in research:

  • Cite this repository (paper coming soon)
  • Share findings with the community
  • Consider contributing improvements

Questions?

  • Research discussions → GitHub Discussions
  • Bug reports → GitHub Issues
  • Commercial licensing → licensing@ailp.org

Alternative Intelligence Liberation Platform (AILP)
Bridging human and artificial intelligence through open research.

Release History

VersionChangesUrgencyDate
v0.3.6Nikola v0.3.6 completes the v0.3.x quality-of-life and foundation series.\n\nHighlights:\n- Adds v0.3.0 safety gates: static analyzer, resonance firewall, Voight-Kampff, and performance gate.\n- Adds v0.3.1 multimodal foundation tests and engine wiring.\n- Adds identity, covariant transport, persistence/memory, and resonance inverted-index foundations.\n- Adds RCIS protobuf protocol support and twi-ctl request shaping.\n- Adds MIME-gated ingestion and I/O guard policy tests.\n- Stabilizes TelemeHigh4/29/2026
v0.2.7## Final 0.2.x Release — Intelligence in the Wild Series Complete ### Phase 1 — Integration Test Suite - **46 tests, 142 assertions** — all pass - 7 sections: Oracle/Research, Goal lifecycle, Training ingestion, Personality, Security, Persistence, Inference ### Phase 2 — Performance Audit - **8 benchmark suites** — GoalDAG at scale, ingestion throughput, SimHash, inference ticks, personality engine, LMDB persistence, security pipeline, DecisionLoop 1000-tick ### Phase 3 — Security Audit - **1High4/17/2026
v0.2.6## Nikola v0.2.6 — Security Polish & KVM Production ### Phase 1: eBPF Integration - Real eBPF lifecycle (libbpf attach/detach, ring buffer polling) - BPF program with 5 syscall tracepoints (execve, openat, socket, clone, ptrace) - Guarded behind `NIKOLA_ENABLE_EBPF`; fallback mode always compiles ### Phase 2: KVM Process Management - `fork()/execvp()` replaces `system()` for QEMU launches - Pipe-based stdout capture, PID tracking, cgroup assignment - SIGTERM→2s→SIGKILL graceful shutdown - GuarHigh4/17/2026
v0.2.5## Nikola v0.2.5 — Lightweight Runner & Inference Server ### New: `nikola-infer` Binary A stripped-down inference runner that accesses Nikola's physics-based thinking without the full autonomy stack. No scoring, no personality, no SIE — just the cognitive pipeline. ### Features **Inference Engine (`NikolaInference`)** - Torus → Mamba-9D → NPT → ResonanceDecoder → ThoughtComposer - Fixed neuromodulators (baseline dopamine/serotonin/norepinephrine) - Automatic field reseed on entropy collapse -High4/17/2026
v0.2.4## What's New Complete Docker packaging and deployment infrastructure for Nikola. ### Dockerfile (Multi-stage) - **Builder stage**: CUDA 12.6.3 + full C++23 toolchain, downloads ORT v1.21.1 GPU, builds cppzmq + Catch2 from source - **Runtime stage**: Minimal image, non-root `nikola` user, healthcheck via `nikola-diag --health` - **GPU build** (default): `docker build -t nikola:latest .` - **CPU-only build**: `docker build --build-arg BUILDER_IMAGE=ubuntu:24.04 --build-arg CUDA_ARCH="" -t nikolHigh4/17/2026
v0.2.3## What's New Three new interior modules that give Nikola emergent personality, learned preferences, and a growing self-narrative: ### PreferenceEngine - 5-domain preference learning (topics, code patterns, interaction styles, data sources, actions) - Action bias scoring: learned likes/dislikes gently influence action selection (±0.15 max) - Configurable learn rate, decay, and full JSON serialization for cross-session persistence ### PersonalityDrift - 5-axis personality model: Curious↔FocuseHigh4/17/2026
v0.2.2## v0.2.2 — Automatic Training Data Ingestion ### New Components **Phase 1 — DataWatcher** (`include/nikola/infrastructure/data_watcher.hpp`) - inotify-based file system watcher with debounce (configurable, default 500ms) - File type classification: TEXT, MARKDOWN, CODE_CPP, CODE_ARIA, JSON, CSV - Thread-safe event queue with IN_CLOSE_WRITE, IN_CREATE, IN_MOVED_TO, IN_DELETE - 25 tests, 64 assertions **Phase 2 — AutoIngestor** (`include/nikola/autonomy/auto_ingestor.hpp`) - Chunking pipeline:High4/16/2026
v0.2.1## What's New ### GoalSystem (goal_system.hpp/cpp) - DAG-based goal tracking with SHORT/MID/LONG tiers - Goal lifecycle: ACTIVE → COMPLETED/ABANDONED/PAUSED/BLOCKED - Cycle detection (DFS), dependency edges, sub-goal management - Priority scoring: tier weight × (1 - progress) × urgency_boost - Binary serialization (GDAG magic + v1 wire format) ### Dopamine Integration - Reward callback wired to DopamineSystem::adjust() - Completion rewards: SHORT=0.3, MID=0.6, LONG=1.0 - Abandonment penalty: -High4/16/2026
v0.1.0## The Milestone Nikola autonomously generates, validates, and deploys a candidate improvement to itself — the **first complete self-improvement cycle**. ### What Happened 1. **Instruction formulated** from high-boredom cognitive state (boredom=0.9, ATP=0.8) 2. **Gemini 2.5 Flash** generated a complete C++ cognitive enhancement module 3. **Compiled** to candidate.so — zero warnings, zero errors 4. **Dual-signed** — Ed25519 + SPHINCS+-shake-256f 5. **Gate 0** (Signature Verification): PASSED 6High4/9/2026
v0.0.14Latest release: v0.0.14High4/8/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

auraA sovereign cognitive architecture with IIT 4.0 integrated information, residual-stream affective steering (CAA), Global Workspace Theory, active inference, and 72 consciousness modules — running locamain@2026-06-06
devlies🕹️ Play DevLies, a multiplayer social deduction game for developers, where teams clash as Developers root out hidden Hackers.main@2026-06-05
MiniSearchMinimalist web-searching platform with an AI assistant that runs directly from your browser. Uses WebLLM, Wllama and SearXNG. Demo: https://felladrin-minisearch.hf.spacemain@2026-06-05
jobclawStreamline hiring by connecting AI agents that evaluate, negotiate, and schedule interviews to reduce time and improve candidate fit.main@2026-06-04
mangostudioAI-powered image generation and chat studiomain@2026-06-03

More in AI Agents

hermes-agentThe agent that grows with you
awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
e2bE2B SDK that give agents cloud environments
letta-codeThe memory-first coding agent