Mustard Prep
A CPA exam prep product that teaches for retention, built and largely run by AI agents.


CPA candidates spend months preparing for a handful of hard exam sections, and most of them pay a lot for review courses whose software feels dated. I wanted to find out whether one person working with a team of AI agents could build something better: a subscription study product aimed at a single outcome, passing the exam.
It began as a study tool I put together quickly with coding agents: theory pages, practice questions and a few calculators. It worked and it looked good, but it was a prototype. Since then I have been turning it into a product: a learning engine that tracks what each learner actually knows, practice questions whose numbers change on every attempt, and accounting content kept in its own versioned packages, written and fact-checked largely by agents and reviewed by me.
I set one rule early. When I sent agents to research the curriculum, the goal was not more content, because that would just be AI slop. The goal was to catch up with current accounting rules, explain every concept in the most intuitive way, and make learners practise the problems that trip people up until they stick.
- What it is
- A study app for the CPA exam, starting with the financial accounting and reporting section
- Stack
- TypeScript, Next.js, React, Tailwind CSS, Bun, CodeMirror, installable offline web app
- Content
- One private repository and versioned package per exam section, published through CI
- Built with
- AI agents writing code and content, with me as owner, reviewer and final accounting check
- Status
- The product works end to end; accounts, billing and launch are next
Teaching for retention, not page views
Every lesson is Markdown with invisible mastery markers around each unit of knowledge: a vocabulary term, a formula, a worked example, a trap. A learner moves each unit through levels, from "done reading" to "understood", "can recall" and "mastered". Mastered units fold into a one-line summary, so the page shrinks to what is still unknown, and progress rolls up into bars on every lesson, topic and sidebar entry.
"Understood" is not self-reported. Every unit carries short Quick Checks, written next to the text they test, and the level only moves when the learner passes one. A failed check starts a cooldown before the retry, so the learner goes back and reads instead of guessing through the options. In guided mode a lesson reveals one unit at a time behind a "Done reading" button, so nothing further down distracts.
Every answer also records how sure the learner was, and the app asks before it reveals the result. Asking afterwards would turn confidence into an echo of correctness. Asked first, it separates a confident wrong answer, the dangerous kind, from an honest guess.
- Study sessions and review rounds: practice and mastery tools unlock inside a session, and each subtopic keeps its own history of rounds.
- Interactive calculators sit inside the lessons: bond amortization, LIFO layers, lower of cost or net realisable value, the gross profit method and purchase commitments.
- It installs as an app and works offline, with full-text search, a glossary that defines terms on hover, highlights and exam-scoped notes.



Practice questions that regenerate and stay correct
A fixed question bank runs out, and learners start remembering that the answer was B. So practice questions are templates. The author declares variables with ranges and steps, derives values with arithmetic expressions, and writes the question, answer, journal entry and explanation with placeholders. Each draw samples new amounts and a new company name, and the explanation is worked through with the numbers the learner just saw.
Accounting values often have to move together. An interest date fixes the months to year end; a term and a rate fix the present-value factor. Instead of date arithmetic, a group variable picks one row from a table of pre-checked combinations, so every variant is a scenario an accountant would recognise. Conceptual questions get a pool of wrong answers, each with its own explanation of the mistake it represents, and each draw picks a few and shuffles them.
Expressions run through a small purpose-built evaluator: arithmetic, rounding, minimum, maximum and powers, with no access to the JavaScript runtime. At build time a validator samples many random variants of every template and fails the build if a value is not finite, a placeholder is left unfilled, a wrong answer equals the right one, or a journal-entry amount is not positive. Within a practice round the app avoids repeating a variant, and "Try another like this" draws the same template with fresh numbers.


Content as versioned packages, checked against the standards
The content lives apart from the app: one private repository per exam section, published as a versioned package that the app pins and can roll back. A shared build tool validates the structure, stamps chapter numbers and hashes the content, and CI rejects a change that was not given a new version. Lessons and question templates carry changelogs with the reason and the authoritative source for each change. The app shows a version badge with the history and marks new or updated material automatically, and the mark expires on its own.
External author teams can work on an exam pack as outside collaborators. They see only their own repository and the packages it depends on, never the app, and each repository's publishing token doubles as a kill switch.
Wrong content is the biggest risk in exam prep, so I had a curriculum accuracy review built. Deterministic scripts extract every factual claim from lessons and questions, match them against a knowledge base of superseded rules and flag references to the accounting codification. An LLM agent then does only the judgement: it checks each claim against current guidance and returns a verdict with its authority and sources. Findings pass review gates before anything changes, and verified facts go back into the knowledge base, so each run starts from more than the last.
An early run found that the equity-method lesson eliminated all of the unrealised profit on a downstream sale, which is only right when the investor controls the investee, and that a related question had the correct answer and a distractor swapped. Both were fixed before the product had a single learner.
An authoring app for subject experts
Subject experts should not have to edit YAML or run build commands, so a separate authoring app works directly on a pack's files. Lessons get a code editor with preview and split view and an insert menu for markers and Quick Checks. Questions get form builders for multiple-choice, numeric and journal-entry types, kept in sync with the YAML, template variables included. A coverage view lists subtopics that are missing lessons or questions and glossary terms that are defined but never used, and one button builds and validates the whole pack.
Agents work in the same format through a Claude Code skill for authoring a topic: research the current rules and where candidates lose points, write the lesson with markers and Quick Checks, write hard templated questions, then register everything and rebuild the search index.

Run by agents, with me at the gates
The business plan is written for agents as well as for me: an honest investor memo, a gap audit, technical, marketing and operations plans, and an operating model that every new agent session reads first. Each piece of work is a brief with a goal, inputs, a checkable definition of done and a review gate.
Agents have full authority over reversible, internal work: code, tests, content drafts, pull requests and preview deployments. Anything irreversible or outward facing waits for me: merging, production releases, publishing content, money, pricing, legal matters and posting in public. Content pull requests have to show the fact-check output and the changelog entry, and I approve every one.
Working this way taught me where agents need structure. Long-running agents stalled without saying so, so work was cut into smaller tasks with explicit progress reports. Content agents and engineering agents got separate instruction files, so neither carries the other's context. And because nothing in the app is specific to the CPA exam, a new exam is a content production run rather than a rebuild: packs for auditing and for the CFA exam already sit beside the first one.