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.
- Maple 20B-A1B Ternary MoE (
ggml-org/llama.cpp#27000):- Pure-Rust
#![no_std]-alignedmaple.rssupporting DeepGrove'sMapleForCausalLM(24layers =18SWA-512 +6Global attention3:1,256experts /8active =96.875%sparsity,7.0clamped SwiGLU). - Native
GGML_TYPE_TQ1_0(54B /256trits,1.6875 bpw) andGGML_TYPE_TQ2_0(66B /256trits,2.0625 bpw) codecs, zero-copy GGUF ternary tensor inspection (ospop_inspect),maple_moe_evalMCP tool,"maple"OpenAI preset (127.0.0.1:8080/v1), and interactive Run Local Maple MoE Benchmark (POST /v1/maple/bench) inside AI Models.
- Pure-Rust
- Security Hardened (
v0.7.0Audit —SECURITY.md):SEC-01–SEC-07Verified: Anti-DNS-rebinding loopbackHostchecks,Sec-Fetch-Site+ validated loopback CORS + per-sessionX-Aristotele-TokenCSRF protection, strict HTML Content-Security-Policy, zero dynamic DOM XSS handlers +safeImageUrl(), secretless0600temp--configcurlinvocation, allowlistedcli:bridges, bounded TCP concurrency (64), symlink-skipping jailed workspace tools,/dev/urandomentropy seeding for newsovereign.keyfiles, and0600atomic storage writes (write_private_atomic).
- Official Firebase AI Logic Hybrid Inference (
#BuildHybridAI2026):- 5-Mode Hybrid Routing: Sub-microsecond
O(1)InstantEngram(with 1-click Pin / Unpin) -> Chrome Gemini Nano on-device (InferenceMode.PREFER_ON_DEVICE/ONLY_ON_DEVICE) -> Cloud Gemini 3.8 Flash (GoogleAIBackendorAgentPlatformBackend, streaminggenerateContentStream, 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 againstailogic-74faewith a bar-level Simulate Offline toggle + auto-flush sync queue, real-time$ saved · % localticker (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, injectsTaskContract+ 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).
- 5-Mode Hybrid Routing: Sub-microsecond
- Polished, Non-Technical-First Studio (
aristotele app):- Hermes/Claude-Style Multi-Session Chat sidebar (
+ New Chat, search, pin, rename, delete,.mdexport),Cmd+K/Ctrl+KCommand 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, andHigh 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 (
0600atomic 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 ModeorARISTOTELE_DEV=1).
- Hermes/Claude-Style Multi-Session Chat sidebar (
- 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 viaPOST /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-scopedSPHIST/1WAL (sovereign.key+sessions/default.wal).
- MemPalace (
- 24 Built-In Model Providers + Firebase AI Logic Across 5 Transports:
- Hybrid Web SDK (
firebase@13.4.0): ChromeGemini 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 + MapleTQ1_0/TQ2_0codecs) &O(1)EngramTable - Local / LAN HTTP:
ollama,osaurus,lmstudio,llamacpp,maple(Maple 20B-A1B MoE),vllm,a6000(a6000.8b.is) - Cloud HTTPS (
0600curl 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
- Hybrid Web SDK (
- 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, includingmaple_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).
- OpenAI (
curl -fsSL https://raw.githubusercontent.com/8b-is/aristotele/main/scripts/install.sh | shirm https://raw.githubusercontent.com/8b-is/aristotele/main/scripts/install.ps1 | iexcargo install --git https://github.com/8b-is/aristotele aristotele-cli
aristotele setupgit 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.)
# 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 chatOnce 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.
# 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| 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 |
| 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.)
- Quantization Encoding Density vs. Shannon Limit:
pack5encodes5balanced ternary trits per byte =1.60bits/trit (8 / 5), compared against the theoretical Shannon boundlog2(3) ≈ 1.585bits/trit for uniformly distributed symbols.GGML_TYPE_TQ1_0(54B /256trits) is1.6875bpw (~1.69), andGGML_TYPE_TQ2_0(66B /256trits) is2.0625bpw (~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 KiBpack5) andMaple(820 KiBpack5vs864 KiBTQ1_0vs1056 KiBTQ2_0vs8192 KiBFP16) timings compare single-layer1024x4096weight-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 +
6Skills,SPHIST/1MAC-authenticated logs with explicit universal refusal (F_REFUSE_ALL = 0), single-slicepack5/TQ1_0/TQ2_0codecs + GGUF inspection,OSPOP1payload-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.
- Implemented: multi-provider local/cloud/LAN routing, Chrome Gemini Nano + Firebase AI Logic Studio + WebMCP +
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.
Measured directly via aristotele verify and aristotele bench (aarch64-neon-4row-sdot, apple-metal-lut-1cb):
0x62Wire Frames (AuditFrame64):50,000frames in3.73 ms(13,388,225 frames/s)O(1)Engram Lookup (pack5verified):20,000/20,000hits at 0.227 µs/lookup- Heuristic
F_TOSS9-step Route +SPHIST/1Log:1,000rounds at 3.18 µs/round (events=3000) Kolibry1024x4096Weight Slice /ospoppack5:820 KiBpack5| CPU 2-bit:127.3 µs| CPUpack5:526.8 µs| Metal GPUpack5:3985.458 µs|max_err = 0.00000- Maple 20B-A1B Ternary MoE Slice (
8/256Experts,SWA-5123:1):820 KiBpack5vs864 KiBTQ1_0vs1056 KiBTQ2_0vs8192 KiBFP16| CPUpack5:704.3 µs| CPU 2-bit:126.4 µs|max_err = 0.00000
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.
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 |
| View | Preview |
|---|---|
| Welcome & 60s Judge Tour | ![]() |
| Hybrid Continuity + Kokoro + HITL | ![]() |
| Live Savings Ticker & BigQuery | ![]() |
Harness Diff-Gate Demo (escalate) |
![]() |
| Remote Config + SHA-256 Vault | ![]() |
Mobile 390x844 (390/390px) |
![]() |
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 & 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& canonicalAgentPlatformBackend(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.cppMaple 20B-A1B, MLX-QUANT). - 18
8b-isIntegrations & 13 HF Models: Exposed viaGET /v1/ecosystemandGET /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.





