- Overview
- System Demo
- Engineering Highlights
- Core Capabilities
- Architecture Preview
- Current Reference Implementation
- Documentation
- Future Roadmap
- License
MindDesk is a privacy-focused, locally-hosted AI platform designed to run entirely on private hardware. Unlike cloud-based wrappers, it never sends data to external servers. It employs a custom Plan-and-Execute agent architecture that decomposes complex requests, resolves dependencies, and dispatches actions across digital and physical domains.
This repository serves as an engineering case study demonstrating complex architectural design, multi-modal local inference, and polyglot persistence.
Below is a demonstration of MindDesk's capabilities across conversation, document intelligence, device control, and scheduling.
Note
MindDesk runs entirely on local hardware. To demonstrate the end-to-end functionality within a reasonable timeframe, processing times vary by task, waiting periods were shortened, and certain sections were accelerated in the video below. However, the outputs and system workflows shown were not modified and reflect actual execution.
- Custom Plan-and-Execute Engine: Bypasses basic tool-calling for deterministic fast-paths and multi-step model planning.
- Autonomous Recovery: Built-in 3-attempt execution retry loop utilizing the reasoning model to repair failed arguments.
- Polyglot Persistence: Architectural split between relational data, unstructured chat memory, and vector storage layers.
- Decoupled Tool Registry: Dynamic capability expansion without modifying the core agent orchestration. Currently supports 17 tools.
- Local-First Constraints: Inference, object detection, facial recognition, and embeddings run locally without cloud dependencies.
MindDesk bridges 8 integrated capability domains via a single natural language interface:
- Conversational AI: Persona-driven multi-turn chat and memory management.
- Document Intelligence (RAG): Local vector ingestion and retrieval for PDF, DOCX, XLSX, and CSV files.
- Data Analysis: In-memory tabular queries with automated chart generation.
- Vision & Generation: Diffusion-based image creation and vision model analysis.
- Real-Time Surveillance: Object detection and facial recognition using local cameras.
- Edge Device Control: Natural language to serial commands for microcontroller integration (e.g., lighting, fans).
- Task Scheduling: Natural language date/time extraction with calendar UI notifications.
- Administration: Role-Based Access Control (RBAC) and audit logging.
MindDesk employs a strict five-tier architecture decoupling the frontend, API routing, agent orchestration, service tools, and data persistence.
graph LR
UI[Responsive SPA] -->|HTTP/SSE| API[REST API]
API --> CORE[Agent Engine]
CORE --> TOOLS[Modular Tool Registry]
TOOLS --> AI[Local Inference Provider]
TOOLS --> DB[(Polyglot Storage)]
TOOLS --> HW[Hardware / Edge]
Note
Current implementation technologies are documented separately.
For an in-depth breakdown, see the Architecture Document.
While MindDesk is highly modular, the current reference implementation relies on the following technologies:
- Frontend: React 18, Tailwind CSS
- Backend Routing: Python Flask
- Local Inference Provider: Ollama
- Planning Model: Llama 3.1
- Reasoning Model: DeepSeek-R1
- Vision Model: Qwen 2.5 Vision / Llama 3.2 Vision
- Embedding Model: mxbai-embed-large
- Computer Vision Pipeline: YOLOv11, InsightFace
- Relational Storage: PostgreSQL (5 isolated schemas)
- Document Storage: MongoDB
- Vector Storage Layer: ChromaDB, FAISS
- Tabular Analysis Engine: DuckDB
- Edge Microcontroller: Arduino via Serial
Dive deeper into the engineering decisions and system designs:
- 🏗️ System Design: Deep dive into the Planner, Executor, RAG pipeline, and engineering tradeoffs.
- 🗺️ Architecture: Component maps, deployment topology, and high-level structure.
- 🔌 Hardware Setup: Serial edge integration and IoT schematics.
- 🖼️ Gallery: Comprehensive visual tour of the user interface.
- Containerization via Docker for easier deployment replication.
- Extension of the tool registry for API integrations.
- Further optimization of local inference hardware utilization.
This project is licensed under the MIT License.



