add_expense
Play demoTry asking
- Add an expense of 12.50 at the bakery for lunch
- log 4.20 for coffee
- I spent 30 euros on groceries at Lidl
- record an expense of 8
ghost skill run ghost/expense-tracker add_expense My Expenses (F-Droid): add an expense or income to the local Budget Book, list the transactions, read balance/income/expenses totals. Local only, no account.
Agent run: finished without the skill, finished with it (not independently checked).
One recorded run each way, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
31× fewer tokens, 1.6× faster with the skill. Agent run: finished without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 55.7 s | 919,520 | 25 | finished |
| With skill: find_skill, run_skill | 35.2 s | 30,145 | 4 | finished |
Prompt: Add an expense of 12.50 at the bakery for lunch, then show my totals.
Same prompt, same phone, clean app state per side. Left: no skill, the agent drives the UI by hand. Right: find_skill + run_skill. 'ok' means the agent finished its turn; the result was not independently checked.
One recorded pair on samsung-a03s, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Control My Expenses on Android with an AI agent. Track your spending on your phone by asking an agent: add expenses and income, list transactions and read totals.
Target search phrase: AI agent expense tracker Android
Demo shows: add_expense (amount=12.50, payee=Bakery, note=lunch)
Ghost in the Droid seed skill for My Expenses (
org.totschnig.myexpenses), a full-featured open-source expense tracker from F-Droid (this skill uses its local default account, no sync). Offline, no account.
| Action | What it does | Params |
|---|---|---|
add_expense | Add an expense to the local Budget Book | amount, payee, note |
add_income | Add an income | amount, payee, note |
list_transactions | Read transactions (note, payee, amount, date) and totals | none |
get_totals | Read balance, income, expenses, transfers | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | add_expense, add_income |
| Primitives | (category/date are left at the defaults) |
| Read state | list_transactions, get_totals |
The app: F-Droid, or https://f-droid.org/packages/org.totschnig.myexpenses/. The skill:
pip install "ghost-in-the-droid>=1.6.0" # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/expense-tracker
ghost skill run ghost/expense-tracker add_expense --param amount=12.50 --param payee=Bakery --device <serial>
ghost skill run ghost/expense-tracker get_totals --device <serial>
run_skill(name="ghost/expense-tracker", action="get_totals")
# {"totals": {"account": "Budget Book", "balance": 87.5, "income": 100.0, "expenses": 12.5, "transfers": 0.0}}
Try asking: "Add an expense of 12.50 at the bakery for lunch, then show my totals."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), My Expenses 4.1.3.1. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 4.1.3.1 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on and how success is recognised, so an agent can adapt it to another app of this kind or another version.
Package: org.totschnig.myexpenses (My Expenses, GPL-3.0, version 4.1.3.1 from the official F-Droid repository, sha256-verified)
Verified: 2026-11-02 on a real Samsung phone, Android 13, 720x1600 @ 300 dpi, en-GB. Offline, no account.
Skill class: HARD. No login, no checkpoints.
Budget Book (no account or login). Transaction list: toolbar with the account name and balance, a totals strip (Income: ..., Expenses: ..., Transfers: ... as content-desc), one row per transaction ("note / payee", amount, date), and the new-transaction button (desc New Transaction (Expense)).TaType (expense/income switch), AmountEditText, auto_complete_textview (payee), Category, Comment (notes), save button fab.add_expense(amount, payee, note)New Transaction > type the amount, payee and note > save. Success: a row with that amount appears and the totals change.
add_income(amount, payee, note)Same form with the Expense/Income switch flipped.
list_transactions()Parses the visible rows; negative amounts are expenses. Returns transactions and totals.
get_totals()Reads the balance in the toolbar and the totals strip.
Money Manager Ex and similar apps share the form-then-list shape; the totals strip ids differ.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
add_expenseTry asking
ghost skill run ghost/expense-tracker add_expense add_incomeTry asking
ghost skill run ghost/expense-tracker add_income list_transactionsTry asking
ghost skill run ghost/expense-tracker list_transactions get_totalsTry asking
ghost skill run ghost/expense-tracker get_totals Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.0latest | never | >=4.1.3 | pending | 17.7 KB | untagged |