Full Byte Developer.

Claude Code for finance: models, variance, checks

Use Anthropic's Finance plugin for variance and statements, then pin formulas so silent rounding bugs cannot hide.

Published here , updated · 7 sources

Board packs break on silent float math and unsourced filing extracts, not on a weak chat narrative. Keep Anthropic's Finance plugin for variance and statement drafts, pin Decimal or spreadsheet formulas so rounding cannot hide, and require a source URL on every extract. [1]

After this page you can run a flux pass, ship a Decimal (or integer-cents) unit-economics script with checksums, and extract named SEC lines without inventing GAAP. Related: Claude Code for accounting for JE and recon, Choose five tools for spreadsheet data when the file is local CSV. Browse the Claude Code topic.

Install Finance, then pin the period

bash
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install finance@knowledge-work-plugins
text
/income-statement monthly 2026-11
/variance-analysis opex 2026-11 vs budget

/income-statement produces a P&L with period-over-period comparison. /variance-analysis decomposes variances into drivers with narrative and waterfall-style breakdown. Paste budget and actuals for the same chart of accounts before you trust a story. [1]

You should get a flux narrative tied to named accounts, not a vibe about "opex being up."

Build unit economics as a script Claude can re-run

Ask Claude to write a small model (Python or SQL) that takes one CSV of orders and one CSV of costs, then prints contribution margin, payback, and burn with a fixed schema. Claude Code best practices say to give Claude a check so "done" is measurable. [4]

A useful check set:

  1. Row count of inputs equals the export count from your source system.
  2. Sum of cents equals the bank or processor settlement total for that day.
  3. Every division uses Decimal (or integer cents), not binary float. [5]
python
from decimal import Decimal, ROUND_HALF_UP

cents = Decimal("0.01")

def money(value: str) -> Decimal:
    return Decimal(value).quantize(cents, rounding=ROUND_HALF_UP)

You should see the same totals when you re-run the script tomorrow on the same files.

Extract SEC or filing facts without inventing numbers

For public comps, open the filing on SEC EDGAR first, then ask Claude to extract only the line items you name (revenue, operating income, share count) with the form type and filing date beside each number. [3]

Do not ask Claude to "estimate" a missing GAAP line. If the filing does not show it, write "not in this filing" and stop. The Finance plugin disclaimer still applies when you paste those extracts into a board deck. [1] [3]

Forecast scripts stay versioned next to the check

Keep forecast assumptions in a YAML or CSV checked into the repo. Ask Claude to change only named drivers (churn, ARPU, headcount) and to refuse silent edits to historical actuals. Re-run /variance-analysis after each forecast refresh so the story matches the new sheet. [1]

Warning: never let the agent overwrite the actuals tab. Put actuals behind a read-only path or a deny rule if your repo holds them. [4]

Fail the pack before the slide updates

A practical board-pack gate:

  1. Script prints checksums for revenue, COGS, and cash.
  2. Diff against last published pack; unexplained deltas block the export.
  3. Person reviews /variance-analysis narrative against the checksums. [1]

For close workpapers, go back to Claude Code for accounting. For local CSV and DuckDB checks, use Choose five tools for spreadsheet data. [6] [7]

You now have a finance loop: plugin variance and statements, Decimal unit economics, EDGAR-backed extracts, versioned forecasts, checksum gate before slides.

Send this to the operator who wants Claude Code in the model without silent float bugs.

Keep this guide

By Full Byte Developer

Filed under Claude Code, Dev tools

Questions about this guide

Is the Finance plugin the same as accounting close?

Same plugin, different jobs. Close and recon live on the accounting page. This page is variance, statements, models, and math safety.

Which command owns flux analysis?

The README lists /variance-analysis for price/volume and rate/mix style decomposition, plus /income-statement for P&L with period comparison.

Can Claude pull SEC filings for me?

Only through tools you connect or files you supply. Prefer primary filings from SEC EDGAR, then ask Claude to extract named line items with the source URL and form type.

How do I stop silent rounding bugs?

Keep money math in integer cents or Decimal with an explicit scale, assert row totals against a bank or ERP checksum, and fail the check before any slide or board pack updates.

Sources

Next in this stack