I built a vocabulary trainer for words from books and films. AI agents wrote most of it

TL;DR: Verba is a flash-card trainer for your own words, any language pair. One developer, about seven months, and AI agents wrote most of the code. Below is why I made it, and what kept the AI-written code from turning into a mess.

Why

The flash-card apps I tried were fine for the first few hundred words. After that they all broke in the same way. The review pile grows every day, and after a few months the whole session is old cards and there is no time for new words. Every card asks the same question in the same way, so you start clicking on autopilot. And the word sits on the card alone, far from the book where you found it.

The worst part for me was synonyms. At B1 and above you have a lot of words with almost the same translation. You “know” both of them and still mix them up a week later. No app I saw even tried to help with that.

So I started my own: a trainer for the words you meet yourself, not a ready-made course.

What it does

AI is used in a few places only: explain a word and fill in its translation, write fill-the-gap sentences, write a memory trick for two words you keep mixing up. Planning and grading are plain code. I didn’t want to pay an LLM to decide which card comes next.

It’s free to start, and the free credits refill every day. Paid packs are there if you train a lot.

The dev part: how AI agents didn’t turn it into a mess

Some numbers: about 1,000 commits, 1,700 Scala files, around 300 Mill modules. Most of that code was written by AI agents. My part was specs, rules and review.

Getting code from an agent is easy. Keeping a thousand changes in one shape is the hard part. Here is what helped, roughly in order.

Scala 3 types. User id, entry id, language, translation: all different types, not String or Long. When the agent mixes them up, it gets a compile error and fixes it itself, before I even see the diff. Some business rules live in types and visibility too. For example, the raw LLM provider clients are private[workflows], so the only way to call a model is the metered call that checks the user’s quota. I wrote more about this in Type Strength vs Type Anemia.

Scala on the frontend too. The browser app is Scala.js with Laminar. Value objects and validation are shared between the server and the browser. The agent doesn’t jump between two languages with two sets of habits, and a plain JVM test fails when the browser client and the server route stop matching.

Hexagonal, but enforced by the build. Domain, use cases, adapters, composition root, and every layer is its own Mill module. A domain module just doesn’t have the database driver on its classpath, so SQL in the domain is a compile error, not a review comment. On top of that, a small Python script in CI fails the build on forbidden dependencies between features. Yes, 300 modules is a lot for a side project. But with agents, the build is the cheapest reviewer I have.

Skills. Types and modules say what is forbidden. Skills say how to do it right. There are 30+ short Markdown files in .claude/skills: where a class goes, how to add a use case end to end, how to write a migration, why UI text is never hard-coded. The agent reads the matching one before it touches that part of the code. And every feature starts as a written plan in the repo (200+ by now). The result: new features look like the old ones, and in review I check the logic, not the structure.

Stack, for the curious: Scala 3, ZIO 2, zio-http, PostgreSQL with Sqitch, Scala.js, Laminar, Vite, Mill. LLMs: Gemini, OpenAI, Anthropic, Qwen, DeepSeek, with model names in config. Payments through Paddle.

Try it

verba.s4y.solutions, no sign-up. If you just want to click around, the home page has a sample training with English phrasal verbs. If something is broken or just stupid, tell me through the Feedback page in the app.