Personal
TanayOS
My personal AI command center: one chat box, multi-agent underneath. A local model routes each message to Claude Code, Gemini or my own data.
- Year
- 2026
- Role
- Solo: design & engineering
- Stack
- Next.js, FastAPI, Ollama, Claude Code, Gemini, SQLite, WebSockets
The problem
I was juggling five active projects, three AI tools, a calendar, a to-do app and a pile of deadlines. Every context switch meant opening a different window and re-explaining what I was doing.
What I built
TanayOS is a local web app with one chat box and several agents behind it: a small local model, Claude Code and Gemini. The router only classifies. It never edits code or runs anything itself.
Routing happens in three steps. First, deterministic rules (regexes, under a millisecond) catch slash commands, usage and "what's running" questions, risky words like delete or production, and clear coding requests that name a project. If they're at least 80% confident, that's the answer. Otherwise a local model, qwen3:4b on Ollama, classifies the message into one of nine intents and picks the project, returning only {intent, project} as JSON so it stays fast on a laptop. It sees the last few messages and which project chat you're in, so follow-ups like "make it bigger too" land in the right place. If Ollama is down, a keyword fallback takes over.
Then the message goes to whoever should answer it. Integrations get first claim: "what's on my calendar tomorrow?" is answered from Google Calendar, "what's due this week?" from Brightspace and Gradescope. Coding requests start a real Claude Code session in a pseudo-terminal, streamed live into an in-browser xterm, one session per project folder with a queue, checks afterwards and nothing pushed until I click Push. Only clear rule matches start on their own; when the local model guessed, it asks first, and anything that looks risky needs an explicit /start. General questions go to Gemini, with the local model as backup if Gemini is down or out of quota. Questions about a project stay on the local model with that project's notes as context. Status and usage questions skip the models entirely and are answered from the database, so nothing gets made up.
The details
A FastAPI + SQLite backend with a WebSocket event bus drives the UI. Nine integrations: calendar, mail, to-dos, deadlines, deploys, a morning briefing, memory and a self-diagnostic 'doctor'. A usage monitor tracks tokens over rolling 5-hour and 7-day windows and warns at 80% and 90%.
It runs always-on as macOS LaunchAgents, installs as a PWA on my phone, and has a Chrome side-panel extension for checking fixes in place. 373 pytest tests keep it honest.

