Skip to content
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
8b-isPublic archive

About

OS-agnostic Hybrid AI Studio & 0-dep/0-unsafe Rust core (6 crates) — Maple 20B-A1B Ternary MoE, Firebase AI Logic, WebMCP, Honcho + MemPalace, 24 providers

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Aristotele v0.8.1 - Hybrid AI Studio, Ternary Kernels & Hardened Local Runtime

CI Release Pages Live Studio Security License: Apache-2.0

Live Hosted Hybrid Studio (Firebase Hosting, Zero Install): https://ailogic-74fae.web.app
Website & GitHub Pages Mirror: https://aristotele.vaked.dev/ · https://8b-is.github.io/aristotele/studio.html
Security Policy (SEC-01 – SEC-07): SECURITY.md · Devpost Kit (v0.8.0): docs/DEVPOST_SUBMISSION.md · Firebase App: firebase-app/

Aristotele is an OS-agnostic, zero-crates.io-dependency Rust 2024 personal AI assistant and hybrid Studio built across 6 workspace crates (0 unsafe Rust code across crates/), combining Chrome Gemini Nano + Firebase AI Logic (firebase@13.4.0), 8b-is/kolibry CPU/Metal ternary weight codecs (pack5, TQ1_0, TQ2_0), Maple 20B-A1B Ternary MoE metadata/GGUF probing (ggml-org/llama.cpp#27000), MemPalace + Honcho persistent memory, SPHIST/1 MAC-authenticated audit logs, and WebMCP browser tools. Three internal core library crates compile #![no_std] (aarch64-unknown-none), while the top-level CLI/Studio daemon is a standard OS-hosted binary.


Key Capabilities

  • Maple 20B-A1B Ternary MoE (ggml-org/llama.cpp#27000):
    • Pure-Rust #![no_std]-aligned maple.rs supporting DeepGrove's MapleForCausalLM (24 layers = 18 SWA-512 + 6 Global attention 3:1, 256 experts / 8 active = 96.875% sparsity, 7.0 clamped SwiGLU).
    • Native GGML_TYPE_TQ1_0 (54 B / 256 trits, 1.6875 bpw) and GGML_TYPE_TQ2_0 (66 B / 256 trits, 2.0625 bpw) codecs, zero-copy GGUF ternary tensor inspection (ospop_inspect), maple_moe_eval MCP tool, "maple" OpenAI preset (127.0.0.1:8080/v1), and interactive Run Local Maple MoE Benchmark (POST /v1/maple/bench) inside AI Models.
  • Security Hardened (v0.7.0 Audit — SECURITY.md):
    • SEC-01 – SEC-07 Verified: Anti-DNS-rebinding loopback Host checks, Sec-Fetch-Site + validated loopback CORS + per-session X-Aristotele-Token CSRF protection, strict HTML Content-Security-Policy, zero dynamic DOM XSS handlers + safeImageUrl(), secretless 0600 temp --config curl invocation, allowlisted cli: bridges, bounded TCP concurrency (64), symlink-skipping jailed workspace tools, /dev/urandom entropy seeding for new sovereign.key files, and 0600 atomic storage writes (write_private_atomic).
  • Official Firebase AI Logic Hybrid Inference (#BuildHybridAI 2026):
    • 5-Mode Hybrid Routing: Sub-microsecond O(1) Instant Engram (with 1-click Pin / Unpin) -> Chrome Gemini Nano on-device (InferenceMode.PREFER_ON_DEVICE / ONLY_ON_DEVICE) -> Cloud Gemini 3.8 Flash (GoogleAIBackend or AgentPlatformBackend, streaming generateContentStream, reCAPTCHA Enterprise App Check) -> Hugging Face Free Router -> Local Sovereign Rust / Maple / Ollama / LM Studio daemon.
    • 1-Click Simulate Offline, 60s Judge Tour & Live Savings Ticker: Pre-wired against ailogic-74fae with a bar-level Simulate Offline toggle + auto-flush sync queue, real-time $ saved · % local ticker (ailogic-74fae.aristotele_prod.agent_events), owner-scoped Cloud Firestore telemetry, Firebase Remote Config defaults, Service Worker FCM HITL notifications, and a SHA-256 Sovereign Artifact Vault (.ospop.json).
    • Harness, Loop & Graph Control Plane (AGENTS.md, harness.rs): Hardens workspace tools with .env/.pem/key deny rules + secret redaction + 16 KiB output caps (tools.rs), exposes /v1/harness/state + /v1/harness/verify, injects TaskContract + rejected attempts outside context windows, and includes an interactive Try to Reward-Hack (Diff-Gate Demo) that escalates cleanly (LoopExit::Stalled -> Escalate) when protected tests or secrets are touched.
    • Kokoro-82M Voice, Device Advisor & llm-belie-fs: Browser WebGPU / SpeechSynthesis TTS, hardware-aware downloadable model recommendations, and 7-scorer independence auditing (/v1/beliefs/score).
  • Polished, Non-Technical-First Studio (aristotele app):
    • Hermes/Claude-Style Multi-Session Chat sidebar (+ New Chat, search, pin, rename, delete, .md export), Cmd+K / Ctrl+K Command Palette, 1-click Copy buttons on Markdown code blocks, auto-growing composer, and crisp inline SVG iconography.
    • 6 Curated Themes: Midnight Honey, Daylight Paper, Nordic Frost, Matcha Sage, Sunset Ember, and High Contrast.
    • 1-Click AI Setup: Auto-Detect Local AI (Ollama, LM Studio, llama.cpp / Maple, vLLM, installed CLIs), paste your Firebase web config JSON to test hybrid routing, or attach cloud API keys cleanly (0600 atomic storage — never echoed back).
    • Dev Mode Toggle (Off by Default): Keeps technical witness hashes, policy rules, and MCP runners tucked cleanly out of sight until enabled (Dev Mode or ARISTOTELE_DEV=1).
  • Complete Built-In Memory System (MemPalace + Honcho):
    • MemPalace (palace.json): Organizes memories spatially by Wings (personal, projects, ideas, people, knowledge), Rooms, searchable Drawers, a Temporal Knowledge Graph (tracks active vs. outdated facts cleanly), Cross-Wing Tunnels, and Agent Diary.
    • Honcho (honcho.json): Dialectic user profile, customizable assistant tone, pinned Peer Cards, and transparent auto-learning during conversation ("My name is...", "I prefer...", "Remember that..."). Grounded into Firebase Hybrid prompts via POST /v1/memory/context.
    • Markdown & Ecosystem Memory: MEMORY.md, USER.md, SOUL.md, connectors.json, policy.json, skills/, .aye_consciousness.m8 (smart-tree / smart-vault), and persistent home-scoped SPHIST/1 WAL (sovereign.key + sessions/default.wal).
  • 24 Built-In Model Providers + Firebase AI Logic Across 5 Transports:
    • Hybrid Web SDK (firebase@13.4.0): Chrome Gemini Nano (InferenceMode.PREFER_ON_DEVICE) <-> GoogleAIBackend / AgentPlatformBackend (gemini-3.8-flash) + reCAPTCHA Enterprise App Check
    • In-Process (Private Offline): kolibry (#![no_std] ASM NEON/AVX + Metal/CUDA/PM4 + Maple TQ1_0/TQ2_0 codecs) & O(1) EngramTable
    • Local / LAN HTTP: ollama, osaurus, lmstudio, llamacpp, maple (Maple 20B-A1B MoE), vllm, a6000 (a6000.8b.is)
    • Cloud HTTPS (0600 curl config): openai, anthropic (/v1/messages), gemini (:generateContent), openrouter, nous, deepseek, groq, xai, mistral, together, fireworks, github
    • Allowlisted CLI Bridges: cli:claude, cli:gemini, cli:codex, cli:ollama
  • Drop-In Hardened Server (127.0.0.1:1337) & 23 Built-In MCP Tools:
    • OpenAI (/v1/chat/completions, /v1/models), Anthropic (/v1/messages), MCP 2.0 (POST /mcp & stdio, including maple_moe_eval), Google A2A (/.well-known/agent.json, /a2a), Maple MoE (/v1/maple/bench), Sessions (/v1/sessions/*, /v1/sessions/record), Firebase Hybrid (/v1/firebase, /v1/memory/context), MemPalace (/v1/palace/*), Honcho (/v1/honcho/*), Providers (/v1/providers/*), Connectors (/v1/connectors/*), Settings (/v1/settings), Audit (/v1/sphist), and Instant Answers (/v1/engram, /v1/engram/delete).

Installation

macOS / Linux / WSL2 (One Command)

curl -fsSL https://raw.githubusercontent.com/8b-is/aristotele/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/8b-is/aristotele/main/scripts/install.ps1 | iex

Cargo (Any OS with Rust 1.85+ / Edition 2024)

cargo install --git https://github.com/8b-is/aristotele aristotele-cli
aristotele setup

Build From Source

git clone https://github.com/8b-is/aristotele.git
cd aristotele
cargo build --release -p aristotele-cli
install -m 755 target/release/aristotele ~/.local/bin/aristotele   # or /usr/local/bin

(Note: v0.7.1 builds a 1.34 MiB (1,399,968 B) stripped binary on macos/aarch64 and a 1.38 MiB (1,442,992 B) stripped static ELF on aarch64-unknown-linux-musl.)


Usage

Everyday Quick Start

# 1. Launch the browser Web Studio (starts local daemon on 127.0.0.1:1337 and opens your browser)
aristotele app

# 2. Or launch the clean 6-tab terminal dashboard
aristotele tui

# 3. Quick single-shot ask or multi-turn persistent terminal chat
aristotele ask "hello"
aristotele chat

Once Aristotele is open:

  • Click + New Chat in the sidebar to start separate conversations.
  • Say "My name is Alex" or "Remember that I prefer concise bullet points" to save automatically to Honcho & MemPalace.
  • Open AI Models -> Auto-Detect Local AI to connect Ollama / LM Studio in one click, or paste an API key for Claude, OpenAI, Gemini, or OpenRouter.
  • Click the color swatches in the top bar (or open Settings) to switch between all 6 themes.

Developer & Power-User CLI

# Bootstrap / inspect ~/.aristotele state, WAL signature health, providers, and 8b-is tools
aristotele setup
aristotele doctor
aristotele providers
aristotele ecosystem

# Manage classic MEMORY.md alongside MemPalace + Honcho
aristotele memory show
aristotele memory add --section Architecture "Prefer pack5 quantized layers"
aristotele memory search "pack5"

# Start headless server (Studio + OpenAI + Anthropic + MCP + A2A) without opening a browser tab
aristotele serve --bind 127.0.0.1:1337 --rung 3

# Run MCP stdio server or call an external MCP tool behind honest-auth witness checks
aristotele mcp
aristotele mcp-call --cmd st --arg --mcp --tool workspace_tree --json '{"path":"."}' --rung 2

# Cryptographic WAL verification, HIVE-RL Skill/OSPOP export, self-test, and benchmark
aristotele audit
aristotele hive-rl --skill architecture-probe
aristotele verify
aristotele bench

Environment Variables

Variable Purpose
ARISTOTELE_HOME Override state directory (defaults to ~/.aristotele / %USERPROFILE%\.aristotele)
ARISTOTELE_KEY Override <home>/sovereign.key with an explicit passphrase for SPHIST/1 WAL signing
ARISTOTELE_PROVIDER Override primary provider preset (ollama, anthropic, openai, cli:claude, ...) or URL
ARISTOTELE_MODEL Override default model ID
ARISTOTELE_DEV=1 Include provider, band, worker, latency, and witness seal footers in ask / chat CLI output

Workspace Crates

Crate #![no_std] External crates.io Deps Responsibility
aristotele-spherepop #![no_std] core + optional std WAL 0 Reference BLAKE3-256, 0x62 64-byte AuditFrame64 (scale_q8, state_digest_u64), Rung 0..=3 capability tokens, SPHIST/1 append/verify WAL
aristotele-beehive #![no_std] core + optional std store 0 Heuristic F_TOSS 9-step scheduler + F_REFUSE_ALL = 0 universal refusal, EngramTable (O(1) canonical 1.60-bpw pack5), integer lane router, sensitivity gate
aristotele-hiverl #![no_std] core + optional std I/O 0 Provenance filter (origin_gen == 0), lossy heuristic trace compaction, SKILL.md + OSPOP1 (1.60-bpw pack5 w/ payload-digest verify) + ShareGPT JSONL export
aristotele-engine std 0 Cross-OS ReadAt, GGUF (TQ1_0/TQ2_0) & Safetensors inspection, Maple 20B-A1B MoE (maple.rs), 8b-is/kolibry CPU ASM + Metal/CUDA/PM4 pack5, cached HardwareProfile
aristotele-ayefire std 0 Multi-session SessionStore, native MemPalace + HonchoStore, 24-provider router, MCP 2.0 (23 tools), hardened HTTP daemon (SEC-01–SEC-07) & XSS-free WebApp
aristotele-cli std 0 OS-hosted CLI, 6-tab ANSI TUI, WebApp launcher, setup, doctor, audit, hive-rl, verify, bench

(Upstream 8b-is/kolibry subcrates are pinned by git revision in Cargo.lock.)


Scope, Quantization Accounting & Benchmark Methodology

  • Quantization Encoding Density vs. Shannon Limit: pack5 encodes 5 balanced ternary trits per byte = 1.60 bits/trit (8 / 5), compared against the theoretical Shannon bound log2(3) ≈ 1.585 bits/trit for uniformly distributed symbols. GGML_TYPE_TQ1_0 (54 B / 256 trits) is 1.6875 bpw (~1.69), and GGML_TYPE_TQ2_0 (66 B / 256 trits) is 2.0625 bpw (~2.06). Ternary weight storage does not imply end-to-end ternary arithmetic across every activation/runtime stage and has no mathematical equivalence to three-valued logic or policy refusal.
  • What Benchmarks Measure (and Do Not Measure): The Kolibry (820 KiB pack5) and Maple (820 KiB pack5 vs 864 KiB TQ1_0 vs 1056 KiB TQ2_0 vs 8192 KiB FP16) timings compare single-layer 1024x4096 weight-slice packing/matvec microbenchmarks. They do not represent full model resident memory (RSS, KV cache, activations, runtime/driver allocations), end-to-end multi-worker LLM generation throughput, or downstream model quality retention.
  • Implemented Today vs. Non-Goals:
    • Implemented: multi-provider local/cloud/LAN routing, Chrome Gemini Nano + Firebase AI Logic Studio + WebMCP + 6 Skills, SPHIST/1 MAC-authenticated logs with explicit universal refusal (F_REFUSE_ALL = 0), single-slice pack5/TQ1_0/TQ2_0 codecs + GGUF inspection, OSPOP1 payload-digest verification, and lossy heuristic trace compaction/JSONL export.
    • Non-Goals / Not Implemented: automated RL weight-training loops, distributed ACID transactions across filesystems/tools, cross-process OS sandboxing inside Rust alone (see SECURITY.md), or end-to-end LLM perplexity evaluation harnesses.

Attribution & Independent Implementation Notice

Some internal identifier names (such as aristotele-spherepop and SpherepopOp) were loosely inspired conceptually by Flyxion's independent essays on event-sourced semantics. Aristotele is an independent engineering project by 8b-is: there is no collaboration with, endorsement by, or scholarly equivalence claimed to Flyxion's mathematical publications, and all implementation details, benchmarks, and security choices here belong solely to 8b-is.


Observed v0.8.0 Verification & Benchmarks (macos/aarch64, Apple M1 Max)

Measured directly via aristotele verify and aristotele bench (aarch64-neon-4row-sdot, apple-metal-lut-1cb):

  • 0x62 Wire Frames (AuditFrame64): 50,000 frames in 3.73 ms (13,388,225 frames/s)
  • O(1) Engram Lookup (pack5 verified): 20,000/20,000 hits at 0.227 µs/lookup
  • Heuristic F_TOSS 9-step Route + SPHIST/1 Log: 1,000 rounds at 3.18 µs/round (events=3000)
  • Kolibry 1024x4096 Weight Slice / ospop pack5: 820 KiB pack5 | CPU 2-bit: 127.3 µs | CPU pack5: 526.8 µs | Metal GPU pack5: 3985.458 µs | max_err = 0.00000
  • Maple 20B-A1B Ternary MoE Slice (8/256 Experts, SWA-512 3:1): 820 KiB pack5 vs 864 KiB TQ1_0 vs 1056 KiB TQ2_0 vs 8192 KiB FP16 | CPU pack5: 704.3 µs | CPU 2-bit: 126.4 µs | max_err = 0.00000

DyadLang Hybrid MoE & AyeFire Q16.16 Verification (docs/dyad/)

Formal .dyad models (AristoteleHybridMoE 4-tier request flow conservation + AyeFireThermalGovernor 2-state thermal governor) lowered to ModelingToolkit.jl and a #![no_std] zero-float Q16.16 simultaneous Euler Rust kernel with ties-to-even q16_shr16_rne (0 ULPs drift vs host simulation) live in docs/dyad/ and docs/dyad/ayefire_governor_q16.rs.

Aristotele x g8t.is Zero-Float Capsules (v0.8.1)

Verified pure-Rust capsules published on https://g8t.is/g8t/leaderboard (full receipts in g8t.md):

Capsule Signature g8t.is ID Cycles/Op (p/q) Reward
aristotele_ftoss_atten_q16 (u64)->u64 780d41ccdd775f11e078a7da0c16f193 2225333/400000 500 FKN
aristotele_maple_tq1_dot_i32 (u8,i32,i32,i32,i32,i32)->i32 df2239d37931f33ae8dfb56871a738e9 1/1 500 FKN
aristotele_swiglu_clamp7_q16 (i64,i64)->i64 219950acd33ac956c682021d2f82e771 1/1 500 FKN

Aristotele Hybrid MoE Dyad System Graph


Live Studio Screenshots (https://ailogic-74fae.web.app)

View Preview
Welcome & 60s Judge Tour Studio Welcome & Tour
Hybrid Continuity + Kokoro + HITL Hybrid Chat & Offline Continuity
Live Savings Ticker & BigQuery Savings & BigQuery Telemetry
Harness Diff-Gate Demo (escalate) Harness Diff-Gate Escalated
Remote Config + SHA-256 Vault Remote Config & Vault
Mobile 390x844 (390/390px) Mobile Studio 390x844

Cross-Platform Verification Matrix

cargo clippy --workspace --all-targets -- -D warnings -F unsafe_code
cargo test --workspace                               # 42/42 passing across 6 crates
cargo test --manifest-path adk-agent-loop/Cargo.toml # 5/5 passing (ADK-Rust + BigQuery)
cd firebase-app && npm run check && npm run test:e2e # 13/13 live Chrome CDP E2E passing
RUSTFLAGS="" cargo check --target aarch64-unknown-none -p aristotele-spherepop -p aristotele-beehive -p aristotele-hiverl --no-default-features
RUSTFLAGS="" cargo check --target aarch64-unknown-linux-musl --workspace
RUSTFLAGS="" cargo check --target x86_64-apple-darwin --workspace

Website, WebMCP, LAN & Hugging Face Catalog (v0.8.0)

  • Website & Discovery (aristotele.vaked.dev): docs/index.html, docs/studio.html, docs/manifest.webmanifest, icon pack (docs/icons/), llms.txt, llms-full.txt, robots.txt, sitemap.xml, and .well-known/{agent.json,mcp.json,ai-plugin.json,security.txt}.
  • Firebase AI Logic Upgrades: Supports GoogleAIBackend & canonical AgentPlatformBackend (agent_platform), full multimodal inputs (Image/PDF/Audio/Video), Google Search Grounding (googleSearch), and browser WebMCP function calling (window.AristoteleWebMCP / navigator.modelContext).
  • 6 Built-In Skills & LAN/Offline Wizard: Exposed via GET /v1/skills & Studio Apps / Models tabs (--local-only, Ollama, vLLM, LM Studio, llama.cpp Maple 20B-A1B, MLX-QUANT).
  • 18 8b-is Integrations & 13 HF Models: Exposed via GET /v1/ecosystem and GET /v1/models/catalog (eightb, PeetPedro, deepgrove).
  • Human Setup Guide: Follow docs/HUMAN_SETUP_TODO.md for Firebase Console, App Check, Cloudflare CNAME, Chrome Nano flags, and LAN setup.

See CONTRIBUTING.md to get involved and CHANGELOG.md for release notes.

About

OS-agnostic Hybrid AI Studio & 0-dep/0-unsafe Rust core (6 crates) — Maple 20B-A1B Ternary MoE, Firebase AI Logic, WebMCP, Honcho + MemPalace, 24 providers

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages