Keptcash
Overdue invoices sit unpaid because nobody knows what is blocking each one.
- My part
- Core engineer for Ledgercross: 78 of 185 commits and 56 merged PRs (case engine, AI pipeline, payment matching, evals, deploy).
- When
- 2026
- Merged PRs
- 56
- Days
- 9
- My commits
- 78
- Live
- Sep 2026
The problem
Overdue invoices stall a company's cash, and the reason each one is unpaid is scattered across the accounting system and email threads, so collection emails are guesses.
What I built
Keptcash syncs QuickBooks and Gmail, diagnoses the blocker behind each overdue invoice with evidence, drafts a targeted collection email that a human approves and sends, tracks promises and disputes, matches incoming payments and reports the dollars it recovered, with an append-only audit trail.
How
- 01
Collection case engine
A case state machine and case opener for every overdue invoice, with rule-based blocker diagnosis and an LLM fallback.
- 02
Grounded AI drafts
An LLM provider layer on Gemini in Vertex AI, hybrid retrieval over invoice documents, and a deterministic grounding checker that hard-fails any draft the evidence doesn't support; drafts wait in an approval queue.
- 03
Payments and attribution
Exact payment auto-match, an unmatched-payments queue with manual match, and dollars-recovered attribution with analytics.
- 04
Evals, tests and deploy
An eval runner with classification and diagnosis golden sets and an injection-resistance suite, Playwright e2e over every screen, role and worker loop, and production images deployed with Dokploy.
Stack
- Python
- FastAPI
- Gemini
- PostgreSQL
- Vertex AI
- Next.js
- Playwright
- Dokploy
More case studies
ScholarHub12,000+ scholarships indexed daily- OnlistlyExactly-once QR redemption
- APRON67 merged PRs in 5 weeks
TTT Autos3D Spline vehicle showcases
Indian Claypit50,000+ customers served- Ledgercross Blog Studio15 MCP tools and 12 commands
- LedgerScanResponsive from 280px to 4K
Student Management System⭐ 17 Stars, 8 Forks
Mario's Multiverse Adventure3 unique game levels
BD News Scraper & Analytics95+ newspaper spiders
Hotel Management System⭐ 15 Stars, 1 Fork
Have something in mind?
My inbox is open.