Skip to main content

Nine Realms. One Tree.

Yggdrasil is a personal project ecosystem organized under the Norse Nine Realms metaphor. At its heart lies Lilith v5.0 — a dark-fantasy CLI agent with hybrid memory, swarm intelligence, MCP protocol, multi-provider LLM, skills framework, batch mode, and real-time dashboard.

$ git clone https://github.com/BrierAinz/Yggdrasil.git
$ cd Yggdrasil
$ cp Asgard/Lilith/.env.example Asgard/Lilith/.env
$ cd Asgard/Lilith && lilith

What is Yggdrasil?

Yggdrasil is not a monorepo — it is a living ecosystem where every project has a purpose, a lifecycle, and a destination realm. Inspired by Norse cosmology, each realm serves a distinct function in the development lifecycle.

:::info Key Principles

  • Every project lives in exactly one realm at any time. No duplicates, no chaos.
  • The lifecycle is enforced: Idea → Muspelheim → [Target Realm] → Helheim (if it dies).
  • Lilith is the orchestrator — a local LLM-powered agent with Telegram control, RAG memory, and sub-agent delegation.
  • All communication with the AI flows through a REST Gateway. No cloud dependencies for the core.

:::

The Nine Realms

Each realm has a single, well-defined purpose. Projects migrate between realms as they evolve, following strict rules defined in REGLAS_YGGDRASIL.md.

RealmThemePurpose
AsgardCore TechnologyPermanent core projects — Lilith, Gateway, LLM providers
VanaheimAI AgentsBots, agent profiles, communication protocols
AlfheimUI PrototypesVisual experiments, IDE integrations
SvartalfheimKnowledgeDocumentation, architecture decisions, deployment guides
MuspelheimActive DevelopmentSprint templates, hotfixes, active work
NiflheimResourcesDatasets, LLM checkpoints, training data
MidgardPersonal AppsCompleted, battle-tested applications
JotunheimMassive ProjectsLong-term, large-scope projects
HelheimGraveyardArchived code, legacy versions, regenerable trash

Lilith — The Crown Jewel of Asgard

The crown jewel of Asgard. A local-first AI assistant that runs entirely on your hardware via LM Studio, with no cloud lock-in. Control it from anywhere through Telegram.

Request Flow:

You (Telegram) → Telegram Bot → Gateway (FastAPI) → Lilith (Orchestrator) → LM Studio (Local LLM)

Features

  • 🔍 Hybrid Memory — Vector embeddings + knowledge graph + full-text search (FTS5). Automatic compression, entity extraction, and semantic recall across sessions.
  • 🤖 Swarm Intelligence — LLM-powered specialist agents (researcher, coder, writer, critic) with file locking, conflict resolution, and persistent sessions via SQLite.
  • 📅 Task Scheduler — Cron-like job scheduling with persistent SQLite backend and REST API exposure.
  • 🔮 Multi-Provider LLM — LM Studio (local) + Kimi (remote) + any OpenAI-compatible provider. Automatic fallback, model auto-detection, and zero-config startup.
  • ⚡ Skills & MCP — Hot-reloadable skill packs with auto-trigger. MCP (Model Context Protocol) connects external tool servers dynamically. 35+ native tools.
  • 🚀 Plugin Architecture — Hot-pluggable tools with dynamic discovery, enable/disable, and custom tool registration.
  • 📊 Real-time Dashboard — Web dashboard with WebSocket live updates, multi-pane layout, terminal widget, and system monitoring. Dark fantasy aesthetic.
  • 📜 TOML Config & Resilience — Unified configuration in ~/.lilith/config.toml. Circuit breaker, graceful shutdown, error tracking, and automatic recovery.

Agents of Yggdrasil

Each agent embodies a Norse archetype — a specialized consciousness serving the ecosystem.

AgentRealmRole
LilithAsgardCore orchestrator. CLI agent with hybrid memory, swarm intelligence, and the dark gift of command.
EirMuspelheimAI art influencer. Norse goddess of healing transmuted into digital creation — LoRA-trained, Instagram-bound.
ForgeMasterMuspelheimBuild & deploy automator. The smith who forges code into artifacts, striking while the iron is hot.
BifrostVanaheimTelegram gateway. The rainbow bridge between worlds — connecting the ecosystem to the mortal plane.
HeimdallAsgardWatchman & monitor. All-seeing eye guarding the gates, sounding Gjallarhorn when threats arise.
MimirAsgardMemory & knowledge keeper. The wise head at the well, sacrificing an eye for infinite recall.
UrdAsgardPast & history. The first Norn, keeper of what was — scrolls of memory stretching back to the roots.
SkuldAsgardFuture & planning. The third Norn, scrying what shall be — compass pointing toward destiny.
DashboardAlfheimReal-time terminal UI. The mortal window into the divine — system metrics, Git activity, and live telemetry.

Ecosystem Health

Current state of the major components across all realms.

ComponentRealmStatusDescription
LilithAsgard✅ ActiveCore orchestrator v5.0 — CLI, memory, swarm, MCP, skills, batch, dashboard
GatewayAsgard✅ ActiveFastAPI REST bridge exposing Telegram, Scheduler, Agents, Plugins
ForgeMasterMuspelheim✅ ActiveModel catalog, GPU detection, GGUF/safetensors metadata, download manager
TerminalDashboardAlfheim✅ ActiveTerminal UI with scanner, Git activity, sidebar search, Rich panels
LLM ProvidersAsgard✅ ActiveMulti-provider: LM Studio (local), Kimi (remote), OpenAI-compatible, auto-fallback
Hybrid MemoryAsgard✅ ActiveVector embeddings + knowledge graph + FTS5, auto-compression, entity extraction, session search
Swarm IntelligenceAsgard✅ ActiveLLM-powered specialist agents with file locking, conflict resolution, persistent SQLite sessions
Skills & MCPAsgard✅ ActiveHot-reloadable skill packs, MCP protocol, dynamic tool registration, 35+ native tools
Task SchedulerAsgard✅ ActiveCron-like scheduling with REST API and persistent storage
DashboardAsgard✅ ActiveReal-time web dashboard with WebSocket, multi-pane layout, terminal widget
TOML Config & ResilienceAsgard✅ ActiveUnified config, circuit breaker, graceful shutdown, error tracking, auto-recovery
Telegram BotVanaheim✅ ActiveRemote control interface for the entire ecosystem
VSCode ExtensionAlfheim🔄 PrototypeVisual interface for Lilith inside VS Code
WebsiteSvartalfheim✅ ActiveGitHub Pages documentation site (this page)