I just open-sourced a project that demonstrates building a stateful AI agent that can analyze personal expense data through natural conversation.
What makes it interesting:
- Multi-turn context awareness - The agent remembers previous queries and can handle follow-ups like "What about the month before?" without needing to repeat yourself
- Tool calling with Gemini - Uses Vercel AI SDK's tool system with Zod schemas for structured data extraction
- Smart memory management - Doesn't bloat the context with entire datasets (important lesson learned here!)
- Anomaly detection - Built-in helpers for detecting spending outliers
Example conversation flow:
textUser


