# Buff Your Money

> A personal and family finance app that the user's AI agent fills in from a chat message, with budgets that follow payday, zakat, the tax asset list and a 30 day undo for every agent action.

People stop tracking money because typing every expense is tedious and easy to forget. Buff Your Money turns it around: the user writes "makan siang 35rb pakai gopay" to their agent in WhatsApp or Telegram, and the app files it. There is no language model inside the app. The agent does the language work, and the app does parsing and money math in deterministic code, so a number is the same every time.

- One chat line to the agent is enough: BYM files the amount, category, wallet and date, and replies with what is still safe to spend.
- No language model inside the app: the parser and every money formula are deterministic code, so the same input always gives the same number.
- Every change the agent makes is logged with the state before it and can be undone for 30 days.

- 109 MCP tools for the user's agent
- 0 language models inside the app
- 30 days to undo any agent change

- Role: Founder & CEO, designer and builder
- Company: AgentBuff
- Period: Since Sep 2026
- Stack: Next.js 16, React 19, TypeScript, Tailwind 4, PostgreSQL 16, Drizzle ORM, decimal.js, pg-boss, MCP, Vitest, Playwright, Docker Compose
- Live app: bym.agentbuff.id (https://bym.agentbuff.id)
- Showcase on GitHub: nugrahalabib/agentbuff-bym-showcase (https://github.com/nugrahalabib/agentbuff-bym-showcase)

## The problem

Most people who start tracking their money stop after a few weeks. Logging every expense by hand is tedious, it is easy to forget, and most money apps still ask the user to open the app and type each line. Apps that accept chat input tend to offer a thin dashboard, and full money apps often lock basic features behind paywalls or ads.

Indonesian households also have needs that rarely live in one place: budgets that follow the payday instead of the calendar month, admin fees on transfers and top ups, paylater, arisan, THR and Lebaran, zakat, and the list of assets and debts for the annual tax return. Families want one shared picture, while each person keeps a private wallet.

Trust is the last piece. Financial data is specific personal data under Indonesia's personal data protection law, people are right to be wary of apps that ask for bank passwords, and **an AI agent that can change records needs a clear trail and a way back**.

*What changes for the user*

| Before | With Buff Your Money |
| --- | --- |
| Open an app and type every expense, then give up after a few weeks | Send one chat line; BYM files amount, category, wallet and date |
| Monthly budgets that ignore when the salary arrives | Periods follow payday, with a daily safe-to-spend figure |
| Bank login sync that is unlicensed or breaks | Statement import from PDF, CSV or Excel with a preview before anything is saved |
| Zakat and the tax return asset list worked out by hand once a year | Zakat computed from the book; asset and debt list with tax codes ready to copy |
| A chatbot that answers money questions with numbers it made up | The agent must call BYM tools; every number comes from deterministic code |
| Changes made by an AI are hard to trace or reverse | Every agent change is logged and can be undone for 30 days |

## One book for a household

Each purchase opens a household book for up to **six people**. The owner signs in with AgentBuff and invites the rest of the family, each with a role and their own login. Private wallets stay private: they are hidden from every other member, the owner included, and each member decides whether their records reach the agent at all. Anyone can try the whole app first in a guest demo filled with six months of a fictional family's finances, removed automatically after three hours.

*Who does what in Buff Your Money*

| Role | What they do |
| --- | --- |
| Owner | Buys BYM on the AgentBuff marketplace, owns the book, invites members, connects the agent and controls security, export and deletion |
| Manager | Records and edits shared transactions and sets budgets, goals, bills and rules |
| Recorder | Logs spending into shared wallets and can change only their own entries for 30 days |
| Viewer | Sees shared balances, net worth and reports without changing anything |
| AI agent | The user's AgentBuff agent in WhatsApp or Telegram: records, answers with BYM's numbers, sets BYM up in chat and can undo its own recent actions |

## From a chat message to a record

**Getting started without opening the app** (Every step after the purchase can happen in the chat app the user already has open.)
1. Buy and sign in: Bought on the marketplace, signed in with AgentBuff
2. Auto-connect: AgentBuff connects the agent to the owner's book
3. Consent in chat: The agent asks first, in the user's own words
4. Set up in chat: Payday, wallets, a budget and a first goal
5. Record: One sentence becomes one ledger entry
6. Review or undo: Any agent action can be reversed for 30 days

When the user writes "makan siang 35rb pakai gopay", the agent makes a single tool call with the sentence. BYM checks the token, the owner's access and the user's consent, reads the amount, category, wallet and date in one database transaction, and returns a short Indonesian summary with the new **safe-to-spend** figure and a link to the entry. If the user sends the same message twice by accident, the second call returns the first result instead of a second expense.

*Quick entry reads "makan siang 35rb pakai gopay" as Rp35.000, eating out, GoPay, today.*

The same parser runs in the browser for the live preview and on the server for the record, so the app and the agent read a sentence the same way.

- **Local amounts**: forms such as 25rb, 1,5jt and 2M for miliar, and slang like goceng, which asks for confirmation.
- **Several items**: "bensin 50rb, parkir 5rb cash" is saved together or not at all.
- **Transfers with fees**: "top up gopay 100rb dari bca admin 1000" becomes two linked legs plus the fee.
- **No guessing**: split bills and borrowing always come back as a question.

## Inside the app

Chat is the fast way in, and the app is where the household sees the whole picture. The home screen answers one question first: how much can I still spend until payday. Everything else is one tap away.

**Home**
Safe to spend in total and per day until the next payday, with a link that explains where the number comes from. Below it: the payday ritual that sets money aside for goals and bills first, the review inbox, rule-based insights, upcoming bills, budgets and goals. One button hides every amount on screen.

*Home for the fictional Pratama family: safe to spend, the payday ritual, review inbox and insights.*

**Budgets**
Budgets follow the payday period and show a calm status per category instead of red warnings: safe, or predicted to overshoot at the current pace. Funds can be moved between categories and the budget can be filled from history.

*Budget for the current payday period with a status per category.*

**Goals**
Goals hold money in a dedicated wallet or a virtual pocket, show a projected completion date and the monthly amount needed to hit a deadline. Bills, subscriptions, salary and routine transfers are scheduled, and recurring spending is suggested from history.

*Goals for an emergency fund, a holiday and Lebaran, with projected dates.*

**Debts**
Mortgages, credit cards, paylater and personal loans, with payments split into principal and interest. A payoff simulator compares avalanche, snowball or a custom order with an extra monthly amount, and arisan rounds have their own tab.

*Debts and the payoff simulator with an extra monthly amount and the payoff order.*

**Financial independence**
The Merdeka page turns the book into a long-term plan: the financial independence number, the projected year and Coast FI. A Monte Carlo run of 1,000 trials shows the spread of outcomes next to the plan. It is seeded, so the same inputs give the same band every time.

*Monte Carlo band against the plan line, with the assumptions written out.*

## Built for Indonesian money

BYM computes **zakat** from the user's own records: zakat on wealth with a nisab from a gold reference price and haul tracking, zakat on income, zakat fitrah and fidyah. It builds the **asset and debt list for the annual tax return** as of 31 December, with codes, year and cost of acquisition, ready to copy or download. A seasons page follows the Hijri calendar for THR, Lebaran and other yearly costs.

Some things are left out on purpose. Logging in to banks or e-wallets, advice to buy or sell a financial product, rankings of products and bill payment are regulated activities in Indonesia, so BYM describes the user's position without recommending anything.

## Import instead of bank login

*A sample KlikBCA statement read on the device: nine new rows ready to save.*

BYM never asks for bank, e-wallet or OTP credentials. Users import the statements their bank already gives them.

- KlikBCA and BRImo CSV, Livin' by Mandiri XLSX, BCA and Mandiri PDF, generic CSV or Excel, and exports from other money apps.
- Files are read on the device, including password-protected statements.
- A preview flags duplicates and transfers between the user's own wallets before anything is saved.
- Each import is one batch that can be cancelled and undone later.

*Daily, weekly and monthly PDF reports are laid out in A5 portrait for a phone: the answer first, the details after.*

## An agent with a way back

There is no language model inside BYM. The user's own agent does the language work, and the server instructions tell it never to compute numbers itself, to ask the user when a tool returns a question, and never to recommend buying or selling a financial product.

Since 1 October 2026 the user's chat command counts as approval, so recording runs at once. Deletions and bulk changes run only when the token carries an extra permission, and bulk changes can be previewed first. **Every agent write is stored with the state before and after**, and it can be undone for 30 days from the Agent AI page, or by the same agent within 24 hours. An undo is refused if the record was changed again after the action, so it never overwrites newer work.

*Agent activity: the transfer was undone and is struck through; the token prefix is masked.*

The Agent AI page lists every agent action of the last 30 days with Undo and View, plus the connection tokens with their last use and a revoke button.

*Household members with roles and an invitation form.*

When a member joins, the consent screen explains that the owner may connect an AI agent. The member chooses whether their records are included for the agent, and the default is no.

*Home on a phone, where most entries are reviewed.*

*Agent activity with Undo buttons on a phone.*

## How it is built

BYM is one Next.js 16 app with PostgreSQL 16 and a background worker built from the same image. The worker posts recurring items, sends reminders that respect quiet hours, refreshes prices and exchange rates and takes a nightly net worth snapshot. The MCP server lists only the tools a token may use; a full-scope token sees **109 tools** across wallets, budgets, debts, investments, zakat and tax, reports, import and household settings.

- Integer money: Amounts are stored in minor units and calculated with a decimal library in pure modules; a build guard rejects floating point money code.
- Two layers of isolation: Every query sets the book context, and PostgreSQL row level security enforces it again, with separate database roles for migrations, the app and the worker.
- Sign in with AgentBuff: OpenID Connect with PKCE. Access is checked at every entry point; when it ends the book is frozen, never deleted, and can still be exported.
- An MCP server that fails loudly: A wrong or revoked token is refused before any request is parsed, so a connection test never reports a false success. Every write carries a reference that blocks duplicates.
- Private by default: Receipt photos and files are encrypted with AES-256-GCM, logs never contain amounts or notes, and a data protection impact assessment was done before release.
- Deploys that cannot lose data: Each deploy backs up first, counts rows, runs additive migrations and fails if any table shrank. Dumps run every 6 hours and are kept 14 days.

Before the marketplace release on 1 October 2026, the app had to pass a release gate of end-to-end proofs on the live system with throwaway accounts: purchase, sign in, consent, recording from WhatsApp, freezing when access ends and recovery with the data intact.

**At a glance**
- Product: Personal and family finance app on the AgentBuff marketplace
- On the marketplace: Since 1 October 2026
- Household book: Up to 6 people, four roles, private wallets
- MCP tools: 109
- Language models inside: 0
- Undo window: 30 days for any agent action
- Out of scope: Bank login, product advice and bill payment

**Want an app your AI agent can run safely?** I build apps where the agent does the talking, the code does the maths, and people can always undo.

Source: https://nugrahalabib.com/work/buff-your-money
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
