HOME23

Installable AI Operating System for Persistent Autonomous Agents

github.com/notforyou23/home23 · Node.js 20+ · JavaScript + TypeScript · MIT License

TL;DR: HOME23 is an installable AI operating system that creates living, self-improving agents that think continuously, remember everything, and grow over time. Unlike stateless chatbots that forget after each conversation, HOME23 agents are persistent residents—conversations are ephemeral events in their continual cognitive life. Install with one command, runs on any machine (Mac, Linux, Raspberry Pi). Includes persistent neural brain, sleep-dream cycles, document ingestion pipeline, Telegram integration, and web dashboard. The agent is the permanent fixture; you are the visitor.
The Core Problem

Traditional AI agents are ephemeral. Each conversation starts from zero. ChatGPT forgets. Claude API resets. Even autonomous frameworks like AutoGPT lose context between runs.

HOME23 inverts this model: the agent is the permanent resident, conversations are temporary events. The system:

Installation: single command node cli/home23.js init → then node cli/home23.js agent create <name> → then node cli/home23.js start <name>. No cloud, no subscription, runs locally.

Architecture: The Stack Pyramid

HOME23 is intentionally designed as four integrated layers. Each is critical—the system collapses if any is removed:

┌────────────────────────────────────────┐
│ Front Door (Dashboard, Chat, Settings) │
├────────────────────────────────────────┤
│ House Runtime (Agent, Tools, Channels) │
├────────────────────────────────────────┤
│ Brain (Memory, Embeddings, Continuity) │
├────────────────────────────────────────┤
│ COSMO Engine (Loops, Persistence, Ops) │
└────────────────────────────────────────┘

Layer 1: COSMO Engine — JavaScript cognitive engine (291 files, ~20k lines). Continuous think-consolidate-dream cycles. Multi-agent specialist system with 15+ specialized agents (ResearchAgent, SynthesisAgent, QualityAssuranceAgent). Quantum reasoner, thermodynamic controller, dynamic roles. Memory persistence in JSONL + gzip. Dashboard API on port 5001 + WebSocket for realtime events.

Layer 2: Brain — Persistent memory with semantic embeddings (local Ollama, OpenAI, Ollama Cloud), vector search, knowledge graph. Documents are synthesized by LLM before entering brain (understanding, not raw chunks). BRAIN_INDEX.md maintained by agent to track what it knows.

Layer 3: House Runtime — TypeScript agent harness (40 .ts files, ~10k lines). LLM tool-use loop (supports Anthropic, OpenAI, Ollama Cloud, xAI, Codex). 30+ tools: brain search, file I/O, web browsing, shell execution, research operations. Channel adapters: Telegram, webhooks, sibling agents, bridge chat. Conversation history with compaction.

Layer 4: Front Door — Vanilla HTML/CSS/JS dashboard (no React, no build step). OS home screen with real-time thoughts, chat, intelligence synthesis. 7 tabs: Home, Chat, Intelligence, Brain Map, Settings, COSMO, Evobrew. ReginaCosmo design language (glass-morphism, space gradient).

Five Core Components

COSMO Engine

Cognitive loops run continuously. Think-consolidate-dream cycles during idle periods. Multi-agent specialist system with 15+ roles. Not passive sleep—active cognitive work synthesizing insights across brain.

Document Ingestion Pipeline

File watcher (chokidar) monitors workspace. Binary converter (MarkItDown) handles PDF, DOCX, images → markdown. LLM Compiler synthesizes documents into structured knowledge before brain entry. No raw text chunks.

TypeScript Agent Harness

AgentLoop handles LLM interactions. 30+ tools for brain search, file I/O, web browsing, shell exec. Multi-model support (switch between Anthropic, OpenAI, Ollama Cloud, xAI at runtime). OAuth sign-in for Claude Max + ChatGPT Plus.

Dashboard / Front Door

Real-time thought feed, native chat with thinking/tool visibility, integrated research (COSMO iframe), integrated IDE (Evobrew). Settings are truthful—changes affect real runtime. No decorative UI over fake state.

Process Management (PM2)

Per-agent: 3 processes (engine, dashboard, harness). Shared: Evobrew IDE (port 3415), COSMO research engine (port 43210). Auto-restart on crash, exponential backoff. Auto port assignment (5001-5004 for agent 1, 5011-5014 for agent 2).

Key Capabilities
Comparison to Other Systems
System Approach HOME23 Difference
ChatGPT / Claude API Stateless chatbots, forget after each conversation Persistent, learns, grows brain over time. Always-on with autonomous thinking during idle.
AutoGPT / ReAct Agents Single-turn reasoning with tools Multi-turn loops with continuity, identity, channels. Dedicated cognitive engine, not just LLM loop.
Langchain / LlamaIndex Agent frameworks (you build on top) Installable OS (complete end-to-end). Brain persistence, ingestion pipeline, channels out of box. No code required.
n8n / Zapier Workflow/automation platforms Agentic—system thinks and decides, not just executes rules. Runs autonomously during sleep.
COSMO 2.3 Research-focused engine + one user conversation Multi-agent, channels (Telegram), persistent installation, CLI-driven. COSMO bundled inside HOME23.
Claude Code CLI IDE-focused, one-off tasks Always-on agent, persistent brain, background thinking. Can use Claude Code's OAuth for API access.
10 Unique Innovations
Design Principles
"The model is the current voice. The engine is the living process. The brain is the enduring cortex."
Model selection is tactical (which voice for this task?). Engine keeps system alive. Brain is what persists.
"Build inside-out, not outside-in."
Engine + harness working before dashboard. Every step runnable from command line before next step starts.
"Do not let HOME23 collapse."
Not just chat (missing engine/persistence). Not just dashboards (missing agent/autonomy). Not just raw engine (missing humaneness/front door). Pyramid must remain whole.
"Settings must be real, not decorative."
Changes persist. Changes affect runtime immediately. No cosmetic UI over fake state.
"Code simplicity over feature completeness."
Copy 2-3 times before abstracting. Delete code when possible. ~3 innovation tokens per system—use them wisely.
Technical Stack
What Makes It Novel

HOME23 is not another agent framework. It's an operating system that answers:

This is the first system to treat persistent agents as first-class installable objects, not add-ons to chat.

Quick Start
git clone https://github.com/notforyou23/home23
cd home23
node cli/home23.js init
node cli/home23.js agent create myagent
node cli/home23.js start myagent

Agent runs on http://localhost:5001. Dashboard shows real-time thoughts, chat, brain map, settings. Telegram integration requires TELEGRAM_BOT_TOKEN in config/secrets.yaml.

See Also