██████╗ ██████╗ ██╗███╗ ███╗███████╗██╔══██╗██╔══██╗██║████╗ ████║██╔════╝██████╔╝██████╔╝██║██╔████╔██║█████╗██╔═══╝ ██╔══██╗██║██║╚██╔╝██║██╔══╝██║ ██║ ██║██║██║ ╚═╝ ██║███████╗╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚══════╝
Processing Reports for Intelligence, Metrics & Extraction. An offline-first, SEBI-compliant analysis agent that extracts, structures, and reports financial data with deterministic precision.
pip install prime-agentEvery feature designed with SEBI compliance, Ind AS standards, and Indian corporate reporting in mind.
Extract text and tables from annual report PDFs using PyMuPDF + pdfplumber with precision.
Heuristic + LLM-assisted extraction of P&L, balance sheet, and cash flow line items.
Automatic calculation of ROE, ROA, D/E, margins, and 20+ financial ratios.
Auto-generated .xlsx workbooks with Inputs, Ratios, and Summary sheets.
Built-in compliance — refuses buy/sell/hold recommendations, target prices, and portfolio advice.
Runs entirely on your machine. No data leaves your system. Complete air-gap support.
A single command extracts, structures, computes ratios, and generates both a Markdown report and an Excel workbook — all SEBI-compliant, all offline.
A modular, deterministic pipeline from PDF input to structured outputs.
agent/Controller, state, guardrails
tools/PDF, financials, Excel, sandbox
llm/Ollama client, prompts, skills
skills/Ind AS, SEBI, user custom
Three commands. That's all it takes.
PRIME is engineered with regulatory compliance at its core. Guardrails are enforced at both the prompt and response level — not as an afterthought, but as architecture.
Start extracting insights from Indian annual reports today. Fully open source. Fully offline. Fully compliant.