Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AI assistance: how ergo-sbe was built

ergo-sbe was developed with heavy AI assistance. Most of the implementation, tests, benchmarks, samples, and documentation were written by coding agents. I did very little direct coding.

I am saying that at the beginning because this is not a conventional project with a little autocomplete around the edges. If you do not want to use software written substantially by LLMs, stop here. This is probably not the right project for you.

That warning is not an apology, and this page is not marketing. It is a disclosure of:

  • why I chose this project;
  • what I knew before the models became involved;
  • what I asked the models to do;
  • what I did and did not review;
  • how the generated codecs were verified;
  • where the workflow worked and where it failed;
  • which tools and models were used;
  • what the work actually cost;
  • why the crate is still labelled experimental; and
  • what I would expect before using it in a financial system.

The short version is:

I supplied the SBE domain knowledge, requirements, API judgment, corrections, acceptance criteria, and release decisions. Coding agents supplied nearly all of the implementation. I reviewed the generated Rust API and output far more closely than I reviewed the syn/quote generator implementation. The observable output is constrained by extensive tests, live byte-for-byte comparisons with official sbe-tool Rust codecs, official fixtures, compile-fail proofs, allocation checks, and performance gates. That is strong evidence, but it is not a substitute for independent production use.

This account describes the initial intensive development period ending in July 2026. Prices, model names, repository state, and my process will change. Treat dated figures as a historical record, not a permanent promise.

Read this first

This article is long because “AI-assisted” is too vague to be useful on its own. If you only have a minute, these are the facts that should determine whether you continue evaluating the crate:

QuestionShort answer
How much was written by AI?Most of the implementation, tests, benchmarks, samples, and documentation. I did very little direct coding.
What was the human contribution?More than a decade of SBE experience, the product requirements, API judgment, domain corrections, acceptance criteria, and release decisions.
What received human review?Primarily the generated Rust API and source, encoded bytes, test failures, and benchmark results, not an exhaustive line-by-line audit of the syn/quote generator internals.
What independently constrains the output?Official sbe-tool byte-for-byte comparisons, Java-produced fixtures, upstream schemas, compile-fail proofs, property tests, exact-length checks, allocation tests, and performance gates.
Is it production-proven?No. It remains experimental 0.x software. Production users should validate their own schemas, versions, message shapes, and traffic.
What did development consume?Roughly one month of intensive work. The initial 0.1.0 release used approximately 14 billion tokens (estimated from provider dashboards). The combined ledger on 2026-11-05 is 86.98 billion tokens (86,979,781,620): each machine’s ccusage high-water mark (a Mac mini and a MacBook), with the Claude Code transcripts copied between them counted once. A run on either machine alone will not match that total (see cumulative token usage).
What did it cost?~$261 actual out-of-pocket (DeepSeek PAYG $77.39 + GLM plan $114 + subscriptions $70). The combined ledger’s own API-rate total is $24,273.94. The same measured mix, priced on one Anthropic model at the public card checked on 2026-10-21 with 5-minute cache writes, is $15,062.68 on Sonnet 5.5 and $30,125.35 on Opus 5.5. With my work Claude Enterprise subscription the Claude portion would be covered by the seat licence rather than per-token billing, so the real cost at work would be lower still. The single-provider what-if shows the input, output, and cache arithmetic.
Which model did most of the work?DeepSeek: V4 Flash handled much of the early UltraMode/subagent work; the later sequential development stayed primarily on V4 Pro.

Contents

  1. Cumulative token usage (since 2026-06-28)
  2. What-if: all tokens through a single provider
  3. Why this page exists
  4. What I was trying to build
  5. Why I chose it as an AI experiment
  6. Authorship
  7. What I reviewed, and what I did not
  8. The actual working loop
  9. How the project evolved
  10. What the Git history shows
  11. What did not work
  12. Verification
  13. Performance
  14. Unsafe code and the trust boundary
  15. Tools and models
  16. Long context, O(n²), and caching
  17. Observed usage and spend
  18. Pay-as-you-go comparison
  19. A practical playbook
  20. The personal experience
  21. Why the crate is experimental
  22. What production users should verify
  23. AI-assisted contributions
  24. Final assessment