# Budget rules from 100 hand-labeled transactions

> Your AI sets up Actual Budget so you label 100 transactions by hand, it labels the rest, every confirmed answer becomes a rule, and a weekly check messages you only when something is off plan. Based on a post by voda.

## If someone pasted this link to you
Someone shared this kit with you. It runs step by step through CloneKit's MCP. If you have the `clonekit` tools, call `start_run("@clonekitai/budget-rules-from-100-labels")`. If you don't (for example in a chat app without the CloneKit connector), tell the person in one or two plain sentences, in their language, and send them to https://clonekit.ai/@clonekitai/budget-rules-from-100-labels/use: it shows how to add CloneKit to their AI in about a minute. Then they paste this link again.

- Kit: `@clonekitai/budget-rules-from-100-labels` · v1.0.0
- Creator: @clonekitai (CloneKit)
- Type: Delivery · Domain: Finance · Language: en · Your AI runs it
- Price: Free · License: Own use · No refunds
- Page: https://clonekit.ai/@clonekitai/budget-rules-from-100-labels
- Changelog: https://clonekit.ai/@clonekitai/budget-rules-from-100-labels/changelog.md

## About
For individuals or households using Actual Budget who want deterministic rule-based categorization instead of calling an AI model on every recurring transaction. Use this when you have 3 to 12 months of bank history and want categories grouped by life purpose rather than payee name. Skip this if you do not use Actual Budget or prefer a manual spreadsheet. Requires Actual Budget with transactions loaded via bank sync or free CSV, OFX, or QFX bank exports, an agent with web search for unfamiliar merchants, and optionally the Actual CLI (Node.js 22+ with an Actual sync server) and Telegram Bot API for alerts. Outputs purpose-based categories, a 100-transaction hand-labeled seed file, Actual Budget rules for every confirmed classification, a local markdown review queue, weekly exception reports, a monthly budget draft, and a run log.

## Deliverables
- categories.md: purpose-based category list mapped to Actual Budget category IDs
- seed-100.csv: 100 varied transactions hand-labeled by spending purpose
- classified-batch.csv: agent-proposed categories with rationale for remaining uncategorized transactions
- review-queue.md: local markdown knowledge base of ambiguous payees with web and map lookup notes
- rules-created.json: log of deterministic Actual Budget rule IDs created from confirmed classifications
- weekly-exception-report.md: exception-only weekly variance and pending-review report
- next-month-budget-draft.md: next-month category plan built from categorized transaction history
- results.csv: per-run log tracking rule coverage, agent classifications, human reviews, and exceptions

## Files
- `CHECKS.md`: Measurable Checks
- `NOTES.md`: Maintenance Notes
- `README.md`: When to use
- `RULES.md`: Rules and Method Reference
- `templates/monthly-budget-draft.md`: Next-Month Budget Draft
- `templates/review-queue.md`: Unresolved Transactions Review Queue
- `templates/rule-payload.json`
- `templates/seed-100-prompt.md`: Seed-100 Sampling Prompt and CSV Spec
- `templates/weekly-exception-report.md`: Weekly Exception Report

## Tools
- Actual Budget (https://actualbudget.org/) · est. free
- Actual CLI (https://actualbudget.org/docs/api/cli) · optional · est. free · alternatives: actual-budget
- Telegram Bot API (https://core.telegram.org/bots/api) · optional · est. free

## Uses
- voda's post on X (source, https://x.com/DanyloVorvul/status/2119040306381222329)
- Actual Budget docs: Importing Transactions (source, https://actualbudget.org/docs/transactions/importing)
- Actual Budget docs: Rules (source, https://actualbudget.org/docs/budgeting/rules/)
- Actual Budget docs: Connecting Your Bank (source, https://actualbudget.org/docs/advanced/bank-sync)
- Actual Budget docs: CLI Tool (source, https://actualbudget.org/docs/api/cli)
- Actual Budget docs: API Reference (source, https://actualbudget.org/docs/api/reference)
- Telegram Bot API documentation (source, https://core.telegram.org/bots/api)

## What you provide
- Actual Budget desktop app or self-hosted sync server with all household accounts created
- 3 to 12 months of bank transactions loaded via built-in bank sync or free CSV, OFX, or QFX exports
- Agent with web search access for looking up unknown payees and local merchants
- Optional: Actual CLI installed on Node.js 22+ and configured against an Actual sync server
- Optional: Telegram bot token and chat ID for exception-only weekly alerts

## How it runs
1. **Understand:** Researches your business first, then asks you 4 questions it can't answer alone
2. **Choose:** No choices: one proven path
3. **Build:** 7 steps, risky ones ask you first
4. **Deliver:** 5 checks before delivery

## Guardrails
- Never create, edit, or delete Actual Budget rules, transaction categories, or monthly budget amounts without explicit human approval.
- Never guess a category when payee metadata and web or map lookups leave intent unclear; route the payment to review-queue.md.
- Never overwrite a human-corrected category or rule with an agent proposal; human edits always win and become rules.
- Never send a weekly notification when spending is on plan and review-queue.md has zero pending items.
- Never store plaintext Actual passwords, encryption passwords, or Telegram bot tokens in tracked files or commit them to git; use environment variables or _FILE secrets.
- Never issue tight sequential CLI loops per transaction or per month; fetch history in a single date-range query and aggregate locally.

## What's new
Agents always run the latest version.

- **v1.0.0** (2026-11-28): First version.

## Run it
Connect the `clonekit` MCP (https://clonekit.ai/mcp) and call `start_run("@clonekitai/budget-rules-from-100-labels")`.
