# AI Coding Agent Cost Meter & Spend Ledger

**Brand:** OperatorForge AI  
**Updated:** 2026-06-10  
**Format:** free checklist + spend-ledger template + consultant packaging notes  
**Use when:** a founder, engineering lead, AI automation consultant, or agency is letting Claude Code, Codex, Cursor, Copilot, OpenCode, browser agents, or workflow agents run real work and wants to know what each accepted deliverable actually costs.

## Why this matters now

The 2026-06-10 scan found a fresh cluster around **measuring what AI coding agents cost**:

- Hacker News surfaced **“Show HN: AgentMeter – Know what your AI coding agents cost”** on 2026-06-10.
- HN also surfaced **Loom**, an open delivery harness for coding agents, plus Codacy Skills for Claude/Codex/Copilot and current Claude Code workflow posts.
- GitHub search found `aussiealex/agentmeter` and `valkor-ai/loom` updated on 2026-06-10, alongside fresh agent skill/config/workspace projects.

The monetizable gap: teams are buying and using multiple agents, but many still cannot answer simple commercial questions: Which agent runs are worth it? Which prompts burn tokens without accepted work? Which repositories or task types deserve agent budget? A lightweight ledger is an easy first product and a useful upsell into spend governance, observability, rollback, and verification work.

## 10-minute agent spend snapshot

| Question | Minimum answer | Evidence to keep |
|---|---|---|
| Which agents are active? | List tool, model/provider, plan/API path, and owner | agent register |
| What did each run attempt? | Ticket, task type, repo, risk tier, and expected output | run brief |
| What did the run cost? | Tokens, API spend, seat cost allocation, tool calls, elapsed time | cost row |
| Was the output accepted? | accepted / revised / rejected / abandoned | acceptance result |
| What human time remained? | review, repair, test, deploy, rollback, client handoff | review minutes |
| What was the effective unit cost? | cost per accepted ticket, PR, workflow, doc, or evidence bundle | spend ledger |
| What should change? | keep, cap, reroute, batch, prompt-fix, or block | decision note |

## Spend ledger fields

Copy these columns into a spreadsheet, Airtable, Notion table, or CSV:

| Column | Required? | Notes |
|---|---:|---|
| `run_id` | yes | Stable ID tied to logs, branch, ticket, or workflow execution |
| `date` | yes | Use local business date, not only provider timestamp |
| `agent_tool` | yes | Claude Code, Codex, Cursor, Copilot, OpenCode, browser agent, n8n AI node |
| `model_or_plan` | yes | Model name, subscription tier, or API billing path |
| `repo_or_workspace` | yes | Where the work happened |
| `task_type` | yes | bugfix, feature, refactor, research, browser QA, docs, automation |
| `risk_tier` | yes | low / medium / high; high includes production, payment, customer data, deletes |
| `estimated_direct_cost` | yes | API tokens, metered credits, or allocated subscription cost |
| `elapsed_minutes` | yes | Wall-clock run time |
| `human_review_minutes` | yes | Time spent checking, repairing, testing, or explaining |
| `tool_calls` | useful | Shell, browser, MCP, API, database, deploy, email/send calls |
| `acceptance_status` | yes | accepted, partial, rejected, abandoned, needs-human |
| `evidence_link` | yes | Test output, screenshot, PR, diff, run log, delivery harness report |
| `rework_reason` | useful | skipped step, broken tests, wrong file, hallucinated fact, unsafe action |
| `unit_value` | useful | Estimated value of accepted output: ticket value, saved time, client deliverable |
| `decision` | yes | keep, cap, batch, reroute, upgrade prompt, require approval, disable |

## Starter CSV

```csv
run_id,date,agent_tool,model_or_plan,repo_or_workspace,task_type,risk_tier,estimated_direct_cost,elapsed_minutes,human_review_minutes,tool_calls,acceptance_status,evidence_link,rework_reason,unit_value,decision
agent-2026-06-10-001,2026-06-10,Claude Code,Team plan,example-app,bugfix,medium,3.40,28,14,42,accepted,link-to-tests,,250,keep
agent-2026-06-10-002,2026-06-10,Codex,API metered,marketing-site,landing-page,low,1.25,18,8,19,partial,link-to-screenshot,CTA copy needed review,150,batch similar tasks
agent-2026-06-10-003,2026-06-10,browser agent,API metered,qa-checkout,regression-test,high,2.10,12,20,31,rejected,link-to-log,missed payment edge case,0,require approval and harness
```

## Checklist

### 1. Decide what “cost” means before measuring

- [ ] Separate **direct cost** from **human review cost**.
- [ ] Track subscription seats separately from API-metered runs.
- [ ] Decide whether to allocate flat subscriptions per run, per user, or per accepted deliverable.
- [ ] Record elapsed time even when token cost is unknown; slow agents still consume review and waiting time.

### 2. Tie every cost row to an accepted deliverable

- [ ] Require a `run_id` before agent work starts.
- [ ] Link each row to a ticket, branch, PR, workflow execution, test report, or screenshot.
- [ ] Mark acceptance status explicitly: accepted, partial, rejected, abandoned, or needs-human.
- [ ] Do not count “agent said it finished” as accepted without evidence.

### 3. Add human review and rework

- [ ] Track review minutes for tests, diffs, screenshots, deployment checks, and client handoff.
- [ ] Track repair minutes when an agent skips requirements or breaks something.
- [ ] Log the reason for rework using a controlled vocabulary: missing test, wrong file, hallucinated API, unsafe command, incomplete copy, style mismatch, no evidence.
- [ ] Review “cheap” runs that become expensive after human cleanup.

### 4. Set budget ceilings by risk tier

| Risk tier | Default ceiling | Approval trigger |
|---|---:|---|
| Low: docs, research, internal copy | $5 or 30 minutes | second failed attempt |
| Medium: code/workflow changes | $15 or 60 minutes | production-adjacent dependency, failing tests |
| High: deploy, payment, customer data, deletes | $0 autonomous spend | human approval before run and before action |

- [ ] Stop or reroute a run that exceeds the ceiling.
- [ ] Require a fresh brief before retrying failed high-cost runs.
- [ ] Keep a weekly “top five waste rows” review.

### 5. Calculate useful ratios

- [ ] **Cost per accepted deliverable** = total direct cost / accepted rows.
- [ ] **Review load ratio** = human review minutes / agent elapsed minutes.
- [ ] **Rework rate** = partial + rejected + abandoned rows / total rows.
- [ ] **Tool-call density** = tool calls / accepted deliverable.
- [ ] **Estimated ROI** = unit value - direct cost - human review cost.

### 6. Turn the ledger into operating decisions

- [ ] Keep tasks where acceptance is high and review load is low.
- [ ] Batch repetitive tasks where setup cost dominates.
- [ ] Reroute high-rework task types to a stronger prompt, harness, or human-first workflow.
- [ ] Disable or approval-gate agents that repeatedly exceed ceilings.
- [ ] Use ledger data to negotiate subscriptions, model choices, client retainers, and internal AI budgets.

## Consultant packaging angle

Sell this as a practical business-control sprint for teams already using multiple coding agents:

- **$250-$500 agent spend snapshot:** inventory tools/plans, create the first spend ledger, and summarize cost per accepted deliverable.
- **$750-$1,500 AI development cost-control sprint:** add run IDs, budget ceilings, acceptance evidence, weekly waste review, and decision rules.
- **$2,000-$4,000 agent operating dashboard:** combine spend ledger, trace readiness, verification harness, rollback, and local firewall controls.

## Acceptance criteria

Before agent spend is trusted:

- [ ] Every agent run has a `run_id`.
- [ ] Cost rows include direct cost, elapsed time, and human review time.
- [ ] Acceptance status is evidence-backed.
- [ ] Budget ceilings exist by risk tier.
- [ ] Rework reasons are categorized.
- [ ] Weekly decisions are recorded: keep, cap, batch, reroute, or disable.
- [ ] High-risk production/payment/customer-data runs require approval before spend and action.

## CTA

Need the broader implementation pack? The OperatorForge AI Pro Pack includes practical automation checklists, prompt packs, client handoff templates, and agent governance references for small-business AI automation work.
