Samat Makatov

← All work

Selected cases

7 cases where AI had to work inside a real business — with medical devices, live data, money and people. Each one runs in production or ran there.

Eye to lens: AI across contact-lens production
01Devices & integrations · 2026

Eye to lens: AI across contact-lens production

Problem
Clinics measured eyes on Japanese and other devices and re-typed the numbers by hand; lens fitting depended on a few experts; the lab and the stores ran on separate tools.
What I built
A device agent reads instruments directly; lenses are fitted on a 3D corneal map with a risk check and an LLM second opinion; the design goes to the CNC lathe and on to production and sale in one ERP.
Result
Used by 200+ clinics, opticians and labs. I rebuilt the core in Rust in five weeks — ~640k lines, 2,700+ tests.
GoCloudflare WorkersD1/KVPython
Autonomous on-call agent: bug report → tested fix
02AI agents · 2026

Autonomous on-call agent: bug report → tested fix

Problem
Staff reported ERP issues in chat, and every report waited for an engineer.
What I built
A sandboxed agent triages each report with read-only tools; to fix, it must first write a test that fails on the old code. A model-free gate — guardrails, type-check, build, tests — decides what can ship.
Result
~90 runs in the first month; no unattended deploys.
PythonClaude (headless agent)GitHub ActionsLinux sandbox (iptables)
MCP gateway: one secure door for every AI agent
03AI agents · 2026

MCP gateway: one secure door for every AI agent

Problem
A distributor's staff wanted AI assistants on live CRM data — without leaking access or corrupting records.
What I built
One MCP gateway for every agent: 80 tools, four access levels, hashed per-person tokens, quotas and an audit log of every call; OAuth with PKCE so people connect from the Claude app on their phone.
Result
3,000+ tool calls a month from 6 staff, 99% successful, ~0.9 s median.
TypeScriptMCP (JSON-RPC over HTTP)OAuth 2.1 (DCR + PKCE)PostgreSQL
Agent engineering harness: a team of AI coding agents
04Tools & automation · 2026

Agent engineering harness: a team of AI coding agents

Problem
One engineer, many production systems — each has to move fast without breaking.
What I built
My own harness: skills, hooks and subagents; parallel agent sessions in isolated worktrees; tests first; an independent model reviews every diff; browser test swarms by role.
Result
~9,700 commits across 50 repositories in 2026, including a 640k-line Rust platform in five weeks.
TypeScriptPythonBashMCP
Field agent: voice notes and invoice photos into the CRM
05AI agents · 2026

Field agent: voice notes and invoice photos into the CRM

Problem
Sales reps in the field sent voice notes and invoice photos; someone in the office re-entered them by hand.
What I built
A Telegram agent transcribes voice, reads invoice photos, finds the matching deal and files the document; user feedback turns into tasks and agent-proposed fixes.
Result
Live since August 2026 on the same gateway, access levels and audit log.
TypeScriptTelegramWhisperClaude
wapi.kz — WhatsApp API and attribution analytics
06SaaS products · 2026

wapi.kz — WhatsApp API and attribution analytics

Problem
Businesses in Kazakhstan sell through WhatsApp but cannot see which ad brought which chat, or whether it became a sale.
What I built
A WhatsApp API (linked device) with signed webhooks and groups, tracked links, QR and site tags that tie every chat to its ad and sale — plus a remote MCP server and CLI so AI agents can operate it.
Result
Launched within a day of starting (16 Oct 2026); ~450 commits in six weeks; self-hosted in Kazakhstan.
Next.js 16TypeScriptnode:sqliteWAHA / Baileys
CORSA — vehicle history reports for Kazakhstan
07Data products · 2021–2026

CORSA — vehicle history reports for Kazakhstan

Problem
Buying a used car in Kazakhstan meant trusting the seller: liens, accidents and mileage lived in dozens of separate sources.
What I built
One request by plate or VIN fans out to 30+ sources and assembles a single report; the 2026 rebuild isolates every collector and scores on the server.
Result
2021–22: 34k monthly users at peak, 7k paying users, top-1 in search for the main queries.
Next.jsTypeScriptCloudflare Workers & KVPython