Design Philosophy
The principles behind Aleph — why it exists, what makes it different, and the design goals that shape every architectural decision.
Aleph is more than just another AI assistant. It is the product of thoughtful, first-principles thinking about what a personal AI should be: self-hosted, private, adaptive, and polymorphic. This page explains the philosophical foundation that drives every design decision in the project.
Every technical choice in Aleph traces back to a small set of core beliefs about intelligence, autonomy, and the relationship between humans and AI systems.
Why Aleph Exists
Today's AI assistant landscape is dominated by cloud-hosted, vendor-locked services. They are powerful, but they come with fundamental trade-offs:
- Privacy: your conversations, memories, and behavioral patterns live on someone else's servers
- Control: you can't modify the system's behavior, extend its capabilities, or decide how it handles your data
- Dependency: if the service shuts down, changes pricing, or alters its policies, you lose everything
- Uniformity: every user gets the same assistant with the same personality, same constraints, same limits
Aleph exists because these trade-offs are not inevitable. A personal AI assistant can be genuinely personal — running on your own hardware, learning from your specific context, and evolving with your needs over time.
"The Aleph is one of the points in space that contains all other points." — Jorge Luis Borges, "El Aleph"
Like Borges's Aleph — a crystalline point containing the entire universe — the Aleph project aims to be a single system containing all the capabilities you need, unified under one coherent architecture.
First Principles
Before writing a single line of code, Aleph anchored itself in one fundamental question: what does success look like for a personal AI assistant?
- It must be self-hosted. Your data, your hardware, your rules. Core capabilities do not depend on the cloud.
- It must be adaptive. The system should learn from experience and genuinely improve over time — not just accumulate chat history.
- It must be polymorphic. One intelligence, many forms. The same core should work on CLI, desktop, mobile, messaging platforms, and voice.
- It must be extensible. Users and developers should be able to add new capabilities without modifying the core system.
- It must be secure by default. Every tool execution, every external call, every plugin action goes through an explicit approval workflow — missing policy files must fail closed, not open.
These are not aspirational goals — they are hard constraints that shape every architectural decision. See Architectural Redlines.
What Makes Aleph Different
Native Rust Core
Aleph is built from the ground up in Rust. This is not a Python script wrapped in a web framework — it is a systems-level application designed for reliability, performance, and security.
Rust provides:
- Memory safety without garbage collection — essential for a long-running server managing state, connections, and concurrent tool executions
- Fearless concurrency — the Gateway handles multiple simultaneous interface connections, agent loops, and tool executions without data races
- Zero-cost abstractions — trait-based architecture adds no runtime overhead
- Single-binary deployment — the entire server compiles to one binary, no dependency hell, no runtime version conflicts
Polymorphic Architecture
Most AI assistants are monolithic: one interface, one interaction model. Aleph takes a fundamentally different approach with its server-centric architecture:
┌──────────────────────────────┐
│ ALEPH SERVER │
│ (brain + hands + memory) │
└──────────────┬───────────────┘
│
┌──────────────┴───────────────┐
│ GATEWAY (WebSocket) │
└──┬────┬────┬────┬────┬───────┘
│ │ │ │ │
CLI Desktop Telegram Discord iMessageThe server is the brain and hands — it does all the thinking, remembering, and acting. The interfaces are lightweight I/O layers that handle input and display.
Emergence-Driven Design
Aleph is organized around the Five Layers of Emergence model, which describes how intelligence is built up from raw knowledge through to autonomous behavior. Rather than trying to hard-code every capability, Aleph creates conditions under which intelligent behavior emerges from simpler components.
Concrete mechanisms include:
- Experience crystallization: successful task completions are logged, and repeated patterns are automatically promoted into reusable skills
- Skill evolution: what starts as a one-off solution can become an atomic skill, then a composable module, then part of a polymorphic agent
- Adaptive behavior: the system genuinely changes its approach based on what worked before
Self-Hosted Privacy
Aleph runs entirely on your own hardware. The server, memory database, vector store, configuration — everything lives on your machine. The only external calls are to LLM providers (which you configure yourself) and tools that inherently need network access.
This is not a philosophical stance — it is an architectural guarantee. No telemetry, no cloud sync, no external analytics. Your data stays where you put it.
Design Goals
The Three Axes (user-adjustable)
exec_tier, thinking, and session_mode are the three user-adjustable dimensions in Aleph, forming the core axes for classifying user preference:
| Axis | Range | Default | Adjustable via |
|---|---|---|---|
exec_tier (execution tier) | ask / auto / full | auto | Settings → Policies; composer pill |
thinking (thinking level) | off / minimal / low / medium / high / xhigh | minimal | Settings → Policies |
session_mode (session mode) | chat / work / code | work | composer pill |
The three are orthogonal:
exec_tiercontrols permissions (whether a tool can run, and whether it's approved)thinkingcontrols inference (how long the model thinks)session_modecontrols the tool presentation surface (progressive-disclosure core set + deferred-tool tier), never permissions
session_mode can be switched at runtime via the session_set_mode tool, resolved request > session > global with stamp-on-carry.
Autonomy
Agents should be able to complete complex multi-step tasks without constant human intervention. The Think→Act loop paired with Thin Harness, Dumb Loop (R10) makes this possible — all intelligent decisions are made by a single LLM reasoning call.
But autonomy has boundaries. The three-tier execution permissions (Ask / Auto / Full) combined with the approval gate ensure potentially-dangerous operations (shell commands, file modifications, network requests) require explicit approval. Autonomy doesn't mean uncontrolled.
Security
Security is not an afterthought — it is baked into the execution pipeline (R1–R7 are its concrete form). Every tool call goes through guards that check the configurable allowlist and approval rules. The default posture is fail-closed: if a tool execution isn't explicitly allowed, it requires human approval. The [sandbox.command_policy] hard floor cannot be disabled by any tier — it is an independent hard filter (see the EXEC_TIER section of CLAUDE.md for details).
See Security.
Extensibility
Aleph supports multiple extension mechanisms:
- Tools: a built-in toolset (see Tools Overview) plus custom tool registration
- MCP protocol: standardized external tools (with on-demand discovery — no more blind resource/prompt indexing)
- Plugins: a unified
plugin.installentry (classified by source: marketplace / zip / path); folded with Markdown skills - Skills: a higher-level capability that combines tools and knowledge into reusable workflows
Many-Channel Presence
The Gateway protocol — defined by the handler registry in src/gateway/handlers/mod.rs — provides a unified control plane for every interface:
- CLI for development workflows
- Desktop app for focused work sessions
- Telegram, Discord, iMessage for message-native interactions
- WebChat for browser sessions
See Interfaces Overview.
Loop-Graph Governance
The newest loop_graph module adds a governance topology on top of the Harness: team nodes, audit ring, objective ACLs, victory-claim watchers, and a built-in loop-auditor agent. It gives the four single-loop failure modes (Goodhart, reference blindness, ring conflict, measurement decay) a topological answer. See Architecture Overview.
The Name
Aleph draws from three sources:
- Mathematics: the aleph numbers (ℵ₀, ℵ₁, ℵ₂…) represent progressively larger infinities. Aleph's intelligence evolves through discrete levels, each transcending the previous one
- Literature: in Borges's story "El Aleph", the Aleph is the point in space that contains all other points — a metaphor for a system containing all capabilities under one unified architecture
- Hebrew: as the first letter of the Hebrew alphabet (א), Aleph represents origin, unity, and the silent breath that makes all language possible
Further Reading
- Five Layers of Emergence — the L1–L5 model of how intelligence emerges
- Agent Thinking Model — how Aleph's agents observe, think, act, and learn
- Domain Modeling — the DDD foundation of Aleph's codebase
- Architectural Redlines — the ten non-negotiable hard constraints
- Architecture — the technical system architecture