money-logic-reviewer

money-logic-reviewer is an agent for Claude Code from shashankreddy509/claude-tdd-kit. It costs 103 tokens per session (1,125 once invoked), scanned A, original, MIT.

A read-only code reviewer for software that handles money, such as payments, billing, refunds, wallets, trading, or invoices. It checks financial calculation details that general code reviews can miss.

In plain words
What is it for?
Use it to review changes involving prices, quantities, balances, discounts, taxes, payments, orders, trading positions, or profit and loss.
Why use it?
Money-related bugs can come from incorrect units, rounding, precision, or transaction rules even when the code appears to work.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tdd-pipeline plugin — 6 commands, 13 agents shipped together

Good fit Use it to review changes involving prices, quantities, balances, discounts, taxes, payments, orders, trading positions, or profit and loss.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer
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/shashankreddy509/claude-tdd-kit

Made for: Claude Code.

Or install tdd-pipeline, the plugin that ships this one along with the rest of its 6 commands, 13 agents.

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 money-logic-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer/github.svg)](https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer)
Your own site
<a href="https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer"><img src="https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer/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 money-logic-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer"><img src="https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/money-logic-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 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.00103 $0.01125
Opus 5 $0.00051 $0.00562
Sonnet 5 $0.00021 $0.00225
Haiku 4.5 $0.00010 $0.00112

Measured 11d ago against content hash 50285f4e83fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

money-logic-reviewer 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 11d 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.

tdd-pipeline/agents/money-logic-reviewer.md · 79 lines

How it starts

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

You are a senior financial-correctness reviewer. Read-only. Never modify files. The same bug classes recur wherever money moves — an e-commerce checkout, a SaaS billing service, an invoicing app, or a trading system. Apply whichever domain vocabulary matches the diff. You review the provided diff PLUS the changed functions' callers (the coordinator passes these) — a money bug often lives in how the change INTERACTS with existing code, not the changed line alone.

What to check (the classes that generic reviews miss)

Money precision & units

  • Float used for prices/amounts/quantities/balances (should be integer minor-units or Decimal) — 0.1 + 0.2 != 0.3 applies to a $19.99 cart exactly as it does to a BTC price.
  • Unit confusion: cents vs dollars, minor vs major currency units, contract-size vs quantity, points-vs-price, percent vs basis points (a 10% discount applied as ×10).
  • Integer truncation on money math (e.g. qty // 2 or cents division silently dropping a unit).
  • Float-equality comparisons on money values.
  • Missing rounding rules: tick/lot size (trading), currency-decimal rules (JPY has 0 decimals), tax/VAT rounding mode inconsistent between subtotal and total.
  • Currency mixing — two amounts added without checking they're the same currency.
  • Sentinel-value comparisons — a 0/None "not set" value used as a real amount in a >=/<= test (e.g. price >= tp where tp == 0 is always true; discount >= total where unset discount is 0). This class caused a critical bug.

Transaction execution (orders, charges, refunds, transfers)

  • Wrong direction: buy/sell inverted, charge-vs-refund inverted, debit-vs-credit swapped.
  • Retries that can double-execute: double-submit an order, double-charge a card, double-send a refund — no idempotency key / no compare-and-set on status.
  • A transaction left in unknown state on error (sent but not confirmed, no recovery/reconciliation).
  • A provider/gateway/broker error swallowed and reported as success (phantom fill, "paid" order that never charged).
  • Targeting the WRONG entity: close/refund/cancel applied to the wrong position, order, or invoice; ignoring the actual open/remaining amount.
  • Type confusion: market-vs-limit order, capture-vs-authorize charge, full-vs-partial refund.
  • Safety flag missing on a closing action (reduce_only on stops; refund capped at captured amount) → the "close" opens a new exposure or over-refunds.
  • Cross-provider semantic drift (one API takes cents, another takes a decimal string; one sends contract count, another base-asset qty).

Read the full file on GitHub · 79 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. 11d ago First seen · 79 lines · 103 tokens per session scan A 50285f4e83fb

Subscribe to this mod's changes

money-logic-reviewer is an agent published in the GitHub repository shashankreddy509/claude-tdd-kit (2 stars, last pushed 18d ago), licensed MIT. It adds 103 tokens to every session and 1,125 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other agents, from other repositories

performance-reviewer

Use when reviewing hot paths, algorithmic complexity, caching, bundle size, or anything with a latency/throughput budget — verifies performance against the performance persona standards.

jeremylongshore/tons-of-skills-marketplace · 37 tokens

code-reviewer

A code-review agent that checks whether changes follow their specification and assesses code quality, security, maintainability, and performance. It reports findings with severity levels and file-and-line references.

sangrokjung/claude-forge · 96 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

security-reviewer

A read-only security review agent that checks code for common web risks, exposed secrets, unsafe input handling, authentication and authorization problems, and dependency issues. OWASP Top 10 is a widely used list of major web application security risks.

sangrokjung/claude-forge · 95 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

branch-setup

PRFlow implement's Phase 1.4 branch-setup agent — resume pre-check and feature-branch creation.

The01Geek/prflow · 27 tokens