An enterprise-grade TypeScript agent framework built on structural knowledge distillation, frame-perfect state snapshotting, and biological osmosis self-mutation.
| Core Navigation | Documentation & Wiki | Subsystem Source Code |
|---|---|---|
| π Executive Brief | π Auto-Rolling Roadmap | β‘ Composition Root |
| β‘ Comparison Matrix | π Academic Whitepaper | π Engine Factory |
| ποΈ Architecture Tree | π¦ 1-to-1 Package Matrix | βοΈ Core Abstracts |
| π§ͺ Osmosis Methodology | π§ Handoff Strategy Guide | π§ Agents Tier |
| π Quick Start Guide | π API Reference Guide | πΎ Sessions Tier |
| π» Programmatic Usage | π ADR Architecture Index | π οΈ Tooling Tier |
| π€ Contributing Guide | π Workspace Changelog | π Core Contracts |
Traditional AI agent frameworks suffer from "framework soup"βsprawling multi-package monorepos, uncoordinated async state drift, and static, un-evolving logic.
LUMI-NEW introduces AKD-DSO (Architectural Knowledge Distillation & Deterministic Substrate Optimization). Turns execute as deterministic frame steps (agents, sessions, tooling).
π Explore the Auto-Rolling Roadmap: Auto-Rolling Evolution Roadmap
π Read the Formal Academic Research Paper: AKD-DSO Specification Paper
π Read Philosophy Brief: The Next Step Forward β Reframing Agent Architecture
π Read Comprehensive Benchmark Field Note: Benchmark Performance Field Note
π‘οΈ Anti-Patent-Troll Pledge & Prior-Art Specification: Defensive Patent Pledge | Prior-Art Claims
π¦ Explore the 1-to-1 Package Mapping Matrix: Package Mapping Matrix
| Metric / Feature | Legacy Monorepo (pi-main) |
AKD-DSO Engine (LUMI-NEW) |
Underlying Mechanism / Speedup |
|---|---|---|---|
| Architecture | 18+ Micro-packages |
3-Tier Monolith (agents, sessions, tooling) |
Zero Framework Bloat |
| Execution Loop | Loose Async Handlers |
Deterministic Game Loop (tick()) |
Frame-Perfect Isolation |
| Mean Turn Latency | Direct function dispatch replacing IPC/RPC queues ( |
||
| Execution Throughput |
|
Direct function dispatch replacing async network queues ( |
|
| State Rewind Latency |
|
|
Replaced JSON re-parsing with |
| VFS Perception Speed |
|
In-memory contiguous VFS overlay inspection ( |
|
| Memory Allocation | Dynamic Heap GC Sweep | 16MB Zero-GC Slab | Pre-allocated slab eliminates Garbage Collection sweeps. |
| Canvas Game Synthesis | N/A (Seconds) | Sub-millisecond 60FPS Canvas HTML5/JS app generation in contiguous memory. |
# Run automated engine benchmark & throughput evaluation suite
lumi --benchmark
# Run interactive setup wizard (Model Providers & Codex OAuth)
lumi --setupsrc/
βββ core/
β βββ contracts/ # System Interfaces & GameStateSnapshot
β βββ abstracts/ # Abstract Base Classes (DIP)
β
βββ agents/ # Tier 1: Agents Subsystem
β βββ base/ # Agent Base Config
β βββ extensions/ # Domain Mutation Subdirectories
β βββ compaction/ # prompt-composer.ts
β βββ resolution/ # model-resolver.ts, agent-slash-router.ts, model-catalog.ts
β βββ execution/ # agent-engine.ts
β βββ mentions/ # mention-resolver.ts (Pass 9)
β βββ swarm/ # agent-swarm-dispatcher.ts (Pass 11)
β βββ intelligence/ # workspace-intelligence.ts (Pass 13)
β
βββ sessions/ # Tier 2: Sessions Subsystem
β βββ base/ # Session Context Base
β βββ extensions/ # Domain Mutation Subdirectories
β βββ substrate/ # arena-allocator.ts, file-lock.ts (Pass 20)
β βββ persistence/ # session-store.ts
β βββ memory/ # session-memory-store.ts
β βββ vfs/ # session-vfs.ts
β βββ compaction/ # session-compactor.ts, snapcompact-engine.ts (Pass 15)
β βββ integrity/ # stability-doctor.ts (Pass 12)
β
βββ tooling/ # Tier 3: Tooling Subsystem
β βββ base/ # eyes.ts
β βββ extensions/ # Domain Mutation Subdirectories
β βββ perception/ # ast-eyes.ts
β βββ progress/ # progress-ears.ts
β βββ telemetry/ # ears.ts, telemetry-tracer.ts (Pass 19)
β βββ hashline/ # hands.ts
β βββ registry/ # skills-ingestor.ts, tool-registry.ts
β βββ policy/ # module-decomposer.ts (Pass 10)
β βββ permissions/ # command-permission-controller.ts (Pass 14)
β βββ gateway/ # monolith-gateway-server.ts (Pass 17)
β βββ evals/ # benchmark-evaluator.ts (Pass 18)
β
βββ factories/ # Engine Monolith Bootstrapper
β βββ monolith-factory.ts
β
βββ index.ts # Composition Root (LumiMonolith - 21 Passes Verified)
π‘οΈ Non-Destructive Osmosis Extension Strategy (
ADR-012):
Base classes insrc/*/base/remain immutable. Evolutionary passes introduce single-responsibility extension classes in dedicated mutation subdirectories (src/*/extensions/<mutation-domain>/) and compose them cleanly inMonolithFactoryandLumiMonolith.
To prevent code regression, file overwrites, and structural drift as new evolutionary passes are absorbed from pi-main, LUMI-NEW strictly enforces the Non-Destructive Extension & Mutation Directory Strategy:
- Base Class Immutability: Base domain classes in
src/*/base/(e.g.Eyes,SessionContext,AgentConfig) are foundational and immutable. - Single-Responsibility Mutation Subdirectories: Every evolutionary pass or feature mutation creates a dedicated, single-responsibility file in a domain-scoped subdirectory inside
src/*/extensions/<mutation-domain>/. - Zero-Barrel Import Policy: All intermediate
index.tsbarrel re-export files are prohibited. Imports across subsystems MUST target explicit, deep relative paths. - Dependency Inversion Monolith Composition: Extension classes extend base abstractions and are composed at the composition root (
MonolithFactory&LumiMonolith).
| Subsystem Tier | Mutation Directory | Pass / Feature Responsibility | Extension Class |
|---|---|---|---|
Agents (src/agents/extensions/) |
compaction/ |
System prompt compilation & context assembly | PromptComposer |
resolution/ |
Model fallback resolution, slash routing & pricing specs | ModelResolver, AgentSlashRouter, ModelCatalog |
|
execution/ |
Deterministic tick engine loop execution | AgentEngine |
|
mentions/ (Pass 9) |
Prompt @mention context expansion |
MentionResolver |
|
swarm/ (Pass 11) |
Subagent task delegation & frame snapshot sync | AgentSwarmDispatcher |
|
intelligence/ (Pass 13) |
Workspace topology & package identity indexing | WorkspaceIntelligenceEngine |
|
Sessions (src/sessions/extensions/) |
substrate/ |
Contiguous 16MB ArrayBuffer slab allocation & file locks | ArenaAllocator, FileLockManager, LruCache |
persistence/ |
File persistence & frame-perfect snapshot rewind | PersistentSessionStore |
|
memory/ |
Long-term fact store & KI persistence | SessionMemoryStore |
|
vfs/ |
In-memory Virtual File System diff overlay | SessionVfs |
|
compaction/ |
Sliding window compaction & dense bitmap archiving | SessionCompactor, SnapcompactEngine |
|
integrity/ (Pass 12) |
Environment auditing & forensic self-healing | StabilityDoctor |
|
Tooling (src/tooling/extensions/) |
perception/ |
AST structural code symbol search | AstPerceptionEyes |
progress/ |
Reactive CLI progress spinner & percent bar rendering | ProgressStreamingEars, TerminalProgressRenderer |
|
telemetry/ |
Microsecond performance timers & OpenTelemetry spans | ProtocolEars, TelemetryTracer |
|
hashline/ |
Line-anchored hash edit verification | AnchoredHands |
|
registry/ |
Skill discovery & schema validation tool execution | SkillsIngestor, ValidatingToolRegistry |
|
policy/ (Pass 10) |
Zombie symbol detection & dependency analysis | ModuleDecomposer |
|
permissions/ (Pass 14) |
Command permission controller & execution guardrails | CommandPermissionController |
|
gateway/ (Pass 17) |
JSON-RPC 2.0 streaming gateway server | MonolithGatewayServer |
|
evals/ (Pass 18) |
Automated benchmark evaluation suite | MonolithBenchmarkEvaluator |
- π Auto-Rolling Evolution Roadmap
- π Workspace Changelog
- π Academic Research Paper: AKD-DSO Specification
- π¦ True 1-to-1 Package Mapping Matrix
- π Whitepaper: The Osmosis Paradigm
- π§ The Osmosis Methodology & Handoff Guide
- π Wiki Landing Page
- π API Reference Guide
- π ADR Index & Decision Records
- π€ Contributor Guidelines
- π Distributed under the MIT License. See LICENSE for details.