An education platform I ship for students was not built by me, line by line. It was built by AI agents.

In mid-November I ran a two-week hackathon (18 November – 1 December 2026) to see how far that loop would go. The speed was real. The cost story was not.

That work ran on an education port of Ukaf. Ukaf is the commercial product: an agentic harness with DORA, measure, improve, and context. Agents write the code, open pull requests, pass CI, and ship to production.

ukaf-cli is the free, lightweight, open-source slice of that. It does FinOps only — cost per feature — not the full harness.

In those two weeks:

I could point at a board and say what shipped. I could not answer, cleanly, what an AI-built feature actually cost, or where the rest of the bill went.

That question is what ukaf-cli is for.

I exported a month of Cursor usage (4 November – 3 December 2026) and tied what I could to the pull requests that shipped.

The gap between list and billed is not "features were cheap." It is unattributed usage and overhead that no pull request can claim. Two things follow from that:

Getting even this far took hours of spreadsheets, and the categories overlapped. The same dollar could show up in more than one bucket. I wanted a story that added up, and recommendations that named an action, not a vibe.

Ukaf, the commercial product, is the broader system: the agentic harness, plus DORA, measure, improve, and context. The education port of Ukaf is what powered the hackathon on that education platform.

ukaf-cli takes one slice and makes it free and small. It reads a Cursor usage CSV and the pull requests that went with it, and tells the month as one story: what the agents spent, and what actually shipped.

The FinOps rule is simple. Every feature is five stages in a row. The stages add up to the feature. The features, plus an explicit overhead bucket, add up to the export. If a part does not meet the whole, a reconciliation check fails the run.

| Stage | Clock | |---|---| | Planning / spec | Issue opened → agent launch | | Development | Agent launch → first push | | Testing / CI | First push → first green check (or the last check, if it never went green) | | Deploy + acceptance | That check → production deploy (or the merge, if there is no deploy) | | Fixes | Acceptance → restore, revert, or a later commit |

A milestone that arrives out of order becomes a zero-length stage. It does not start a second, overlapping interval. Rework before the first green check stays inside testing. The fixes stage is only what happens after acceptance.

There is no second clock. DORA lead time is testing plus deploy. Time to restore is the fixes stage. You will not see "launch → merge" sitting next to "PR open → merge" as if they were independent.

List price (the rate card, before the included pool) and billed cost (what the CSV charged) are both in the story. Included and Free rows bill as zero and still have a list price, so you can see what the pool absorbed.

Each merged PR also gets a complexity tier — S, M, L, or XL — from hand-written SLOC and file count. Lockfiles and generated paths do not count. Cost by tier is a partition of feature spend; overhead is a separate row.

Recommendations are rules only. Each one names the action, the evidence from that window, and a monthly estimate in dollars or minutes. They are ranked by billed saving, then list-price saving, then minutes. Nothing in the report says "consider optimizing your workflow."

On my own data, the sharpest lesson was a toggle, not a model. One costly day in the hackathon was $64.98. I was sure the expensive model was the cause. The spike came from High + Fast. Turning Fast off is the clearest saving in the window.

The repo is public, merged to main, with CI green. Clone it and install from a checkout:

git clone https://github.com/UriBer/ukaf-cli.git
cd ukaf-cli
pip install -e ".[dev]"

Run the bundled synthetic example first. It has the same columns as a Cursor usage export and none of anyone's real rows. Do not commit a real export.

ukaf report \
  --usage examples/usage.csv \
  --github-fixture examples/github.json \
  --out examples \
  --lang en

That writes report.html, report.json, and report.md. Hebrew labels and right-to-left layout:

ukaf report \
  --usage examples/usage.csv \
  --github-fixture examples/github.json \
  --out /tmp/ukaf-he \
  --lang he

Against live GitHub data, pass a token and one or more repos:

export GITHUB_TOKEN=...   # or GH_TOKEN
ukaf report \
  --usage ~/Downloads/usage.csv \
  --repo owner/name \
  --repo owner/other \
  --out ./out

Put the cloud agent id in the pull request body (Agent: bc-...) so the run attaches to that feature. An agent id with no pull request, and every row with no agent id, stays in overhead. ukaf will not guess editor traffic onto whichever PR happens to be open.

The screenshot below is ukaf-cli 0.1.0 run on the synthetic examples/ fixture that ships in the repo — not the hackathon export. The shape is what you should expect: a total that splits into features plus overhead, a reconciliation that has to pass, and a recommendation that comes with a dollar figure.

ukaf-cli is MIT-licensed. Funding is for maintenance, not a paid tier. The Sponsor button is wired through .github/FUNDING.yml as github: UriBer.

If this problem is yours too:

ukaf 0.1.0 · sponsor the work: https://github.com/sponsors/UriBer

原文来源:dev.to