Tanay Jain
  • Work
  • Index
  • About
  • Resume
© 2026 Tanay Jain. Designed and built in West Lafayette.build 7a70cd6 · Dec 1, 2026
  • GitHub ↗
  • LinkedIn ↗
← Index

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
Links
Source private, ask me
LiveThe real UI on sample data, with a scripted stand-in for the models. Pick a prompt from the Try row above the message box: "fix the lap timer in racing ai" starts a Claude Code agent you can watch in its terminal, a general question goes to Gemini, "what's running?" is answered from live state, and "what's due this week?" comes from the deadlines integration. Every reply shows its route: rules, then the local model if the rules weren't sure, then who answered and why.
373
Tests
9
Integrations
53k
Lines of code

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.

TanayOS chat routing a coding request to an agent
A coding request gets routed to the right project and kicks off a Claude Code agent.
TanayOS agent terminal streaming output
Agents stream live into an in-browser terminal, with a to-do progress bar and a ship report at the end.
Next project
ROV→