"YOUR LIFE. YOUR INTELLIGENCE. YOUR CONTROL."
A genuine AI-powered personal cognitive twin that understands your goals, remembers what matters, thinks before recommending, and coordinates autonomous agents with transparent human-in-the-loop oversight.
- 🌟 Executive Overview
- ✨ Core Innovation: Why LifeOS AI?
- 🧠 Multi-Agent Architecture
- 🚀 Key Modules & Capabilities
- 🖥️ UI/UX Brand Identity
- 🛠️ Technology Stack
- ⚡ Quick Start Guide (Local Setup)
- 🎬 Hackathon Judge Demonstration Walkthrough
- 🔒 Security & Data Sovereignty
- 👥 Team & Acknowledgments
Most AI assistants are stateless chatbots that forget who you are the moment you refresh the page. Calendars and task trackers remain passive silos that demand manual data entry.
LifeOS AI is designed from the ground up as a Personal Digital Twin:
- Understands You: Initializes your identity, working hours, focus patterns, and communication style during conversational onboarding.
- Remembers What Matters: Continuously detects candidate preferences and facts, requests your explicit consent, and indexes approved memories into a high-dimensional vector vault.
- Thinks Before Recommending: Synthesizes active deadlines, pending priorities, and known habits before generating daily agendas.
- Executes With Permission: Deploys autonomous agents to create tasks, organize schedules, and verify database state without hallucination.
- Grounds In Truth: Answers research and personal questions strictly against your uploaded documents using Retrieval-Augmented Generation (RAG).
- Protects Privacy: Ensures zero silent memory storage, full CRUD control, and local user isolation.
| Ordinary Chatbots / Task Apps | LifeOS AI — Personal Digital Twin |
|---|---|
| ❌ Stateless amnesia across conversations | ✅ Persistent Vector Memory Vault with semantic cosine retrieval |
| ❌ Fabricates false plans and fake activities | ✅ Grounded Execution with database-verified actions and logs |
| ❌ Passive checklists requiring endless tapping | ✅ Proactive Agenda Synthesis aligning daily blocks with long-term goals |
| ❌ Silently extracts or sells personal data | ✅ Human-in-the-Loop Consent for every saved memory and executed write |
| ❌ Single generic prompt for all workflows | ✅ 7 Specialized Sub-Agents orchestrated around Meta Llama API |
flowchart TD
User([👤 User]) <--> UI[🖥️ React 18 + TS Dark Interface]
UI <--> API[⚡ FastAPI Asynchronous Core]
subgraph "Meta Llama AI Engine"
LLM[Meta Llama API /chat/completions]
SSE[Server-Sent Events Streaming]
Embeddings[1536-dim High-Speed Vector Embeddings]
end
subgraph "Multi-Agent Orchestrator"
Orchestrator[Twin Orchestrator]
A1[1. Memory Agent]
A2[2. Planning Agent]
A3[3. Research Agent]
A4[4. Productivity Agent]
A5[5. Goal Tracking Agent]
A6[6. Execution Agent]
A7[7. Verification Agent]
end
subgraph "Persistence Layer (MongoDB)"
DB_Users[(Users & Twin Profile)]
DB_Memory[(Vector Memory Vault)]
DB_Tasks[(Tasks & Priority Agenda)]
DB_Goals[(Goals & Milestones)]
DB_Docs[(Knowledge Hub Chunks)]
DB_Logs[(Agent Execution Logs)]
DB_Usage[(AI Telemetry & Tokens)]
end
API <--> LLM
API <--> Orchestrator
Orchestrator --> A1 & A2 & A3 & A4 & A5 & A6 & A7
A6 -->|Writes Record| DB_Tasks
A7 -->|Queries & Verifies| DB_Tasks
API <--> DB_Users & DB_Memory & DB_Tasks & DB_Goals & DB_Docs & DB_Logs & DB_Usage
- Server-Sent Events (SSE) token streaming delivers instant, fluid text generation.
- Adaptive Persona: Mirrors your preferred communication tone (concise, analytical, friendly, direct) and respects your focus boundaries.
- In-Chat Memory Detection: Identifies potential life facts or productivity habits (e.g., "Remember that I prefer difficult work in the morning"), presenting an interactive card for 1-click user approval.
- Multimodal Audio: Integrated Web Speech API for hands-free voice transcription and speech synthesis playback.
- Vector Search & Cosine Scoring: Automatically generates embeddings for approved memories and retrieves only high-relevance context to conserve LLM tokens.
- Categorized Vaults: Structured storage across 10 categories (Personal Profile, User Preferences, Short/Long-Term Goals, Habit Tracking, Ongoing Projects, Key Decisions).
- Contradiction Guard: Detects conflicting or duplicate facts before indexing.
- Full Deletion Sovereignty: Users can edit, disable, or delete individual memories or clear entire categories with instant database synchronization.
- Memory Agent: Synthesizes relevant historical preferences and past decisions.
- Planning Agent: Decomposes high-level ambitions into structured chrono-blocks and task agendas.
- Research Agent: Summarizes multi-document findings into concise briefs.
- Productivity Agent: Analyzes calendar congestion and alerts on approaching deadlines.
- Goal Tracking Agent: Computes milestone velocity and maintains progress trajectories.
- Execution Agent: Translates conversational intent into structured database writes.
- Verification Agent: Re-queries MongoDB post-execution to confirm record creation before reporting success to the user.
- Ingests PDF, DOCX, and TXT files directly through drag-and-drop.
- Chunks content into overlapping windows and computes semantic vector embeddings.
- Renders answers strictly backed by source citations with relevance confidence scores and exact excerpt previews.
- Links high-level aspirations (Career, Health, Financial, Skills) to measurable milestones.
- Automatically recalculates goal completion percentages as milestones are checked off.
- Visualizes status badges, target dates, and momentum metrics.
- Credit-Optimized Central AI Service: Minimizes redundant API invocations through caching, token limits, and intelligent context truncation.
- Live Provider Telemetry: Real-time tracking of total requests, prompt tokens, completion tokens, and average latency (ms) directly inside the AI Configuration center.
LifeOS AI features a custom-built, modern dark-mode aesthetic engineered for high-focus cognitive work:
- Deep Black Background:
#000000base with#0d0d0dand#141414glass-like card surfaces. - Electric Green Accent:
#00ff88glow accents reflecting vitality, speed, and intelligence. - Emerald Secondary:
#10b981subtle gradations for status indicators and active states. - Responsive Layout: Collapsible sidebar, mobile navigation drawer, loading skeletons, and fluid Framer Motion micro-interactions.
| Layer | Technologies |
|---|---|
| Frontend | React 18, TypeScript, Vite, Tailwind CSS 3, Framer Motion, Lucide Icons, Recharts, Axios |
| Backend | Python 3.11+, FastAPI, Pydantic v2, Motor (Async MongoDB), PyJWT, Bcrypt, Uvicorn |
| AI Engine | Meta Llama API (Llama-4-Scout-17B-16E-Instruct, Llama-4-Maverick, Llama-3.3-70B) |
| Database | MongoDB / MongoDB Atlas Vector Search |
| Document Processing | PyPDF2, python-docx, High-speed cosine vector ranking |
| Audio | HTML5 Web Speech API (SpeechRecognition & SpeechSynthesis) |
- Node.js 18+ &
npm - Python 3.11+
- MongoDB Community Server or MongoDB Atlas connection URI
git clone https://github.com/nava-07/LifeOS.git
cd LifeOScd backend
python -m venv .venv
# On Windows:
.\.venv\Scripts\activate
# On Linux/macOS:
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .envConfigure your backend/.env file:
# Meta Llama API Credentials
META_LLAMA_API_KEY=your_meta_llama_api_key
META_LLAMA_BASE_URL=https://api.meta.ai/v1
META_LLAMA_MODEL=Llama-4-Scout-17B-16E-Instruct
# Database & Security
MONGODB_URI=mongodb://localhost:27017
MONGODB_DB_NAME=lifeos
JWT_SECRET=your-super-secret-jwt-key-change-thisStart the FastAPI backend:
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reloadAPI docs and OpenAPI interactive sandbox: http://localhost:8000/docs
cd ../frontend
npm install
npm run dev -- --host 0.0.0.0Open http://localhost:5173 in your browser.
Follow these steps for a complete, 5-minute hackathon evaluation:
- Open
http://localhost:5173and click "Explore Demo (Instant Access)" on the landing page (or click "⚡ Instant 1-Click Demo (Alex Mercer)" on the login screen). - Instantly lands on
/apppre-seeded with Alex Mercer's active twin profile, pending priorities, goal velocity, and calibrated memories.
- Navigate to AI Chat (
/app/chat). - Ask: "What should I focus on this morning based on my known habits?"
- Observe how the twin retrieves your approved morning deep-work preference and provides a grounded, bulleted agenda.
- Type: "Remember that I prefer difficult architectural tasks between 8:30 AM and 11:00 AM."
- Notice the Memory Engine Consent Card appear with extracted category and importance rating. Click Approve & Save.
- Verify in Memory Center (
/app/memories) that the new memory is immediately vectorized and active.
- In Chat, send: "Plan my day and create a high-priority task to finalize the Meta Hackathon presentation."
- The orchestrator activates the Planning Agent, Execution Agent, and Verification Agent.
- Check Tasks (
/app/tasks) to see the task created in MongoDB with title, priority, and deadline. - Check Agent Activity (
/app/agents) to inspect the verified execution telemetry.
- Go to Knowledge Hub (
/app/knowledge). - Upload any PDF, TXT, or DOCX document.
- Ask questions about the document and receive answers grounded strictly in cited chunks with relevance scores.
- Open Settings > AI Configuration (
/app/settings/ai). - Click Test API Connection to benchmark real-time latency with Meta Llama API.
- Review total tokens, prompt/completion breakdown, and active model status.
- Strict JWT Isolation: Every user record, memory vector, goal, and task enforces ownership verification.
- Zero Silent Memory Injection: AI cannot store memories without explicit user consent.
- Full Right to Erasure: Hard-deleting memories or documents instantly purges vector embeddings.
- Client Security: API keys and secrets remain strictly in backend environment variables and are never bundled into client distributions.
Developed by Navaneeth P (@nava-07) for the Meta AI Developer Hackathon.
Special thanks to:
- The Meta AI & Llama Team for state-of-the-art open foundation models.
- The open-source community behind FastAPI, React, and MongoDB.
YOUR LIFE. YOUR INTELLIGENCE. YOUR CONTROL.
Built with ❤️ for the Meta AI Developer Hackathon.