Hack4Hack

Closer 45

AP agent that plans which MSME invoices to pay before the 45-day deadline, asks suppliers, and pays only after a human approves.

Built at AgentX Hackathon 2026

Team Lumia Agents: 김태걸, 박세훈

Built with Python (standard library only), pytest, ports and adapters, optional Gemini

About the project

Closer 45 is an agent for a small manufacturer that owes micro and small suppliers. Under the (simplified) Indian MSME rule it models, a supplier must be paid within the agreed days, never more than 45. Cash never covers everyone at once, so the agent decides whom to pay first, whom to ask, and whom to tell "next run". It plans its own steps (urgency, cash budget, duplicate rows, unknown suppliers), uses three tools (ledger read, mail send, bank pay/status), remembers what it did on earlier runs, and stops at every irreversible step: the human approves an exact card with a digest per step, and the bank recomputes it. Tool failures are retried at most twice, with a bank status check before each retry. Measured on the synthetic demo ledger (7 rows, Rs 450,000 cash, Rs 50,000 reserve): paying in ledger order leaves 1 invoice past its deadline, the Closer 45 plan leaves 0. 33 tests pass; the same cycle replayed 20 times gives 1 identical result hash. Data is synthetic and the bank and mail tools are local mocks; no real money moves and no real mail is sent. The LLM only words emails; amounts, order and limits come from a deterministic kernel.

Explore hackathons