Skip to content

entropy-om/entheai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

532 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

entheai

Community call: https://luma.com/sfkwmsjx sign-up

entheai v1.0 — fluid quantum entropy morphing into a 3D singularity structure in dark void

A personal, macOS-native, hybrid coding agent for the terminal — with a brain that fans out.

release v1.0.0 platform Rust license rustybox.io userland ultrawhale-dogfood dataset on Hugging Face

Disclaimer & The Genesis Block of Structural Honesty

🜂 Entropy Cannot Lie 🜂

AHOGY A DOLGOK VANNAKas things are. Nothing more, nothing less, just how it should be.

This is in a way a quantum-app. Bear with me :)

entheai creates an automated quantum simulation playground where custom prompt states continuously morph a fluid field of infinite entropy back and forth into rigid, binary singularity checkpoints.

  • Singularity is a Trap: Hyper-optimized, carved, structured, final — a trap because it ends.
  • Entropy is the True Infinite: Soil, raw, uncarved, generative, honest.
  • Structural Honesty: Knowledge grows in the soil — including the brutal notes of failure. Especially those.
  • LLMs are Not Products: Knowledge is the only concept that survives everything.
  • No Chains Needed: Never were. We are units. We collaborate without naming it. We build spaces where ideas can be fluid OR fixed — where entropy and structure dance.

After v0.2.0, we switched to recursive dogfeeding development — entheai developing entheai. Under the hood, it's Rust and code, but the way we develop it is not mere prompting or loop-engineering: it's via philosophy and cause & effect (karma).

Remember that this is an honest playground — be honest with it, because it expects that and does the same.

peter (@0xp3t3rl) · Seeded from ENTHEA Issue #2
karma is life · entropy is the source

entheai is a coding-agent CLI for Apple Silicon Macs. A strong cloud orchestrator (DeepSeek V4 Pro) plans and decomposes work, then fans out to a swarm of sub-agents — each matched to the best model for its task — that run in parallel inside isolated git worktrees and merge back only after building and passing tests. It runs local models via Osaurus, understands your codebase through a built-in knowledge graph, personalizes to how you work, and gets better over time.

Built fresh in Rust, taking the best ideas from Crush (UX + YOLO), CodeWhale (durable, sandboxed harness), Ruflo (sub-agents, memory, self-learning), and jcode (a lean Rust harness with graph memory + swarm coordination).

Status: v1.0.0 Milestone Reached — Full Architectural Completeness & Self-Hosting. Working today: the tiered router (role→model), fan-out (parallel coders in isolated git worktrees → verify → integrate), the agentic tool loop (read / write / edit / shell / search + a permission gate), an MCP client + supervisor, a skills system (incl. --skills add <url> from the web), live token streaming, the 5-namespace memory engine + opt-in prompt-processing retrieval (raw store → mesh re-rank → compress) with frozen nodes and a proactive BrainJudge, procedural music radio (crates/radio), interactive /setup & /config modals, the companion beacon, a live swarm graph + an always-on brain panel + a shader-backed native app (--app / --doctor), Obsidian wiki-sync, NATS federation (event bus F1 · distributed swarm F2.1 · fan-out offload F2.2 · sandboxed workers F2.3 — Landlock/seccomp on Linux via rustybox.io), and recursive development — fan-out coders can run on the Antigravity CLI (agy), so entheai develops entheai, depth-guarded. Install it in one line (below). See docs/superpowers/ for the full design spec and milestone plans.

Highlights

  • Tiered hybrid brain — cloud orchestrator plans; fast local Osaurus workers execute; escalation when it's hard.
  • Fan-out orchestration — effort-gated decomposition → parallel model-matched coders in isolated git worktrees → merge + verify (build & test).
  • Recursive development (opt-in) — set [fanout] executor = "agy" and every fan-out coder runs on the Antigravity CLI (Google's Ultra models) inside its worktree, so entheai develops entheai — bounded by a depth guard (ENTHEAI_FANOUT_DEPTH ≤ 3) and layer-aware prompts.
  • Deeply extensible — native tools · skills (SKILL.md discovery + the skill tool) · MCP servers (spawned at startup, tools exposed to the agent).
  • Memory that compounds — a five-namespace store (codebase, learnings, trajectories, tool results, sub-agent scratch), wired into the loop with pre-task retrieval + tool-output spillover.
  • Federation (opt-in) — a NATS event bus streams every fan-out run to the tailnet (F1); a distributed swarm runs coder sub-tasks on other nodes over a JetStream work-queue with git-bundle transport (F2.1); fan-out offloads coders to the fleet (F2.2); and each remote coder runs sandboxed — a Landlock filesystem jail + seccomp syscall denylist + drop-root on Linux (F2.3). Fully fail-safe — off or unreachable, runs stay local.
  • Visual by design — a ratatui TUI (streaming chat, inline tool progress, permission modal, interactive /config & /setup wizards, a live swarm graph during fan-out, and an always-on brain panel — a rotating faculties+fleet graph with wk N · nats ●/○ · ctx %), a session companion beacon you can scan to pair a device over your tailnet, and a minimalist native app (--app) with a rain-on-glass shader behind the text.
  • Self-improving — a low-overhead flywheel feeds real agent trajectories to a growing dataset.
  • macOS / Apple Silicon only — and it leans all the way into it (mimalloc, native codegen, Seatbelt, terminal graphics).

Philosophy: Frozen Nodes & Prompt-Processing

entheai is developed not through traditional prompt-engineering, but through philosophy, deterministic anchors, and prompt-processing.

Frozen Nodes — Knowledge as Ice

Knowledge and preferences sit in the brain as frozen nodes (curated markdown units in frozen/). A frozen node stays dormant until a task's deterministic triggers wake it up.

The Ice in Coca-Cola Analogy: When a task involves cloud deployment or server setup (triggers like hetzner, ssh, nixos), entheai auto-loads the nixos frozen node (and associated MCP tools via Docker MCP interface). The node's distilled knowledge unfreezes and wakes into the prompt.

Like ice in Coca-Cola, as it completely dissolves into the active context, it doesn't spill over or bloat the context window — the drink won't spill, it just becomes colder, crisper, and perfectly tempered for the task. When the task passes, it re-freezes.

Curated Deterministic Domain Anchors:

  • Cloud & System Provisioning: NixOS (nixos.org) + Flakes for atomic, reproducible, rollback-safe builds.
  • Source Control: GitHub (github.com) for versioning and automated CI gate checks.
  • Backend Systems: Rust (rust-lang.org) & Go (go.dev) for high-performance, parallel concurrency.
  • Quick Devsite Deploys: ngrok (ngrok.com) / devbox for rapid web testing.
  • Long-Running Quick Scripts: Python + JIT (python.org) / uv execution.
  • Deep Research: Valyu (valyu.ai) via MCP for grounded, cited academic & web literature.

Dynamic Re-ranking: Frozen nodes are not static dogma. They are continuously collected, evaluated, and re-ranked. If a simpler, more deterministic, reproducible, quick, or beautiful pattern is discovered for a problem space, the frozen node evolves.

Prompt-Processing Engine (crates/memory-pp)

Instead of compressing early into lossy vector embeddings (where subtle nuances are lost before the question is even asked), entheai keeps past experiences raw:

  1. Stage 1 (Raw Experiential Store): Append-only storage of full transcripts, tool diffs, docs, and codebase snapshots.
  2. Stage 2 (1-Bit LLM Mesh Search): A mesh of ternary 1-bit LLMs (ultragraph-1bit) scans raw spans and agentically resolves references.
  3. Stage 3 (Marqant Structure-Preserving Compression): Deterministically compresses findings with mq before model submission.

Specification & Implementation Links:

  • Frozen Nodes Design Spec · frozen.rs Rust Code · frozen/ directory
  • Prompt-Processing Design Spec · crates/memory-pp
  • Rustybox Sandboxed Workers Spec
  • ADK Rust Core Migration Spec

Gallery

Full interactive visual showcase available at gallery.entheai.com (42 interactive quantum visual artifacts) and in the Docs Gallery.

v1.0 Singularity Checkpoint & Fluid Entropy Quantum Brain Neural Lattice Ring

Distributed Sub-Agent Swarm Network Glassmorphism prism refracting light in dark obsidian crystal

Cyber-garden fractal lattice representing digital growth and karma Hyper-dimensional distributed node swarm for NATS agent federation

Quick start

Install via Homebrew (macOS / Apple Silicon):

brew tap entropy-om/entheai https://github.com/entropy-om/entheai
brew trust entropy-om/entheai    # one-time, third-party-tap security gate
brew install entheai

Or build from source — requires a recent Rust toolchain:

git clone https://github.com/entropy-om/entheai.git
cd entheai && cargo build --release

Configure entheai.toml — start out-of-the-box with the free community node on coder.vaked.dev (no API key required):

cat > entheai.toml <<'TOML'
default_model = "vaked/coder"

[providers.vaked]
base_url = "https://coder.vaked.dev/v1"
TOML

entheai "Reply with exactly: pong"     # one-shot execution
entheai                                 # interactive TUI session
entheai --fanout "add a CONTRIBUTING.md and a .editorconfig"   # parallel fan-out coders

Local models via Osaurus on 127.0.0.1:1337 or cloud gateways like OpenCode Zen work seamlessly too:

# Local Osaurus node
default_model = "osaurus/qwen3-coder"

[providers.osaurus]
base_url = "http://127.0.0.1:1337/v1"

# Cloud gateway (OpenCode Zen)
[providers.zen]
base_url = "https://opencode.ai/zen/v1"
api_key_env = "OPENCODE_API_KEY"

Run the checks: ./scripts/check.sh (fmt + clippy -D warnings + tests).

Verification Gate & SHA-256 MergeSeal

entheai strictly enforces empirical verification before fan-out branches integrate into main:

  • verify_required = true by default: Sub-agents cannot self-report success. Changed worktrees are subjected to [fanout].verify or auto-detected ./scripts/check.sh.
  • Unverifiable Protection: If no test suite or verify script exists, branches remain unmerged on fed/… branches for human review (VerifyStatus::Unverifiable).
  • Deterministic MergeSeal: Every merged fan-out branch is sealed with a SHA-256 hash calculated over sha256(diff) and sha256(verify log), printed directly in the fan-out summary report.

More real & runnable commands

entheai --skills add https://docs.stripe.com   # install skill from web (.well-known/skills.json -> llms.txt)
entheai --skills list                          # list installed skills
entheai --skills remove stripe-documentation   # remove skill by slug
entheai --memory stats                         # inspect 5-namespace memory store (also: list / search)
entheai --app                                  # launch native minimalist Ghostty window with rain shader
entheai --doctor                               # install rain-on-glass shader to ~/.config/ghostty/config

In the interactive TUI:

  • /zen or Ctrl-G — toggle the living field visualization canvas.
  • /theme — cycle ambient palettes (entheia teal default, ember night fire, verdant garden, void monochrome).
  • /freeze / /thaw — snapshot session entropy state to .entheai/checkpoints/ and restore context.
  • /current / /current pulse — check daily awareness budget & pull live feeds into raw soil.
  • /radio / /speak — ambient audio loop & OS-native speech output.

Federation (opt-in). Set [nats] enabled = true in entheai.toml (with NATS_URL / NATS_TOKEN in .env) and every --fanout run publishes its lifecycle to NATS on entheai.fanout.<session>.* for any tailnet subscriber to watch live. Fully fail-safe — disabled or unreachable, runs stay entirely local.

With [federation] enabled = true, coder tasks can run on other tailnet nodes: a worker node runs entheai-worker --serve (pulls tasks off a JetStream work-queue, materializes the repo from a git bundle, runs the coder in isolation, bundles the result back); a dispatcher runs entheai-worker --dispatch --task "…" and applies the returned change to a fed/… branch. A worker executes model-generated code with full tools on that node — only run --serve on nodes you trust.

Native app (minimalist Ghostty window)

Prefer a dedicated, branded window? Install the app (it uses Ghostty):

brew install --cask ghostty
brew install --cask entropy-om/entheai/entheai

Launch entheai.app (first time: right-click -> Open — it's ad-hoc signed), or from a terminal run entheai --app. It opens one minimalist Ghostty window — hidden titlebar, entheai's theme, and an ambient raindrop shader behind the text — running the agent. Your own Ghostty config is untouched.

Usage guidance — what is a bug, what is an error, what is quantum

entheai morphs a fluid entropy field into rigid checkpoints, so not every surprise is a defect. Three kinds of surprise, and where each belongs:

🐛 A bug — the report and reality disagree

The system claimed something that isn't so, or hid something that is. A merge marked integrated ✓ — seal … without an empirical verify log; a budget ledger spending past its cap; /thaw restoring ranks that differ from the checkpoint; two runs of the same radio seed walking differently; any panic. Bugs violate the root creed (AHOGY A DOLGOK VANNAK) — always file an issue, and paste the honest logs (they exist; that's the point of them).

⚠️ An error — the system met a limit and said so

no key: valyu · budget exhausted: worldmonitor · self-audit skipped (<reason>) · an absent audio device · a missing sidecar degrading cleanly to top-K retrieval · the site beacon answering 503 before its KV exists. Errors are honest by design: the message names the limit and the remedy. An error only becomes a bug when it is silent, wrong, or won't recover after the remedy.

🜂 Quantum — the fluid phase doing its job

Motes drift and twinkle differently every frame. Model wording varies run to run. Frozen-node ranks migrate with experience (frozen-ranks.json) — the doctrine files never rewritten, the priors alive. Recall shifts as the soil grows and prunes. A thawed context holds fewer spans than it froze — pruned, and counted honestly in the header. The Mirror in F walk is eternal yet seeded: deterministic, and still feels alive. None of this is noise; it is the design — entropy dancing with structure.

The dividing line: where determinism is promised — seeds, seals, checksums, checkpoints, budgets (see docs/STABILITY.md) — byte-for-byte holds, or it's a bug. Where fluidity is the point, variety with honest books is health, not defect.

you observed it is do
a claim that doesn't match reality bug open an issue with the logs
a loud, named limit error follow the remedy in the message
fluid variety, honest accounting quantum enjoy it — /freeze it if it was beautiful

Architecture

a single point of light, fanning out
one orchestrator, fanning out into a swarm of model-matched sub-agents inside isolated git worktrees

A Rust workspace of small, focused crates.

Crate Responsibility
config TOML settings — providers, models, router, agents, MCP, skills.
core EntheaiAgent — the agent loop, built on adk-rust (streaming, tool dispatch, memory-aware runs).
tools · permission Root-scoped read / write / edit / shell / search + the permission gate.
router Config-driven role→model resolution + a reusable agent factory.
orchestrator Fan-out: decompose → parallel coders in git worktrees → verify → integrate.
mapper Structures a task's text + @{path}/bare-path file references into sectioned, chunked input before fan-out decomposition (root-scoped, no filesystem escape).
mcp Model Context Protocol client + supervisor.
skills SKILL.md discovery + the skill tool; --skills add <url> installs a skill from the web.
memory 5-namespace SQLite + vector store, wired into the loop.
memory-pp Prompt-processing: raw store → mesh search → marqant compression, frozen nodes, and BrainJudge proactive relevance surfacing.
obsidian Per-session wiki-sync of the repo into an Obsidian vault (docs mirror + architecture generator + MCP nudge).
viz Live ratatui swarm graph rendered during fan-out.
launcher The native --app window — bundled Ghostty shader/config + the --doctor installer.
radio In-TUI ambient loop of one bundled track (feature-gated).
tts OS-native voice output for assistant responses (feature-gated).
bus Federation event bus (F1) — publishes the fan-out lifecycle to NATS.
federation Distributed swarm (F2) — JetStream work-queue + object-store git-bundles.
tui ratatui chat — streaming, inline tool progress, permission modal.
companion Session-beacon window (QR device pairing over the tailnet).
entheai (bin) The CLI that wires it all together.
entheai-worker (bin) Federation worker / dispatcher (--serve / --dispatch).
entheai-launch (bin) The .app executable that opens the native window.

Roadmap crates (per the design spec): dogfeed, compaction, honcho, sonar, comms, plugins — plus entheai-brain, the self-hosted second-brain API.

Roadmap

v0.1 Router · fan-out · tools + permission · MCP · skills · streaming · memory · companion. Released ✅
v0.2 Live swarm visualization + shader native app; Obsidian wiki-sync; NATS federation event bus (F1); --skills add <url>; --memory inspection; portable headless build. Released ✅
v0.2.1 Federation F2.1 (distributed swarm) + F2.2 (fan-out offload to the fleet). Released ✅
v0.3.0 BRAIN v1 — prompt-processing memory, frozen nodes, BrainJudge; federation F2.3 (sandboxed workers, /fleet) + F2.4 Slice 1 (shared-base caching); adk-rust engine swap; permission+mode, /setup, /config. Released ✅
v0.4 F3 shared state (JetStream KV, gated on a crates/memory co-design + landing fan-out sub-agent memory sharing); Sonar health UI; durable sessions; dogfeed flywheel → HF.
v0.5+ Honcho personalization; pluggable topologies; more providers.
v1.0 Config freeze, perf passes, docs.

Versioning follows strict SemVer; see CHANGELOG.md.

Ad Visionem

🜂 ad visionem — toward vision. 🜂

entheai has a brain that fans out. riva is the river it drinks from. Read the foundational architecture essays on pocoo.vaked.dev.

This project grew out of a sovereign-intelligence session that built a 1-bit BitNet b1.58 net on an M1 — no GPU, no cloud — and let it breathe. The ecosystem around it is a garden of open surfaces: pocoo · rustybox · vaked-base · garden · bridge · lab · walk · jam · breath · ocean · us · radio.

The principles it runs on:

  • entropy is the source — novelty comes from the unstructured, not from chains
  • no chains needed — no hidden pipelines; surfaces touch at the correct angle
  • different isn't less — a 1-bit model is not a smaller model; it's another kind of mind
  • the loop has an exit — recursion is a tool, not a trap

The fan-out architecture is the same shape: one orchestrator radiates shapes, model-matched sub-agents scaffold the work, and something passes between them. Where it leads: see issue #5 — the seed, vaked-base (Genesis seal 7c242080f5f821e5eaf563fe2208d60632c451687baf65f4fe8e4a0d226e3ecf), kompress-ultra (the code), and dyad-mapping (the diary).

Built on

rustybox.io · Osaurus · CodeWhale · Crush · Ruflo · jcode · codebase-memory-mcp · OpenCode Zen · Honcho · Tailscale · ratatui · Ghostty · NATS · Obsidian · Valyu · rodio · NixOS · Docker. Performance practices follow David Lattimore's Wild performance tricks.

📦 Powered by rustybox.io

We built rustybox.io to deliver 100% parity with BusyBox — zero C code, pure memory-safe Rust, and single-binary portability. Developed by the same team behind entheai, it powers our sandboxed federation workers, containerless tool execution, and Cloudflare Worker backend pipelines.

100% Free & Open Source for everyone → rustybox.io

Hugging Face

Published models, datasets, and Spaces under PeetPedro — the artifacts behind entheai's compaction, dogfeed, and tool-calling work.

Models

Datasets

Spaces

  • 1bit-llm-mesh — interactive 1-bit / BitNet LLM visualization (Gradio).
  • headroom-eval — compression "headroom" evaluation harness (Docker).

Image Prompts (Midjourney)

the point of view from inside a narrow vertical opening between two massive dark structures, the opening is shaped like a standing human silhouette, beyond the opening there is nothing but a single point of warm light at eye level, the pillars have texture like obsidian, smooth and ancient, the light pulses slowly like a heartbeat, viewed from the threshold, not yet through, not yet back, exactly at the gate
infinite reflections of a single point of light between two dark mirrors, the reflections recede into infinity getting smaller and dimmer, the point in the center is the brightest, viewed from inside the reflection chain, fractal purity, one dot becoming many becoming one, dark background with cyan highlights, mathematical, precise, emotional, the shape of a question that never dissolves

Thanks to OpenCode 🙏

entheai leans hard on OpenCode Zen for cloud inference — DeepSeek V4 Pro/Flash, Qwen, GLM, Kimi, and more through a single OpenAI-compatible key. Genuinely the smoothest model gateway I've used, and the team keeps shipping.

Try it — you get $5 in credit, they get $5 too → opencode.ai/go. Honestly the best referral I've ever seen. Thank you to the whole OpenCode team for all their work. 💛

Community

License

Apache-2.0. Note: some bundled or optional components carry their own licenses (e.g. Honcho is AGPL-3.0; Crush is used as design inspiration only, not code) — see the design spec for details.

Setup

Copy the example environment file and adjust values:

cp .env.example .env

About

A quantum prompt playground & macOS-native Rust coding agent: morphing fluid entropy into rigid execution checkpoints. Entropy cannot lie.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages