One engineer, an AI agent and 1,373 changes in eight months
Catch Club is a platform for paid Telegram communities. It has an owner's dashboard, bots, mini apps, payments and AI agents. I built it alone, with the Claude Code agent, from 14 March 2026 to 7 November 2026. The agent wrote most of the code. Below is what came of it, in numbers.
In short
The code of Catch Club is closed. Only its system of checks is open: the mainstay project. It holds no product code, no community names, no member names and no secrets.
- Who
- One engineer, Kamil Dashdamirov, and the AI agent Claude Code.
- When
- From 14 March 2026 to 7 November 2026. The numbers were taken on 7 November 2026.
- What was built
- A site, bots, mini apps, payments and AI agents: 445k lines of TypeScript code, tests not counted.
- What checked every change
- 15,826 tests, 166 tests on a real database and 23 sets of checks for the main rules.
Facts checked on 23 November 2026.
The numbers
Taken on 6 November 2026 and 7 November 2026: from check run 42307651951 and from the state of the project at that moment.
| Number | What it is | Where it comes from |
|---|---|---|
| 15,826 | tests pass, in 1,407 files | the check run; the tests themselves take 14 min 21 s |
| 166 | tests on a real database | the same run; every database change is applied from scratch first |
| 26 min 12 s | is how long the full check of one change takes | the quick “should it run at all” check, 15 s; then the tests and the build, 25 min 46 s; next to them the database tests, 3 min 3 s |
| 23 | sets of checks for the main rules | the project |
| 1,373 | changes accepted into the main code | GitHub |
| 1,725 | saves of the code in 238 days | the project |
| 363 | changes to the database structure, across 3 databases | the project |
| 445k | lines of code in 2,478 files, tests not counted | the project |
| 143 | documents with decisions: what we do and why | the project |
The last 30 days
To 9 November 2026. Counted with an open script from mainstay.
| Number | What it is |
|---|---|
| 161 | changes accepted |
| 97.4% | of code changes came with a change to the tests (150 of 154) |
| 5.7% | of check runs were red: 15 red, 247 green. Another 102 runs were skipped as not needed, 55 were cancelled |
| 15 / 21 min | is how long a check takes: in half the cases no longer than the first number, in nine out of ten no longer than the second |
| 0.5% | of cases where a check failed and passed for no reason: 2 of 419 |
| 0 | times the checks failed on the main version of the code: 147 runs passed, 14 were cancelled |
How to check it again
The code and the log of the checks are closed. But every number can be got with a command, in a copy of the project with read access, at save 25307593. Later changes shift the numbers. On request I run these commands in front of you.
How many tests there are and how long they take, from the log of the run:
gh run view 42307651951 --log | grep -E "Test Files|Tests|Duration"RPC integration (real Postgres) Test Files 19 passed (19)
RPC integration (real Postgres) Tests 166 passed (166)
RPC integration (real Postgres) Duration 10.75s (transform 837ms, setup 0ms, import 2.31s, tests 6.29s, environment 2ms)
Test + Build (Next.js) Test Files 1407 passed (1407)
Test + Build (Next.js) Tests 15826 passed (15826)
Test + Build (Next.js) Duration 860.58s (transform 30.06s, setup 0ms, import 233.97s, tests 408.72s, environment 159ms)Shown without the timestamps. For the database tests, “Duration” is the time of the tests themselves; the 3 min 3 s of the whole job include starting the database and applying the changes.
The sets of rule checks:
git ls-files | grep -c guard.test23The rest, in the same place:
# job durations
gh run view 42307651951 --json jobs --jq '.jobs[] | [.name, .startedAt, .completedAt] | @tsv'
# merged PRs, commits, migrations
gh pr list --state merged --base main --limit 5000 --json number --jq length
git rev-list --count HEAD
git ls-files 'supabase/*migrations/*.sql' | wc -l
# TypeScript source files and lines of the app, tests excluded
git ls-files 'nextjs/src/**/*.ts' 'nextjs/src/**/*.tsx' | grep -vcE '\.test\.tsx?$'
git ls-files 'nextjs/src/**/*.ts' 'nextjs/src/**/*.tsx' | grep -vE '\.test\.tsx?$' | tr '\n' '\0' | xargs -0 cat | wc -l
# decision documents
git ls-files 'docs/*.md' | wc -l
# the 30-day baseline (from a clone of the mainstay repository)
OWNER=... REPO=... GITHUB_TOKEN=... DAYS=30 WORKFLOW=ci.yml MIN_RUN_MINUTES=2 node metrics/baseline.mjsWhen the numbers are updated, the commands are run again.
What the system is made of
There are six parts. Each one says what it looked like in my project.
Checks for the main rules
Tests that read the code itself and fail when a rule is broken. For example: every page checks that the person is signed in.
In my project: 23 sets of checks. For example: every address of the platform has a limit on requests; when something fails, personal data is shown to no one; code for the browser has nothing that breaks older iPhones; background jobs run on the cheap model.
In the open project:
guards/A counter for old debt
Old problems are counted file by file. Fewer is fine, more is not. A new problem is visible at once.
In my project: A counter of one-off checks of “which version of the product is this”. Step by step they were replaced by one list of features that is switched without a new release.
In the open project:
guards/ratchet.tsThe order of checks
The fastest and cheapest first, the slow ones after: whether to run at all, the rule checks, the tests and the build, the tests on a real database. A separate watchdog checks that the new version is really live.
In my project: The same order. The tests run on a real Postgres database, where every database change is applied from scratch. The release watchdog runs every 2 hours.
In the open project:
ci/Checks for your own AI agent
If the product has its own AI agent, the check is on the program, not on the agent: what the program does with each of its requests. It refuses, shows a person a card to confirm, or allows. Any action that changes something goes through such a card.
In my project: A list of 21 cases for the club owner's agent, tests of text cleaning in 3 modules, and the rule “money is dangerous” in 63 modules with tools.
In the open project:
evals/Rules for the coding agent
A file the agent reads before every task: look first, do not write straight into the main version, every change has a test. Plus a check before the code is sent and a list for whoever accepts the change.
In my project: The project's rules file, separate routines for security checks and for audits, rule checks before every send.
In the open project:
agent/It broke, so a check appeared
Every mistake that reached people ends with a check in the same change as the fix. That kind of mistake does not come back. Six numbers show whether things got better.
In my project: Errors from browsers land in one list by themselves. A mistake in the live product becomes a check the same day.
In the open project:
metrics/
What is not here
- Tests that click through the site by themselves. I check the Telegram screens by hand, with a list.
- Load testing happened once, in August 2026. It is not part of the regular checks.
- Mistakes that reached people are not counted separately yet. That is where to start in your own project.
- This is one person's experience. A team of thirty needs the same system set up differently: the checks need owners, a measurement first, goals after it.
Where these numbers come from
This page repeats the file CASE.md of the open project. If the two ever differ, CASE.md is right.
20 minutes on a call. Your code stays on your screen. The button opens Telegram, @K_Damiroff.