Building an AP Agent With Hindsight Memory: Human Decisions as the Write Boundary
rharikareddy17 · reddit · 2026-09-30
The author built an accounts-payable agent that uses Hindsight as a persistent memory layer for invoice approval workflows.
The real problem wasn't invoice matching — it was what happens when a similar invoice exception reappears but the system has forgotten how a human handled it before.
Workflow: Invoice + PO → detect exception → recall similar past decisions → explain context → human decides → retain the decision → recall it next time.
Key design principles:
- The AI retrieves and explains past decisions but never makes the final approve/reject call
- Human decisions form the write boundary — only an explicit reviewer action becomes organizational memory
The article also covers why decisions are remembered instead of whole documents, how Hindsight's retain/recall model fits in, how similar cases are retrieved, and how the UI separates evidence, memory, and decisions.
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