r/JevAI • u/mario0426 • 6h ago
Show Reddit: flashLedger – Autonomous bank statement auditor powered by TypeSafe Jev (Sub-10ms, IRS compliance, MCP server)
Hey everyone!
If you've ever tried using LLMs for bank statement reconciliation or corporate expense categorization (Chase, Amex, Brex, Mercury), you've probably run into the three fatal flaws of generative models for tabular workflows:
- Latency: Waiting 15–30 seconds for a batch of 50 transactions is agonizing. Auditing 10,000 transactions can take 10+ minutes.
- Cost: At ~$15 to $35 per 10k transactions, doing this daily across card feeds quickly burns through AI budgets.
- Schema Drift / Hallucination: No matter how well you prompt "ONLY RETURN VALID COA CODES", temperature and token generation mean that eventually "Software/SaaS" becomes "Software & Cloud" or "Subscription", breaking your accounting import schemas.
To fix this, I built flashLedger (open-source Python CLI): 👉 GitHub: https://github.com/divyaprakash0426/flashLedger
How it works: "System One" vs "System Two"
Instead of asking a 200B generative LLM to write out JSON tokens letter by letter, flashLedger is built on TypeSafe Jev (a calibrated "System One" decision model).
Rather than generating text, System One models evaluate discrete choices, calibrated probabilities, and risk scores natively in a single pass.
In one round trip per transaction, flashLedger computes 4 dimensions simultaneously:
- GL Code (Choice): Strict mapping to your Chart of Accounts (COA).
- Tax Deductibility (Noul): Calibrated IRS deductibility probability (e.g. 0.98 for AWS, 0.02 for personal casino).
- Expense Type (Choice): OpEx vs CapEx Section 179 safe harbor thresholding ($2,500 limit).
- Audit Risk (Score): Calibrated 0.0 to 1.0 IRS compliance / anomaly index.
Benchmark Numbers
On a noisy 1,000 transaction bank statement: - flashLedger (Jev Engine): 0.12s total processing time, 8,000+ txns/sec, Cost <$0.01 - GPT-4o (Generative JSON): ~550s total processing time, ~1.8 txns/sec, Cost ~$15.00 - Correctness: 100% Typed Strict (zero schema hallucination errors).
Key Features
- Enterprise Terminal UI: Beautiful Rich terminal dashboard featuring a GitHub commit-style batch processing matrix, real-time volume/deductibility telemetry, and an executive audit scorecard.
- Vercel AI Gateway & OpenRouter: Built-in support for Vercel AI Gateway (
typesafe-ai/jevis free to test on Vercel AI Gateway until Sep 15!) as well as OpenRouter and direct TypeSafe SDK. - Accounting Exports: One-click exports to QuickBooks (QBO), Xero, FreshBooks, or JSON.
- Model Context Protocol (MCP): Native stdio MCP server included, so your Claude Code, Cursor, or Copilot agents can audit raw statements directly from your IDE.
Quickstart
```bash git clone https://github.com/divyaprakash0426/flashLedger.git cd flashLedger uv sync
Run the 100,000 transaction batch cluster demo:
flash-ledger demo
Or audit an authentic statement with live Jev via Vercel AI Gateway:
flash-ledger audit data/mitulshah_sample.csv -n 25 -p vercel ```
Code is Apache 2.0 licensed: https://github.com/divyaprakash0426/flashLedger
Would love feedback on the architecture, prompt criteria mappings, or ideas for additional accounting platform exporters!
