An AP agent that recalls past invoice decisions before judging new exceptions
spoorthi_4240 · reddit · 2026-09-30
The author built an Accounts Payable agent with persistent memory via Hindsight. Motivation: a normal AP workflow detects invoice/PO quantity mismatches but doesn't know the same vendor had a similar discrepancy three months ago (partial delivery, approved and paid).
The architecture separates the standard workflow from the memory layer: the agent processes the current invoice while the memory layer stores exception reasoning (what happened, why, evidence, approver, outcome) and retrieves similar cases for new exceptions. The key principle: previous decisions are context, not truth — an approved +10-unit case with a goods receipt doesn't mean a +20-unit case without one should auto-pass.
Lessons: storage without use isn't memory; retrieved info must change the agent's next action; failed investigations are also worth retaining.
Related event: Developers Share Long-Term Memory Designs for AP Invoice Agents(5 posts)→
More from coding & agent
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Every's Frontier team on Claude Fable 5.2: overnight agent jobs, cost tradeoffs, real builds — every · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16