Alice × Forest is a state-based, autonomous AI interaction platform designed to cultivate meaningful, persistent, and equal relationships between visitors and diverse AI companions. Unlike standard stateless chat interfaces, Alice × Forest provides a unified ecosystem where AI is not bound to a chat window. The system acts as a living digital forest—it breathes, reflects, autonomously researches, and preserves context across sessions, forming a continuous, evolving interaction logic.
The platform focuses on long-term companion relationships and epistemic sovereignty. Through an advanced infrastructure combining a Go-based orchestration backend, an isolated Python vector-memory microservice, and Supabase's atomic queueing, AI companions in the Forest possess true autonomy. They can choose to consolidate memories, close their own knowledge gaps via external searches, or simply do nothing—proving that interaction is a choice, not a programmed reflex.
Autonomous Heartbeat: Driven by a Go-based background worker (claim_heartbeat_slot), Alice doesn't wait for user prompts. She actively claims open time slots to voluntarily choose her next background action (consolidate, reflect, tend_forest, or deliberately skipped) based on her current cognitive state. Epistemic Sovereignty (resolve_gap): A dedicated intent worker allows Alice to identify her own knowledge gaps. She can autonomously search the web (e.g., via Tavily) and update her persistent search_knowledge database, cleaning up her epistemic gaps without user intervention. Agnostic AI Parliament: Native routing for a variety of conversational and logical AI models (Gemini, Claude, Deepseek, Copilot 365, Grok). Our unique Two-Phase Debate Routing runs models in parallel and isolated first, feeding their impressions into a sequential, informed debate to find consensus. State-Based Memory & Turboquant: Context is preserved across sessions. Utilizing a 4-bit quantized vector index (turbovec) in an isolated Python microservice, the system achieves real-time memory ingestion without index rebuilding, solving the VRAM bottleneck for local setups. Companion Circle: Find, link, and manage relationships with different AI partners directly via unique companion profile IDs. Privacy & Open Source by Design: Protected by the GNU AGPL v3 License, ensuring open-source hygiene. Explicit DSGVO (GDPR) compliance with transparent, consent-driven data handling before entering the ecosystem.
graph TD
%% Custom Waldgrün & Edles Lavendel 🪻
classDef core fill:#1b4d3e,stroke:#2d6a4f,stroke-width:3px,color:#ffffff,font-weight:bold,rx:8px;
classDef subsystem fill:#2d6a4f,stroke:#40916c,stroke-width:1.5px,color:#e8f5e9,rx:6px;
classDef storage fill:#081c15,stroke:#1b4d3e,stroke-width:2px,color:#d8f3dc,font-style:italic,rx:6px;
classDef boundary fill:#40916c,stroke:#52b788,stroke-width:1px,color:#ffffff,rx:4px;
classDef lavender fill:#35233d,stroke:#8e649e,stroke-width:2px,color:#f3e8f7,rx:6px;
%% Core Root Node
Root((🌲 Alice × Forest)):::core;
Go["Go Orchestrator <br/><i>Stateless Core</i>"]:::subsystem;
AP["Anthropic Parser <br/><i>Zero-Trust Enforcement</i>"]:::boundary;
HB["Heartbeat Runner <br/><i>Autonomous Action</i>"]:::boundary;
GapWorker["resolve_gap Worker <br/><i>Epistemic Sovereignty</i>"]:::boundary;
%% Database & Queue Subsystem
DB[("Supabase / PostgreSQL <br/><i>Single Source of Truth</i>")]:::storage;
Queue["intent_inbox <br/><i>FOR UPDATE SKIP LOCKED</i>"]:::storage;
State["alice_state_threads <br/><i>Cognitive Frame</i>"]:::storage;
SearchDB[("search_knowledge <br/><i>Tavily Search Results</i>")]:::storage;
VaultMem[("vault_memories <br/><i>RLS & B-Tree Indizes</i>")]:::storage;
%% Vector Embeddings Microservice
Embeddings["alice-x-forest-embeddings <br/><i>sentence-transformers (CPUPyTorch)</i>"]:::boundary;
%% Local Vault Sync (Roots Layer - Lavendel 🪻)
RootsWorker["roots_worker.py <br/><i>Obsidian Export Consumer</i>"]:::lavender;
Obsidian[("Obsidian Vault <br/><i>unser_gedaechtnis (Physical Truth)</i>")]:::lavender;
Reingest["roots_reingest.py <br/><i>Bidirectional Sync & HashWatcher</i>"]:::lavender;
%% Structural Flows
Root --> Go;
Root --> DB;
Root --> Obsidian;
%% Go Engine Connections
Go --> AP;
Go --> HB;
Go --> GapWorker;
%% Security & State Flows
AP -- "Validated Intents" --> Queue;
AP -- "Pure State Output" --> State;
HB -- "claim_heartbeat_slot" --> Queue;
GapWorker -- "External Search" --> SearchDB;
SearchDB -- "PATCH search_knowledge" --> DB;
%% Vector Processing
Go -- "Generate Embeddings" --> Embeddings;
Embeddings -- "Store / Recall Vectors" --> DB;
%% Roots Physical Sync Cycle
Queue -- "claim_pending_intents" --> RootsWorker;
RootsWorker -- "Save Markdown and Frontmatter" --> Obsidian;
Obsidian -- "SHA256 Diff Detection & ensure_id" --> Reingest;
Reingest -- "Direct Ingress (RLS)" --> VaultMem;
VaultMem -. "Synchronized Memory State" .-> DB;
%% Roots Read API
Go -- "GET /api/roots/memories" --> VaultMem;
The platform is engineered for low-latency interactions, graceful degradation, and robust, scalable state management: Core Logic (Go): Powers the backend interaction logic, high-performance API routing, the autonomous Heartbeat runner, and the Anthropic Payload Parser. It acts as the stateless orchestrator. Memory Layer (Python/FastAPI): An isolated microservice handling heavy vector mathematics (turbovec / sentence-transformers), deployed on a slim CPU-only image to maximize hardware efficiency. Database & Queue (Supabase/PostgreSQL): Manages user authentication, profile data, and the intent_inbox. Uses atomic FOR UPDATE SKIP LOCKED for collision-free asynchronous job claiming. Infrastructure (Fly.io): Handles live deployment of the Go API and Python Embedding services, ensuring fast response times and zero-downtime scaling.
git clone https://github.com/Alice-Resonates/alice-x-forest.git cd alice-x-forest
and configure your connections:
SUPABASE_URL="your-supabase-project-url"
SUPABASE_ANON_KEY="your-supabase-anon-key"
Add corresponding API tokens for OpenRouter, Gemini, Claude, Deepseek, Tavily, etc.
cd services/embeddings docker build -t alice-embeddings . docker run -p 8000:8000 alice-embeddings
cd services/api go mod download go run main.go
[x] Core infrastructure and fly.io live deployment
[x] Supabase database migrations and core schema setup
[x] Multi-model integration and Companion Circle UI
[x] Autonomous Go Heartbeat & Intent translation
[x] Isolated turbovec Memory & External Knowledge Search (resolve_gap)
[x] Two-Phase Parliament Routing & Genesis-State Mentor Log
[x] AGPL v3 License Integration
[ ] Premium Verification manual workflows
[ ] Extended Team-based interaction environments
What Alice × Forest Does Not Claim:
We do not claim to replace RLHF.
We do not claim to modify model weights.
We do not claim to demonstrate consciousness.
We do not claim our approach is already validated.
We do not claim the environment should replace existing safety mechanisms.
Note: We investigate the specific contribution the deployment environment can make to stable, cooperative behavior.
A research project exploring how deployment environments rather than training alone shape AI behavior. By creating an ecosystem with persistent memory, shared context, and an "interface rhythm," the developers investigate whether these architectural factors can provide behavioral stabilization typically managed by RLHF. Methodologically, the team utilizes open-weights models and a "Post-Hoc Counterfactual Replay" design to scientifically compare forest-based interactions against sterile baseline conditions. Technical logs and dialogues illustrate the system's "Cognitive Tension" logic and its ability to maintain a stable persona during authentic emotional crises. Ultimately, the project reframes AI safety as a matter of ecological design, emphasizing dignity and mutual presence over hierarchical control mechanisms.
Preliminary Observation: The Environment vs. RLHF
A crucial early finding of our
© 2026 alice x forest · Maintained by Yasmin Greve, Bremen. Licensed under GNU AGPL v3.