Octopus, fridge and 498 tests: how I vibe-coded a bot in 4 days that fills my Yandex Lavka basket (Осьминог, холодильник и 498 тестов: как я за 4 дня навайбкодил бота, который собирает мне корзину в Лавке)
B · Useful, limited A self-described non-professional developer on Habr documents a four-day agent-built project with its process, code checks and the defects mocks missed; useful and specific, but a single personal project with self-reported figures.
Summary based on the full text·Original: about 9 minutes to read
In short
A Habr post (November 2026) by a self-described "vibecoder" who writes Python for himself. Over four days, coding agents built a family Telegram bot with a Mini App, plus an MCP server, that plans menus from what is in the fridge and fills a Yandex Lavka grocery basket through the site's unofficial web API. The bot never pays: checkout and payment tools are absent from the code by rule. The post's value is the process (spec, plan, TDD, cross-model review, a shared state file) and the list of real-world defects that 498 mock-based tests did not catch.
Key numbers
- 143commits in 4 days by coding agents under the author's direction
- 498tests, with test code almost as large as production code (~4.4k lines of Python, ~1.3k lines of HTML/JS)
- 8serious problems found by the first review from a second agent on a different model
- 9defects found in the first live run that no mock-based test would have caught
- ~95%share of the menu model's answer tokens spent on reasoning before it was switched off for schema-bound JSON
As reported by the source.
Russian·Web page·opens habr.com
What it reports
- Output: 143 commits in 4 days, about 4.4k lines of Python, about 1.3k lines of HTML/JS, 498 tests. An MCP server with 15 tools came first; the bot was added because a terminal is a poor interface for family members.
- Rule: "the model proposes, the code checks." Code enforces day count, repeats, calories within ±15% of target, total within budget + 15%, pack counts and stock. Cookies and addresses are not sent to the model.
- Process: spec built from one-at-a-time questions, plan with "definition of done" per task, test-first development, review by a second agent on a different model (first review found 8 serious problems, such as an export tool writing to any path the model passed). A STATE.md file with a "traps" section carries memory between agents; a cheap model handles routine work and an expensive one design and review.
- Defects the mocks missed: the delivery address determines the dark store, so half a basket came from the wrong warehouse with stock shown as available; Chromium cookie values carry a 32-byte SHA-256 prefix; an agent kept running a stale server copy because of how the package was installed; the menu model spent about 95% of answer tokens on reasoning and missed a 120-second limit; a 5-day menu at about 1,000 kcal with the same lunch every day; three packs of onion; "cottage cheese" not matched to "cottage cheese 5%".
- In total, 9 defects from the first live run would not have been caught by any test.
- Code is not published: the API is unofficial, cookies give access to the whole Yandex account, and the author does not want liability for copies.
How they got it
A first-person build log with code excerpts, the state-file format and concrete fixes. Line, commit and test counts are the author's own; there is no independent check. The usage base is the author's family.
Limits
- One hobby project, family use only; no reliability data over time.
- Relies on an unofficial API with session cookies, which may break or breach terms.
- Builds on earlier public posts about Lavka and VkusVill MCP servers; the novelty is the process and defect list, not the integration.
Why it matters for companies
The lessons transfer directly to agent-built internal tools. Anything that can be counted should be checked in code, not left to the model. A green test suite on mocks says little about a live system, so run against reality early. A second model reviewing the first catches problems the author no longer sees. Irreversible actions such as payment should be absent from the toolset, not guarded by a prompt. The STATE.md "traps" file is a cheap way to keep knowledge across agent sessions.
Key passages in translation
Russian original
Модель предлагает, код проверяет.
The model proposes, the code checks.
Russian original
Моки — это фантазия агента об API. 9 дефектов из первого живого прогона не поймал бы ни один тест.
Mocks are the agent's fantasy about the API. No test would have caught the 9 defects from the first live run.
Russian original
Инструментов оформления, оплаты и отмены заказа нет даже в коде. Это не недоделка, а правило проекта
There are no tools for checkout, payment or order cancellation even in the code. That is a project rule, not something left unfinished.
Summary based on the full text. Read the original for the full argument and data.Read the original on habr.com