sarathi सारथि

Changelog

Every change to sarathi, newest first. Releases are git tags (all tags, GitHub releases); the source of this page is CHANGELOG.md.

0.3.0(2026-11-30)release ↗

Phases 3 to 9: the rest of the plan.

  • Features plug in (apps/daemon/src/features/*.ts): each brings its routes, MCP tools, jobs, chat actions, planner context and CLI. Migration 0001 adds every table they need.
  • Phone app (apps/mobile, Expo): Kurukṣetra, Saṃvāda with hold-to-talk, Sandhyā, Artha, Plan, Progress, Rest and About, offline outbox with client ids, true dark plus parchment light; native module with screen time, Health Connect, five Glance widgets (tap-to-complete), rest-timer notification and hourly sync. Daemon: the phone bridge over ekatva (app:sarathi): api, upload, usage.upload, health.upload, plays.upload, idempotent writes, and today pushed to the phone after every change.
  • Voice: hold-to-talk. Laptop Super+t popup (Vyom), sarathi talk, /api/talk (streamed), /api/speak, /api/voice/parse, /api/voice/status, MCP sarathi_speak; local whisper.cpp on the GPU (Vulkan) and Piper with one voice per mode, swappable for any OpenAI-style speech API in ~/.config/sarathi/voice.json; spoken messages keep their audio.
  • Google Calendar both ways (a Sārathi calendar, incremental sync, moves and deletes flow back, clash re-plan, events by voice).
  • Rhythm: nightly predictions and deviations with a predictability trend; patterns; weekly review, monthly letter and Sārathi's report card; burnout guard, observe-first and life modes; lighter plans enforced; the System layer (stats, quests, tapas with rest days, titles, rewards); assessments; a pinned voice and crisis safety (Tele-MANAS 14416); the Kāla page.
  • Style (Rūpa): seasonal palette, wardrobe by palette fit, occasion, colour and type, today's outfit, hair and skin care from your own routine and products, a shopping list. Darśana: pictures of your future self and try-ons, always labelled imagined. Food (Anna): meals from a photo or a sentence.
  • Gym (Vyāyāma): a 71-exercise library with setup, tempo, breathing, mistakes, variations and cues; places and equipment (proposed from a photo); model-built programmes with double progression and deloads; rest decided per set and learnt from what you do; a rest timer pushed to the phone; the workout completes the gym karma. The page has today's session, the library with a 3D mannequin, history charts and the rest analysis.
  • Kuṇḍalī: the 12-house life chart from your data. Career (Kauśala): the skill map (fresh, fading, outdated) and what to learn next. Books: Vāgdevī reading and highlights, book discussions. Memory search over everything.
  • Emit: $XDG_RUNTIME_DIR/sarathi/emit.sock takes events from every Vayu tool; clients in clients/ (Python, Go, TypeScript), docs/emit.md.
  • The dashboard in depth: Kuṇḍalī, Vidyā, Kurukṣetra, Sākṣī, Ātmā, Rūpa, Darśana, Anna, Vyāyāma and Kāla pages with charts; lists searchable and sortable.
  • Models: a native Gemini provider (generateContent, pictures in and out, JSON mode, prices for the cap); Gemini is the default for every job, OpenRouter and the agent CLIs are fallbacks.
  • Product groundwork: access tokens for a server mode (SARATHI_SERVER=1), sarathi export, sarathi forget-everything, a nightly pg_dump kept 14 days (restic offsite when set up), deploy/ with Docker Compose and Caddy.

0.2.0(2026-11-30)release ↗

  • API: write routes for facts, visions, goal status and deviation answers; more sorts (facts by name, reviews by mood and energy); chat results carry the action details.

Phase 2: Sākṣī, the watchers. They write what they see into events.

  • packages/sources (@sarathi/sources): every watcher is event-driven (nothing polls), batches its writes, restarts a dead child with backoff and never takes the daemon down.
  • Music: every MPRIS player through playerctl --follow; one music/play event per stretch of a track played (player, artist, title, album, length, url without its signed query, listened ms). Off when playerctl is missing.
  • Agent chats: Claude Code transcripts (~/.claude/projects, every vesha profile, CLAUDE_CONFIG_DIR) and Codex sessions, watched with inotify and read from a byte offset kept in ~/.local/state/sarathi/agents.json. Each typed prompt and each text reply is an agent/user or agent/assistant event (project = the folder the session began in, text up to 4000 chars); tool calls, tool results, thinking, sub-agents and notices are skipped. The first run imports the last 30 days.
  • Laptop screen time: sway window events (swaymsg -t subscribe) as screen/focus sessions per window and title; a session ends on the next focus, its window closing, or 30 minutes with no window event. Finds sway's socket when SWAYSOCK is stale, and waits for sway when it isn't running.
  • API: GET /api/events (source, kind, from, to, q search, sort newest/oldest, limit), GET /api/sakshi/summary?day= (music minutes and top artists, agent prompts per project, screen minutes per app, in the user's timezone, sessions clipped at midnight), GET /api/sakshi/status.
  • MCP: sarathi_sakshi_summary and sarathi_events (24 tools).
  • CLI: sarathi watch status, sarathi watch summary [day], sarathi events.
  • SARATHI_WATCH=off (or a list such as music,agent) in the daemon's environment turns watchers off.

0.1.0(2026-11-30)release ↗

Phase 1: the core.

  • Postgres schema: the user, facts, visions, goals, plan versions, karma and feedback, evening reviews, Saṃvāda messages, watcher events, budgets, expenses, deviations, the verse library, model calls.
  • The day: karma, feedback, skip as a deviation, move; puṇya, tapas, 18 adhyāyas.
  • Saṃvāda: chat that asks about gaps, learns facts and acts (expenses, karma, reviews, deviation answers).
  • The planner: builds a day as a new plan version; runs at 23:00.
  • Money: budgets, the daily allowance, runway, the nightly expense log.
  • The verse library: the Bhagavad Gītā imported from a published dataset.
  • The model layer: OpenAI-compatible APIs and agent CLIs, fallbacks, cost cap.
  • MCP (22 tools, the intake prompt) through pranali; the CLI; systemd units.
  • The dashboard.