Damir Karimov, black-and-white portrait in a dark suit

Damir Karimov

Software engineer for the parts that can’t go wrong twice.

How I think about it
node timeout → same signed tx re-sent, 1 payout2 couriers, 1 order → conditional write, 1 winnerconfidence 0.41 → hand-off to a personcrash mid-send → reconciler finishes the jobstale screen → taken order removed over WebSocketprompt changed → eval set catches the regression

What I build

Production systems end to end — from the transaction to the screen.

AI agents and RAG

Voice and chat agents grounded in the product’s own data: retrieval per client, output checked against a schema, a confidence threshold and a human hand-off. Plus MCP servers that put a platform inside clients’ own AI tools.

  1. speech
  2. RAG
  3. LLM
  4. schema
  5. client confirms
  1. low confidence
  2. person takes over
  • LiveKit
  • RAG
  • MCP
  • evals
  • STT/TTS

Distributed backends

Services that stay consistent under concurrency: transactions, idempotency, queues, retries and reconciliation.

  • Node.js
  • NestJS
  • Python asyncio
  • gRPC
  • Kafka
  • PostgreSQL

Payments and money flows

Wallets, deposits, payouts and e‑signatures — where a duplicate costs money.

  • Stripe
  • DocuSign
  • EVM

Real-time systems

Live balances, statuses and dashboards that don’t drift from the source of truth.

  • WebSocket
  • SSE
  • Redis

Automation and integrations

Anything people repeat becomes a pipeline: browser automation, document workflows, scheduled jobs, bots and third-party APIs.

  • Playwright
  • Puppeteer
  • cron
  • Telegram bots
  • S3

Frontend and mobile

Microfrontends, SSR, design systems and React Native apps for large products.

  • React
  • Next.js
  • React Native
  • FSD

Admin and operations

Moderation, financial operations, RBAC and analytics for internal teams.

  • RBAC
  • audit

Case 1 of 3 · Python · asyncio · PostgreSQL

Paying out exactly once over a network that may not answer

1000+concurrent workers, no second transaction on retry

Situation

Financial infrastructure was the most critical part of a crypto platform. Four ways it could lose money:

  • A node doesn’t answera retry may pay twice
  • EVM nonce order is strictone gap stalls every later tx
  • Many operations at oncetwo workers take one nonce
  • Crash between send and writeoperation state is lost

Task

  • Many operations in parallel
  • No duplicates on retry
  • Strict nonce order
  • Resume after a crash

Action

  • Sequential processingkept order, but one stuck tx blocked the queue
  • Nonce counter in memorylost on restart, broke with several instances
  • Nonce and signing in one DB transactionif signing fails, the nonce rolls back — no gap
  • Store the signed tx before sending, resend the same onethe network executes it only once
  • Parallel network waits on coroutinesonly nonce allocation stays sequential
  • Reconciliation on start and on scheduleunfinished operations get completed

Result

1000+ workers in production. A retry after a timeout never created a second transaction; restarts lost neither nonce nor state.

The point wasn’t adding workers — it was separating what can run in parallel from what can’t.
sequence · exactly-once payout

outcome: 1 transaction, nonce in order

Case 2 of 3 · NestJS · PostgreSQL · Redis

One order, one courier — at peak hour

−86%repeat claims at peak load

Situation

A free order was visible to several couriers, and at peak they accepted it almost at the same moment.

  • Two requests read “free”one order, two couriers
  • Bad network, second taprepeat looks like a refusal
  • Stale list on screencourier takes a taken order
  • Peak hits one DB rowload and latency grow

Task

  • Exactly one courier per order
  • Repeat taps handled correctly
  • Hold peak load

Action

  • Check, then writea second request slipped in between
  • Redis as the only lockkeys could expire and drift from the database
  • Conditional write in a PostgreSQL transactiononly the first request wins
  • Repeat from the same courier counts as successa bad network gives no false refusal
  • Redis as a fast filterneedless requests never reach the database
  • Taken orders leave lists over WebSocketfewer taps on taken orders

Result

No more double assignments. Repeat claims at peak dropped by 86%, and a repeat tap no longer shows a false refusal.

Correctness and speed are separate concerns. The remaining 14% are taps on taken orders from a stale screen.
sequence · order claim

outcome: order assigned to courier A

Case 3 of 3 · Python · RAG · LiveKit

A voice agent that knows when to hand off

+32%B2B campaign throughput

Situation

Support and ad-scenario preparation for B2B clients depended on people.

  • A person writes the scenariocampaigns start later
  • Model doesn’t know the dataconfident, but wrong
  • STT → LLM → TTS in sequencepauses break the talk
  • Output is free textplatform can’t accept it

Task

  • Answer from platform data
  • No long pauses
  • Scenario in a strict structure

Action

  • Model without retrievalit doesn’t know the platform
  • Sequential voice pipelineevery step’s delay added up
  • RAG with a per-client filter and confidence thresholdnot enough data — a person takes over
  • Streaming voice over LiveKitreplies start early and can be interrupted
  • Schema validation and client confirmationa model error never reaches a campaign
  • Eval set of test questionsprompt changes can’t silently degrade answers

Result

B2B campaign throughput grew by 32%. The scenario is assembled during the conversation; when data is missing, the call goes to a person.

The key was limiting where the model can be wrong. A high threshold calls a person more often — better than a confident wrong answer.
sequence · voice agent hand-off

outcome: scenario confirmed by the client

Diagrams are simplified; confidence values are illustrative.

Experience

8+ years in production · end-to-end ownership

Reliability and concurrency

  • scale

    Designed a concurrent wallet system on Python asyncio — 1000+ coroutine workers, nonce sequencing in PostgreSQL, idempotent retries and crash recovery.

  • down ↓

    Reworked an order-claim service with transactional logic over PostgreSQL and Redis — duplicate acceptances at peak −86%.

  • down ↓

    Built real-time balance and campaign-lifecycle sync on NestJS, gRPC and PostgreSQL — desync incidents −43%, p95 update latency under 250 ms.

  • scale

    Kept order workflows between ingestion and execution at 99.3% reliability with reconciliation, retry policies and state validation.

  • down ↓

    Resolved conflicts in collaborative campaign drafts with optimistic locking in PostgreSQL — inconsistencies −38%.

AI agents and automation

  • up ↑

    Built the backend of a voice agent on RAG and LiveKit that turns a spoken brief into a validated ad scenario — campaign throughput +32%.

  • down ↓

    Created a Python MCP server so B2B clients run routine platform tasks from their own AI tools — onboarding and support 7h → 1h.

  • down ↓

    Replaced manual proof collection with a Playwright and S3 pipeline producing screenshots and Excel reports — manual work −78%.

  • down ↓

    Shipped an e‑signature service with DocuSign and Stripe on AWS EKS — document processing from days to minutes, 99.9% SLA.

Architecture and performance

  • down ↓

    Led the move from a frontend monolith to Module Federation microfrontends — release cycle −47%, production bugs −33%.

  • down ↓

    Optimised a real-time dashboard for 1M NFT positions with WebSockets, layered caching and virtualisation — render time −64%.

  • up ↑

    Delivered unified fiat and crypto deposits and withdrawals with MetaMask and WalletConnect — completion rate +22%.

  • down ↓

    Moved high-traffic pages from CSR to SSR on Next.js — TTFB −31%, FCP −37%.

  • down ↓

    Added offline mode to a courier PWA with service workers and background sync — stale balance displays −41%.

About

The path, how I work, and what I think about outside the code.

The path

I started on the frontend and spent years there — which is why I still care how a backend decision lands on the screen. Then I moved down the stack: backends, payments, real-time systems. Now most of my time goes where distributed systems meet AI.

The work I like best is the kind where a mistake is expensive: orders, money, documents. And anything people do by hand more than twice, I’d rather turn into a system.

How I work with people and the business

  • Autonomy, end to end

    I take a direction from requirements to release on my own, and bring the hard architecture calls to the team.

  • Business thinking

    I judge work by the number it moves — completion rate, throughput, hours saved — and care how the product makes money.

  • Decisions in writing

    Large tasks get decomposed, API contracts agreed up front, trade-offs written down before code.

  • Bridging teams

    Aligning frontend, backend and product; at home in distributed, async, international teams.

Outside the code

  • Psychology — cognitive biases and how people actually make decisions.
  • Systems thinking — philosophy and the hidden dependencies in social systems.
  • Building products — small AI-first products of my own, end to end.

How I build

AI agents write a lot of my code — inside a harness I assembled from open-source tools, so the result is checked by the system rather than by hope. Spec first, tests first, rules enforced before commit.

The harness — the wrapper I build around coding agents

  1. Spec

    Spec-driven development: the change is agreed before code

    Spec Kit · OpenSpec
  2. Context

    The agent sees the real structure, not guesses

    CodeGraph · zvec-grep
  3. Tests first

    Behaviour pinned down before implementation

    TDD
  4. Guardrails

    Architecture rules checked before commit

    Aegis
  5. Memory

    Decisions and patterns carried to the next session

    agent memory

Systems

  • Distributed services
  • Queues
  • Transactions
  • Idempotency
  • gRPC
  • WebSockets
  • Kafka

Backend

  • Node.js
  • NestJS
  • Python
  • asyncio
  • aiohttp
  • REST
  • GraphQL

Data

  • PostgreSQL
  • Redis
  • Vector search
  • Prisma
  • TypeORM

AI

  • RAG
  • LLM integration
  • MCP servers
  • Voice agents
  • LiveKit
  • Evals

Harness

  • Spec Kit
  • OpenSpec
  • Aegis
  • CodeGraph
  • zvec-grep
  • Agent memory
  • SDD
  • TDD

Frontend and mobile

  • TypeScript
  • React
  • Next.js
  • React Native
  • Module Federation
  • FSD

Integrations and automation

  • Stripe
  • DocuSign
  • WalletConnect
  • Playwright
  • Puppeteer
  • Telegram bots

Infrastructure

  • Docker
  • Kubernetes
  • AWS
  • CI/CD
  • Prometheus
  • Grafana

Open to Senior Software Engineer and AI Engineer roles.

Remote, product companies with real server-side complexity — where reliability or AI decides the outcome.