MITRA - An Agentic AI Operating System for Chartered Accountancy Practice
Author: CA. PrabhavaP.Hegde
Author: CA. PrabhavaP.Hegde
MITRA is a desktop-native, privacy-first Agentic AI assistant purpose-built for the day-to-day workflow of a Chartered Accountant. Rather than being a generic chatbot, it acts as an orchestrator that understands a practitioner's intent in plain language and then drives the right tool — parsing bank statements, classifying ledgers, pulling live data from Tally and Zoho Books, answering questions from a cited firm knowledge base, and drafting client communication — all while keeping sensitive client data on the practitioner's own machine.
The guiding philosophy is simple: a CA's professional judgement cannot be replaced by AI; it can only be amplified. MITRA takes over the repetitive, high-volume, low-judgement work so that the professional is freed to do the thinking only a professional can.
A modern CA practice runs on a handful of painful, recurring frictions that consume billable hours and invite error:
The net effect: skilled professionals spend a disproportionate share of their day on mechanical work, and the safest AI tools (public LLMs) are precisely the ones that cannot be trusted with client data.
MITRA solves this as an Agentic AI Operating System that sits locally on the CA's desktop. It combines a conversational and voice interface with a disciplined tool-execution engine, so that natural-language requests are translated into deterministic, auditable actions against the practitioner's real data.
The following are the primary use cases MITRA delivers today:
| Use Case | What it does |
| Batch Bank-Statement Accounting | Ingests bank-statement PDFs (Kotak, Axis, RBL & generic formats), extracts transactions, and uses an ML ledger classifier to auto-suggest the correct ledger for each entry, ready to post to Tally or Zoho. |
| Live Books Retrieval | Answers questions like “show me the trial balance” or “what is this ledger's balance” by querying Tally Prime (XML) or Zoho Books (REST API) directly — never guessing. |
| Cited Knowledge Q&A | Answers statutory and firm-specific questions from a local knowledge base with source citations, honouring the knowledge gate before any external fallback. |
| Client Communication Drafting | Drafts routine client e-mails and follow-ups from real, verified data — echoing sent/returned content deterministically, never fabricating confirmations. |
| Hands-Free Voice Assistant | Wake-word activation (“Hey MITRA”) with local speech-to-text and text-to-speech for hands-free operation during review work. |
| Audit & DPDP Dashboard | A dedicated screen exposing the encrypted audit trail and data-protection posture for compliance and self-review. |
MITRA is a two-process desktop application: an Electron/React front-end and a local Python (FastAPI) sidecar that hosts the agent brain. They communicate over loopback only — nothing is exposed to the network.
Renderer (React UI) ⇄ Electron Main (IPC) ⇄FastAPI Sidecar ⇄ LangGraph Agent
Inside the agent, every request passes through a disciplined graph:
When work must be done, MITRA prefers the most reliable engine and treats the LLM as a last resort:
Python compute tool → Excel engine→ Tally / Zoho API → Web search →LLM (last resort)
| Layer | Technology | Role |
| Front-end | Electron 42, React 19, TypeScript, Vite | Desktop shell & UI |
| Design System | Vanilla CSS — “Zenith Terminal” (Void Black / Neon Cyan, 0px radius), Three.js plasma orb | Visual identity |
| Backend Sidecar | Python 3.12, FastAPI (loopback 127.0.0.1:7420) | Agent host & API |
| Agent Engine | LangGraph (StateGraph) | Orchestration graph |
| Model Router | Groq · Gemini · Together AI (3-tier, circuit-breaker) | LLM reasoning |
| Privacy | Microsoft Presidio Analyzer | PII redaction |
| Memory | LanceDB (local vector store) | Semantic recall |
| Storage / Audit | SQLite (WAL mode, Fernet encryption) | Audit log & state |
| Voice | faster-whisper (STT), edge-tts (TTS), OpenWakeWord | Hands-free interface |
| Integrations | Tally Prime (XML), Zoho Books (REST API v3) | Live accounting data |
MITRA is engineered for a profession bound by confidentiality. Client data never leaves the practitioner's control by default:
On first launch the sidecar auto-creates its config at %APPDATA%\MITRA\config\settings.json. Add your provider keys under:
Terminal 1 — Python sidecar:
cd python
.venv\Scripts\python.exe main.py --host 127.0.0.1 --port 7420
Terminal 2 — Electron app:
npm run dev