About
## Challenges we ran into
One of our main challenges was designing the system to make financially optimal decisions without compromising liquidity. A decision that captures an early-payment discount may look profitable in isolation, but using too much cash can create a future liquidity shortage. We addressed this by introducing a dynamic safety reserve and cash-depletion waterfall, while evaluating multiple actions such as discount capture, bank financing, supplier financing, payment at maturity, delay, and cash retention. Another hurdle was making the ML prediction useful in the actual decision process rather than keeping it as a standalone model, so we integrated the payment-delay prediction into the portfolio allocation engine. Finally, we needed the system to be understandable to finance executives, so we added a 30-day cash-flow forecast and an explainability layer that provides the reasoning and multi-objective scores behind each decision.
## The problem it solves
The Working Capital Management Agent helps finance and treasury teams make faster and safer invoice-payment decisions by automatically evaluating cash availability, invoice discounts, supplier importance, payment delays, and future cash-flow requirements. It can identify opportunities to capture early-payment discounts, choose between internal cash, bank financing, supplier financing, or delayed payment, protect critical supplier relationships during cash shortages, and maintain a safety liquidity buffer. By forecasting the company’s 30-day cash position and providing an explanation for every decision, it reduces manual financial analysis, improves cash utilization, prevents avoidable liquidity risks, and gives executives a clear, transparent basis for treasury decisions.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.








