Self-Building AI Operating System
Eight core primitives. Infinite autonomous intelligence.
import { PlannerAgent, CodeGenerator } from '@lumenos/lumen-g-kernel';
// LumenOS: AI that builds and improves itself
const planner = new PlannerAgent();
const plan = await planner.createPlan({
goal: 'Build a REST API for user authentication',
constraints: { time: '1 week' }
});
// All outputs cryptographically signed & verifiable
for (const step of plan.plan) {
console.log(`Step ${step.step}: ${step.purpose}`);
// Each step has a verified signature proving provenance
}
The 8 Core Primitives
Box Kernel
Cryptographic signing, schema enforcement, and verification for all outputs
Schema Factory
Create JSON schemas from natural language descriptions
Program Factory
Generate and improve code in TypeScript, JavaScript, and Python
Environment Interface
Generate safe shell commands with security analysis
Reasoner
Structured meta-reasoning with tradeoff analysis and confidence scoring
Memory
Conversational context with automatic summarization and persistence
Planner
Executive function that sequences primitives to achieve goals
Box Registry
Self-model maintaining system knowledge and relationships
Why Lumen-G?
Cryptographically Verified
Every output is signed with Bitcoin Secp256k1 ECDSA, proving authenticity and provenance
Self-Building
Eight primitives recursively compose to build new agents, tools, and capabilities
Goal-Directed
Planner creates multi-step plans, evaluates quality, and adapts to constraints
Self-Aware
Registry maintains complete self-model with metrics, relationships, and evolution tracking
Multi-Provider
Works with OpenAI GPT-4 and local Llama models via unified interface
REST API
15+ endpoints expose all primitives for remote access and integration
From Eight Primitives, Infinite Possibility
Drop this kernel in an empty environment, and it can bootstrap a city of intelligent agents.