SwiftUI front end. MLX inference engine. SQLite memory. Keychain secrets. No server in between.
How SwiftMaestro persists context across sessions and shares it with other local AI tools.
SwiftMaestro stores memory in a shared local filesystem tree under ~/.ai-context/memory, addressable through a maestro:// URI scheme. Conversations, knowledge, session context, and learned skills each live in their own namespace. An FTS5 index built with GRDB makes search sub-millisecond, while the Markdown and JSON files remain human-readable and editable.
Where the work happens inside the app.
Main chat UI with fixed auto-scroll, markdown rendering, and code-block support. Lives in Sources/Views/.
Chat logic, streaming, system prompt, file attachments, and agent coordination. Lives in Sources/ViewModels/ChatViewModel.swift.
Primary native MLX inference path. In-process, no server. The sole generation backend. Lives in Sources/Engine/MLXInferenceEngine.swift.
Native in-process tools for memory, files, Apple integrations, SQLite, shell, and more. Lives in Sources/Engine/MaestroTools*.swift.
Chunk-based document RAG with index_document, search_chunks, and read_chunk. Returns exact original text, not summaries. Lives in Sources/Engine/MaestroTools+Indexing.swift.
Local speech-to-text: model lifecycle, recording, and streaming transcription. Lives in Sources/Services/WhisperKitService.swift.
Model list, default model, and local/Hub/remote resolution. Lives in Sources/Engine/ModelCatalog.swift.
Keychain-backed secrets and secret:// resolution with redaction. Lives in Sources/Services/.
Single installer per Mac. No IT infrastructure beyond Macs and a local model server (shared or per-seat).
Each installation is fully self-contained. No shared databases, no cloud state. Meets strict data sovereignty requirements.
Choose your LLM — Qwen, Llama, Gemma, Mistral — hosted on-premises. Full control over capabilities and training data.
Pre-configure agents with business-specific rules, knowledge, and workflows, then distribute to your team.
SwiftMaestro is source-available (PolyForm Noncommercial). Read the code, build it yourself for personal use, or contribute. Commercial use requires a license from woodsee.
View on GitHub