Talverin — Personal AI Assistant That Acts
Local-first AI that executes your intent, not just chat.
Built with NVIDIA Nemotron-3.5-Lightning (via Nebius Token Factory) + Tavily Search API.
🎯 Inspiration
Traditional AI assistants are passive—they advise, but they don't act.
I've used every major AI assistant: ChatGPT, Claude, Notion AI. They're brilliant at suggesting—"You should schedule deep work at 2 PM," "You should learn Python," "Set an alarm for 2 PM." But the gap between advice and action is where productivity dies. You still have to open your calendar, create the event, set the reminder, break down the goal into tasks, and schedule each block manually.
I wanted an AI that eliminates the translation layer between intent and execution:
- Say "Move my Python session to 4 PM" $\rightarrow$ it moves on your timeline.
- Say "Add goal: Learn Rust, 20 hours, due in 3 weeks" $\rightarrow$ it researches a live curriculum, synthesizes a 5-module syllabus, and auto-schedules 90-minute deep-work blocks around your existing routine.
Talverin bridges the gap between AI advice and AI action.
🛠️ What It Does
Talverin is a local-first, native macOS desktop application (Electron 30 + Next.js 15 + React 19) that gives an AI full read/write access to your scheduling engine.
Core Capabilities
- Natural Language Scheduling: LLM parses intent $\rightarrow$ emits typed
scheduleOps(move,add,remove,done,rename) $\rightarrow$ applied in $<50\text{ ms}$ to your local schedule. - Goal $\rightarrow$ Syllabus $\rightarrow$ Schedule: Tavily Search API fetches a live curriculum $\rightarrow$ NVIDIA Nemotron-3.5-Lightning synthesizes a 5-module syllabus $\rightarrow$ auto-schedules 90-minute blocks around your routine blocks.
- Global Native Alarms: Electron native overlay window slides in from the right edge across all macOS workspaces (even over full-screen apps); auto-marks
DONEand catches missed blocks to reschedule them into an evening recovery window. - Day Briefings & Auto-Reports: Auto-generated when the day starts and ends—tracking completion %, per-goal minutes, missed blocks, and focus sessions.
- Image & File Upload: Drag and drop images, PDFs, and code snippets directly into chat for multimodal context.
- Full App Control via Chat: Control settings, routines, goals, theme (dark/light mode), and performance mode via natural language.
🏗️ How I Built It
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Talverin Desktop App │
├─────────────────────────────────────────────────────────────┤
│ Next.js 15 + React 19 + Electron 30 + Tailwind CSS │
├─────────────────────────────────────────────────────────────┤
│ Local State: localStorage (schedule, goals, routines, │
│ settings, chat history) — 100% local, no cloud │
├─────────────────────────────────────────────────────────────┤
│ AI Layer (via /api/ai): │
│ • NVIDIA Nemotron-3.5-Lightning (Nebius Token Factory) │
│ • Tavily Search API (live curriculum research) │
└─────────────────────────────────────────────────────────────┘
Technical Highlights
- Scheduling Engine (
computeOpenDeepWorkSlotsClient()): Runs client-side and respects routine blocks, work windows, and conflict resolution in $<50\text{ ms}$. - AI Chat & Operations: Structured
scheduleOpsJSON paired with a frontend Honesty Guard—making AI actions reliable, auditable, and self-correcting. - Native Alarms: Electron
BrowserWindow(frameless, transparent, always-on-top atscreen-saverlevel) that works across full-screen apps and all macOS Spaces. - Local-First Persistence:
localStorage+ debouncedpersistSession()for instant, offline-capable, private state management. - AI Inference: NVIDIA Nemotron-3.5-Lightning via Nebius Token Factory (OpenAI-compatible API) for low-latency reasoning and structured JSON generation.
- Live Search: Tavily Search API for real-time curriculum research.
📐 Mathematical Formulation
The scheduling algorithm solves a constrained 0-1 integer linear optimization problem over discrete time slots:
$$ \begin{aligned} \text{maximize} \quad & \sum_{i=1}^{n} w_i \cdot x_i \ \text{subject to} \quad & \sum_{i=1}^{n} d_i \, x_i \leq T_{\text{available}} \ & x_i \in {0,1} \quad \forall i \in {1, \dots, n} \ & \text{routine constraints: } \forall r \in R, \; \forall t \in [r_s, r_e), \quad x_t = 0 \ & \text{work windows: } \forall t \notin [w_s, w_e) \cup [a_s, a_e), \quad x_t = 0 \end{aligned} $$
Where:
- $x_i \in {0, 1}$ indicates whether module $i$ is scheduled,
- $w_i$ is the priority weight of module $i$,
- $d_i$ is the block duration in minutes,
- $T_{\text{available}}$ is the total available deep-work minutes:
$$ T_{\text{available}} = \left| \big([w_s, w_e) \cup [a_s, a_e)\big) \setminus \bigcup_{r \in R} [r_s, r_e) \right| $$
- $R$ is the set of immutable routine blocks $[r_s, r_e)$, and $[w_s, w_e), [a_s, a_e)$ are the active and evening recovery work windows.
🧠 What I Learned
1. Honest AI is Harder Than Smart AI
The hardest part wasn't scheduling logic—it was honesty. LLMs love to claim they did things they didn't. I built a dual-layer honesty system:
- Backend: Strict JSON schema for
scheduleOps— invalid ops are rejected. - Frontend "Honesty Guard": Compares the AI's reply text against emitted ops. If the AI says "Moved your gym to 6 PM" but emits $0$ ops $\rightarrow$ in-app correction banner: "Heads up: nothing on the timeline actually changed. Tell me the exact task name or a time."
2. Local-First Changes Everything
No cloud sync, no accounts, no telemetry. localStorage persistence + Electron's app.asar means:
- Zero latency ($<50\text{ ms}$) for schedule mutations
- Works offline (except AI calls)
- Zero privacy surface
3. Native Alarms Require Electron
Web notifications are unreliable (throttled, blocked, and hidden in full-screen mode). Electron's BrowserWindow with alwaysOnTop: true and visibleOnAllWorkspaces: true creates a native overlay that slides in from the right edge on all workspaces, even during full-screen Chrome or Zoom.
4. AI as a Scheduler, Not a Chatbot
Treating the LLM as a structured operation emitter (not a conversationalist) changed everything. The system prompt enforces deterministic operations:
{
"op": "move",
"find": "Python learning",
"to": "16:00",
"day": 0
}
The LLM becomes a reliable API, not just a conversational partner.
⚔️ Challenges Faced
Honesty vs. Helpfulness Tension
- Problem: LLMs want to please ("Yes, I moved it!" when nothing changed).
- Solution: Strict schema validation + frontend Honesty Guard that publicly flags when conversational claims don't match emitted
scheduleOps.
Global Alarms in Electron
- Problem: Standard windows are blocked from overlaying full-screen macOS spaces.
- Solution:
setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })+setAlwaysOnTop(true, 'screen-saver')+ notarization-ready build config.
AI Scheduling Conflicts
- Problem: User says "Move Python to 4 PM" when 4 PM has an existing routine block.
- Solution:
computeOpenDeepWorkSlotsClient()runs client-side, respecting routine blocks, work windows, and routine gaps. The server emits intent; the client resolves conflicts.
Tavily + Nemotron Latency
- Problem: Tavily ($2\text{–}3\text{s}$) + Nemotron ($3\text{–}5\text{s}$) = $\sim 8\text{s}$ wait for "Add goal."
- Solution: Parallelized Tavily calls, streamed Nemotron responses, and built a progressive UI ("Researching..." $\rightarrow$ "Synthesizing syllabus..." $\rightarrow$ "Scheduling...").
Session Persistence Across Reloads
- Problem: Electron + Next.js hydration mismatch on
localStoragereads during SSR. - Solution:
useEffecthydration gate + debouncedpersistSession()on every state change + headerReloadaction.
- Problem: Electron + Next.js hydration mismatch on
📊 Results & Benchmarks
- Schedule mutation latency: $< 50\text{ ms}$ (local)
- AI response (chat): $2\text{–}4\text{ s}$ (Nemotron-3.5-Lightning via Nebius)
- Goal $\rightarrow$ Schedule pipeline: $5\text{–}8\text{ s}$ (Tavily + Nemotron + auto-scheduling)
- Alarm reliability: $100\%$ (native Electron overlay window)
- Data privacy: $100\%$ local (only explicit AI queries leave the device)
- Binary size: $\sim 295\text{ MB}$ (macOS ARM64
.dmg)
🚀 What's Next
- Windows/Linux builds (Electron Forge multi-platform)
- Mobile companion (React Native + local sync)
- Plugin system (custom tools: Jira, GitHub, Notion)
- Team workspaces (encrypted sync via CRDTs)
- Voice interface (Whisper + TTS for hands-free control)
🔗 Links
- Repository: github.com/shoumik4571/Talverin
- Release (DMG): v1.0.0
- Demo Video: YouTube
Talverin — AI that acts. Local-first. Built with NVIDIA Nemotron-3.5-Lightning via Nebius Token Factory + Tavily Search.
Built With
- ai-agent
- ai-assistant
- ai-scheduling
- desktop-app
- electron
- electron-app
- framermotion
- hackathon
- local-first
- nebius-nvidia-hackathon
- nebius-token-factory
- nemotron-3-5-lightning
- nextjs
- nvidia-nemotron
- personal-ai
- personal-ai-assistant
- productivity-tool
- react
- tailwindcss
- tavily-search
- typescript