Atlas
A self-hosted personal AI assistant, still in progress. The agent runs on a home Linux server with local models. A Windows companion lets it listen, speak and control the PC, and a SwiftUI app lets you talk to it from an iPhone.
- Built with
- AI-assisted development: designed and directed by Jacob Wynhof
- Status
- In progress; the source is private
- Stack
- Python, pytest, SwiftUI, Ubuntu Server
Architecture
Clients
iPhone app
SwiftUI: chat, reminders, push-to-talk, Face ID approvals
Windows companion
wake word, microphone and speaker; controls windows, apps and media
Telegram
a bot that answers only its owner
The app and the companion connect over WebSocket; the PC always dials out, over an encrypted channel
Home server, Ubuntu Server 24.04
Agent harness
a small custom agent loop with typed tools, a policy floor, an approval queue and a scheduler for reminders
Voice
speech to text with faster-whisper, then replies spoken back sentence by sentence
Memory
Markdown notes in an Obsidian vault, with keyword and vector search
OpenAI-compatible API on the same machine
Local models on the home server
llama.cpp through llama-swap
a main chat model, a small router model and a reranker on the GPU; an embedding model for memory search on the CPU
Designed as optional: redacted context only, after approval
Remote model
OpenRouter
for requests the local models can’t handle
The agent
The harness is a thin agent loop written for Atlas rather than taken from a framework. Each request goes first to a small router model that picks a mode and a group of tools; the main model then works through tool calls, and every call is validated against a typed schema before it runs.
The approval path is built in code: rules decide whether a tool call may run, must be blocked, or needs the owner’s OK. Calls that need an OK go to a queue, to be answered in Telegram or the iPhone app, where Approve and Deny both ask for Face ID, and each decision is written to an audit log in which every entry is hash-chained to the one before.
Voice and the PC
The Windows companion listens for a wake word with openWakeWord and detects the end of speech with Silero VAD, then sends the audio to the server. The server transcribes it with faster-whisper, runs one agent turn in a short spoken style and streams the reply back as speech a sentence at a time. Talking over it stops the reply.
The same companion carries out PC actions: windows, apps and media. The server can’t open a connection to the PC; the companion dials out, and it checks every action again against its own local rules before running it.
Memory and privacy
Memory is a vault of plain Markdown notes that can be opened in Obsidian. A SQLite index combines full-text and vector search over the notes, and a single writer records each change as a git commit.
A redaction step is also built for the remote-model path: it replaces secrets, personal data and known names with placeholders and puts the originals back in the answer. If redaction can’t be guaranteed, it sends nothing.
The server
The server is a headless Ubuntu Server 24.04 machine with a GTX 1080 Ti for the main models. It was installed from an unattended install USB that sets up key-only SSH. The code base is a set of Python packages, each with its own pytest suite.