ingest

ingest is a command for Claude Code from CPUtester5465/countbean-plugin. It costs 31 tokens per session (1,125 once invoked), scanned A, original, MIT.

A command for turning bank statements, card exports, receipts, or plain-text money notes into checked double-entry records in Countbean, a bookkeeping system.

In plain words
What is it for?
Use it to import CSV, OFX, QFX, PDF, receipt images, or described transactions, review proposed entries, and add approved records.
Why use it?
It keeps different source types on the correct import path and flags uncertain details before anything is added to the books.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the countbean plugin — 1 skill, 7 commands, 1 MCP server shipped together

Good fit Use it to import CSV, OFX, QFX, PDF, receipt images, or described transactions, review proposed entries, and add approved records.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cputester5465/countbean-plugin/ingest
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CPUtester5465/countbean-plugin

Made for: Claude Code.

Or install countbean, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ingest

README.md
[![agentmods](https://agentmods.dev/badge/commands/cputester5465/countbean-plugin/ingest/github.svg)](https://agentmods.dev/commands/cputester5465/countbean-plugin/ingest)
Your own site
<a href="https://agentmods.dev/commands/cputester5465/countbean-plugin/ingest"><img src="https://agentmods.dev/badge/commands/cputester5465/countbean-plugin/ingest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ingest

Your own site · 80×15
<a href="https://agentmods.dev/commands/cputester5465/countbean-plugin/ingest"><img src="https://agentmods.dev/badge/commands/cputester5465/countbean-plugin/ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01125
Opus 5.5 $0.00012 $0.00450
Sonnet 5.5 $0.00006 $0.00225
Haiku 4.5 $0.00003 $0.00112

Measured 28d ago against content hash ad528458404c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ingest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/commands/ingest.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ingest the data referenced by $ARGUMENTS into the user's Countbean book.

$ARGUMENTS may be a file path (CSV, OFX/QFX, PDF, an image of a receipt), a directory of such files, or a plain-language description ("I got paid $4000, spent $200 on software"). If it's empty, ask the user what to import.

CSV, OFX and QFX go through the importer, not through you

propose_transactions parses statements. Do not read a CSV yourself and work out which column is the amount: that answer changes between runs, and the tool's does not.

A RECEIPT IS NOT A STATEMENT and takes the other path. Call stage_receipt with the path first — a receipt is the source document for the entry, and it is kept as evidence outside the book. Read the image yourself (the tool does no OCR, deliberately), then call propose_receipt_transaction with what you read and an honest confidence for each field. It returns a proposal with anything uncertain flagged rather than filled in, and it will tell you BEFORE the write if the account is pinned to another currency or was never opened. Show the proposal to the user, ask about anything flagged, and only then pass its beancount to add_transactions unchanged.

A PDF bank STATEMENT is neither: extract the transactions from it (date, payee, amount, and whether each line is a debit or credit).

  1. Hand the bytes to the tool. Base64 the file and call propose_transactions(content=<base64>, account="Assets:Checking", filename="<name>"), naming the account the statement belongs to. If you were given a statement_id (stm_…), pass that instead of content — the file is already stored on the book. It parses on the book and returns a SUMMARY with a proposal_id: counts, date range, totals, the column mapping, what it flagged, and each distinct payee once. It never returns the rows and never writes.

  2. Read mapping before you read the numbers. It says which column was taken as the date, the description and the amount; which of the three amount shapes it found (a signed column, separate debit/credit columns, or a running balance); which date format and decimal separator; and whether a positive number was read as money in or money out, with the evidence — balance_check says whether the running balance confirmed it and how many rows it contradicted. If any of it is wrong, call again with the override (amount_shape, columns, date_format, delimiter, decimal_separator, sign, opening_balance) — never by editing the amounts.

  3. Categorise by payee. This is your job and the tool deliberately does not do it. Choose an account for each entry in payees, following the countbean-accounting skill. Payees you leave out stay on Expenses:Unclassified / Income:Unclassified. Flagged rows (!) are rows the file itself could not settle; say so rather than guessing.

  4. Preview, then commit. Show the user counts, the date range and anything flagged. Once they agree, call commit_proposal(proposal_id, overrides='{"payees": {"<payee>": "<account>"}}'). It writes the parsed rows itself — do not re-type them into add_transactions. The server validates with bean-check and commits to git as one commit; rows already in the book are skipped. If it names accounts that are not open, confirm them with the user and call again with open_new_accounts=true. If it is refused, read the error, fix the overrides and retry — never leave the user thinking it saved when it didn't.

  5. Report back the commit id, how many landed, how many were skipped as already imported, how many are still unclassified, and anything flagged. Suggest /countbean:report to see the updated numbers.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +5 lines ad528458404c
  2. 1mo ago First seen · 68 lines · 31 tokens per session scan A f0e7c1899961

Subscribe to this mod's changes

ingest is a command published in the GitHub repository CPUtester5465/countbean-plugin (34 stars, last pushed 18d ago), licensed MIT. It adds 31 tokens to every session and 1,125 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.