Victor Laperuta
I build products from the first commit, keep them running in production, and lead the teams that ship them.
Six years at Dolado, from first engineering hire to Head of Technology, through four pivots.
Open to lead and senior full-stack roles: remote, or hybrid in São Paulo.
The short version
· Largely alone, I kept an acquired legacy platform running and added the error handling and alerts it was missing.
· I took a team with no AI experience to LLM agents in production, and redesigned the agent when it hallucinated SQL.
· I built a product of my own end to end, tested it with early users, and paused it when the tests showed people used it to consume faster, the opposite of what it was built for.
How I work
How work arrives: sprints of one or two weeks. As an engineer, the product managers brought the priorities and I estimated and broke the big features into tasks at planning. As Head of Technology, without a product manager, the priorities were mine, agreed with the other leads.
Design: in Excalidraw with the front and back developers, the flows and what each side sends and receives, which routes are open and which protected, before anything becomes a card in Jira.
Execution: I usually set up the project and write a good part of the code, on the same base everywhere: a branch per card, a pull request to develop and then to master; ESLint, Prettier, Husky with lint-staged and import order; unit tests for everything I build; pair programming on the hard parts, which is how I mentored the juniors.
Release: CI runs the tests on every branch; infrastructure changes go through Terraform on CircleCI.
After the deploy: traces and alerts. LangSmith, New Relic and Slack at Dolado; Langfuse on my own product.
The team’s rituals: dailies on a fixed Mentimeter deck answered by QR code, long subjects taken to their own conversation; reviews and retros in the same format, scored 1 to 6 on fixed criteria (speed of delivery, collaboration with the other teams, quality of the product) plus two open questions, how it went and what to improve; presenters rotating, so the quiet ones spoke too; an energy check from 1 to 5 in every daily, and when it was low at the start of a sprint I acted, once by moving the Friday coffee, with online games on Discord, to a Tuesday; a weekly dojo on AI Engineering, a chapter and a topic.
With AI today: most of the code comes out of Claude Code under guardrails: architecture rules in markdowns the agent must read before editing, commits blocked until the tests pass, scripts that catch its typical errors, skills for the recurring tasks.
Marketplace catalogue
A free digital catalogue for small shops in low-income neighbourhoods and small cities during the pandemic. A shop got a page and a link, shared it over WhatsApp, and took card or cash at the door.
· I built the website in Next.js and React: search, shop signup, cart, checkout, account.
· I built the Express and MySQL backend: search with Algolia, payments with Asaas (card and bank slip), SMS with Twilio, push with OneSignal, photos on S3.
· I learned TypeScript and React Native from the senior contractors and took over the app when they left: home, regions, search, shop, product, checkout, payment.
More detail
The pandemic closed the shops. The owners sold over WhatsApp, and the senior contractors who had started the mobile app left.
The app, and what was under it
· Screens: home, regions, location, search, shop, product, checkout, payment method, card, login, signup.
· React Native, Redux, OneSignal for push, geolocation for the shops near you.
· Backend: Express on MySQL. Search with Algolia. Payments with Asaas, card and bank slip. SMS with Twilio. Photos on S3.
· The link a shop shared on WhatsApp opened the same catalogue on the web.
What I did in 2020
· I built the website in Next.js and React: search, shop signup, cart, checkout, account.
· I built the Express and MySQL backend: search with Algolia, payments with Asaas (card and bank slip), SMS with Twilio, push with OneSignal, photos on S3.
· I learned TypeScript and React Native from the senior contractors and took over the app when they left: home, regions, search, shop, product, checkout, payment.
The catalogue, drawn
· A shop’s link, shared on WhatsApp, opens its page on the Next.js site or in the React Native app; both talk to the Express and MySQL API. Around it: Algolia for search, Asaas for card and bank-slip payments, Twilio for SMS, OneSignal for push, photos on S3.
· In 2020 a Nightwatch end-to-end suite ran before each deploy, with GitHub Actions and Docker.
The website
· Next.js with React and Material UI, deployed on Vercel: overrides on overrides, and !important where they fought. I tidied that component box in the projects that followed.
· Pages: search, shop signup, cart, checkout, account, help; the merchant side with my sales and product registration.
· An end-to-end suite with Nightwatch, GitHub Actions, and Docker gated the deploys in 2020. A year later, with nobody maintaining it, it broke and I had to turn it off.
B2B marketplace & integrations
A B2B marketplace where small retailers, some of them shops from the catalogue, restocked at wholesale prices from suppliers Dolado negotiated: one Shopify store of Dolado’s own, a headless Next.js storefront in front of it, and behind it an Express monolith in TypeScript that kept the ERP, shipping, payments and fraud checks in sync.
· I built the headless storefront: Next.js on the Shopify Storefront API with GraphQL and Apollo, the checkout and the cart left to Shopify.
· I built and maintained the backend: an Express monolith in TypeScript from its first commit, with the request, response and middleware types written by hand, Joi validators, and the integrations: Shopify webhooks, TOTVS and Bling (the ERPs), Intelipost (shipping), Asaas (payments and Pix), Konduto (fraud).
· I built the data-analysis project on the default: Shopify orders, the credit base, Konduto and the ERP’s customers in pandas; k-means on PCA with silhouette scores, correlation heatmaps and a random forest for feature importance; the credit rules changed from it, the bank slip only after two paid orders and a limit per customer.
· I took the team from JavaScript to TypeScript, gradually, and moved the monolith to NestJS in 2023. For the web projects that followed I chose Chakra UI as the component base, at the product lead’s request: the same model as the styled-system library I had used on the B2B front, already built.
· I wrote the Terraform for the Shopify infrastructure and the CircleCI pipelines that deployed it.
More detail
The buy-now-pay-later by bank slip brought a high default rate: accounts opened to never pay, code-red meetings, and a fraud check that took days and delayed orders.
· I onboarded and mentored the engineers who joined the team.
The storefront
· A headless Shopify shop: Next.js on the Storefront API with GraphQL and Apollo, the custom React front the merchants used to order.
· Login through Shopify Multipass; the cart and the checkout stayed in Shopify.
· The Shopify service received the webhooks and kept products, stock and orders in sync with the ERP; it moved to NestJS in March 2023.
The monolith, typed by hand
· Express and TypeScript from the first commit, in March 2021, before NestJS: generic request and response types, typed middlewares and error handlers, Joi validators on every route.
· Most of the work was integrations, kept in sync both ways: Shopify (products, orders, webhooks), TOTVS and Bling for the ERPs, Intelipost for shipping, Asaas for payments and Pix, Konduto for fraud checks, Take Blip for WhatsApp.
· A shared validation package, mostly mine, served the fronts and the backends.
· In March 2023 the monolith moved to NestJS; the team moved to TypeScript gradually before that.
The default, and what the data said
· The buy-now-pay-later was a bank slip due in fifteen days. Some accounts were opened to never pay one. Konduto came in for fraud, but took days to approve and delayed orders.
· I put the Shopify orders, the credit base, Konduto’s decisions and the ERP’s customers into pandas: scaling, PCA, k-means with silhouette scores, Pearson, Kendall and Spearman correlations, a random forest for feature importance, radar charts per cluster.
· From it, with others’ input, the credit rules changed: the bank slip only after two paid orders and a credit limit per customer.
The marketplace, drawn
· Retailers ordered on a headless Next.js storefront over Shopify’s Storefront API; the cart and the checkout stayed in Shopify, one store of Dolado’s own. Shopify’s webhooks reached the Shopify service (Express at first, NestJS from March 2023) and the monolith: Express in TypeScript typed by hand, which kept TOTVS and Bling (the ERPs), Intelipost (shipping), Asaas (payments and Pix), Konduto (fraud) and Take Blip (WhatsApp) in sync, both ways, over SQS and SNS queues with a dead-letter queue each.
· Terraform modules in the company’s infrastructure repository and CircleCI deployed it. MySQL and PostgreSQL under the services, Redis beside them.
The toolbox: Material UI to Chakra UI
· The 2020 web was Material UI with overrides on overrides, and !important where they fought.
· The first React Native app, started by the senior contractors, used the styled-system library over styled-components: a theme of fixed scales, a few base components, variants for everything. I took that model to the web on the B2B front in 2021; most of its commits are mine.
· Later, already on the backend, the product lead asked me to choose the base for the web projects that followed. I chose Chakra UI: the same model, already built. Developers stopped rebuilding components, the screens came out consistent, every variant had one place to change, and whoever joined had a standard to follow.
· This site runs on Panda CSS, from the same team, under one rule: application code never styles anything.
The integrations, one by one
· Shopify: the storefront and the checkout. TOTVS and Bling: the ERPs, stock and invoices. Asaas: payments and Pix.
· Intelipost: shipping quotes and tracking. Konduto: fraud checks on orders. Take Blip: WhatsApp with the shops.
Legacy commerce platform
A dropshipping platform the company acquired, on which sellers sold suppliers’ products on Mercado Livre, Shopee, Amazon, Magalu and other marketplaces. Legacy PHP: about 560 Lambda functions built by hand, in PHP and several Node.js versions, behind API Gateway; SQS queues; cron jobs that kept sellers’ accounts connected.
· I finished the parent-account model: per-user product rules and custom kits.
· I built one-click listing per marketplace and automated account onboarding with per-step metadata and reprocessing.
· I led the investigation and most of the fixes for the morning outages: a database user per service, which showed the PHP as the main consumer and the Lambdas holding connections after the peaks; a refactor across 455 PHP files so each request shares one database instance; health checks that test the database; batches of 15 to 20 as the stopgap; RDS tuned with a writer, a read replica and RDS Proxy in front to hold the connections; the wallet balances updated under pessimistic locks with a deadlock retry.
· I added logs and traces to the Cronicle jobs so a failing seller token was visible, the visibility the bought software never had.
· I found an exposed AWS key from an insecure PHP app, killed the rogue instance it had spawned, destroyed the infrastructure that was not ours, traced every exposed key and user in CloudTrail and rotated them.
More detail
The vendor had left the parent-account model half delivered. From 6 am, logistics issued invoices in batches of about 50, hundreds of orders in minutes. Each invoice fired a chain of PHP processes, each with its own MySQL connection, and a stock sync to every listing on every marketplace through Lambdas and queues. The RDS limit blew, logistics froze, and the services that shared the database went down with it. Not every spike was the batch: once, a browser tab stuck in a loop fired the same request over and over. Every seller had to re-authorise each marketplace every two months or so; whoever forgot stopped receiving orders, and nobody knew, because the bought software had no visibility of it. Some PHP errors were swallowed by empty catch blocks or crashed a job without a log. Shopee’s logistics channels came back as objects and the refresh job crashed until the fix.
· I rebuilt error handling and observability: exceptions logged to S3 and Slack instead of swallowed, integration problems recorded per seller, shown in the hub and emailed, and threshold dashboards alerting on Slack. New Relic was already there, for the logs and traces of the minutes before each crash.
· What ended the outages: invoices issued on demand from the order-status workflow instead of the morning batch. The workflow is mine; the NFe.io issuer behind it I drew with the developer who built most of it, broke into tasks, paired on and coded parts of. It shipped behind a toggle we never switched on.
· I mapped every error the platform threw with DuckDB over its logs, on my machine, because pandas could not hold them: the families, how often, what each could cost; the plan for the next months came from it and the pivot cut it short.
· I rebuilt the queues in Terraform, each with a dead-letter queue, wrote the worker and ECS Fargate modules, moved the PHP from EC2 to ECS Fargate, and automated the Lambda deploys through CI/CD, uploading only the functions whose code changed. I stopped a month-long attempt to put all the Lambdas under the Serverless Framework when the deploy hit the API Gateway resource limit.
The platform, drawn
· The marketplaces, the carriers and the fiscal system talk to API Gateway and about 560 Lambda functions, one endpoint each, in PHP and several Node.js versions; behind them a framework-less PHP core on ECS Fargate and a NestJS service on Elastic Beanstalk, ten SQS FIFO queues with a dead-letter queue each, MySQL on RDS, MongoDB and Redis, Cronicle for the jobs.
· The invoice chain that broke every morning: issue the NF-e, send it to the marketplace, sync the stock to every listing, each step its own PHP process with its own connection. The cut: one database instance per request, a database user per service, and the invoices moved from the batch into the order-status workflow.
Knowing when to stop
· The platform came with about 560 Lambdas built by hand in another AWS account, in PHP and several Node.js versions, with different layers and settings. In the migration to Dolado’s account I took them on and set out to automate all of them with the Serverless Framework.
· About a month in, almost done, the deploy hit two limits: the CloudFormation stack size, which splitting the stacks got around, and the API Gateway resource limit, which raising the quota would only postpone. The real fix was splitting the API by domain, a reorganisation too large for the moment.
· I stopped. The Lambdas stayed outside the infrastructure code, and a CI script uploads only the functions whose code changed. Other work shipped in that month.
· I do not give up easily and I am stubborn about finishing what I start. Here it kept me on the Serverless setup for a month longer than the result deserved.
The error map
· In 2024 I was still a full-stack engineer without a lead’s title. The platform accumulated errors of many kinds, each marketplace its own: Mercado Livre’s stock sync against a rate limit that depended on the account’s level; Shopee returning unexpected fields in the variations, which meant stopping, investigating and fixing the code; Amazon and the others with theirs; and a family of refresh-token failures, a seller without a field filled in, a cron job broken by something external. The queues retried, but wrong stock still sold what was not there.
· I wanted a map of all of it: which errors, how many, how often, and what each could cost in revenue, to decide what to fix first. The error logs were too large for pandas, which loads everything in memory; DuckDB queries the files where they are, and took the analysis from hours to minutes, on my machine.
· Primary and secondary errors, counts and frequency, a clustering by type, and for each group its severity and the revenue at risk. The result was a plan of improvements for the following months, which the team started on; the company pivoted halfway and the plan was never finished.
The fix we switched off
· Sellers created catalogue listings straight on Mercado Livre, outside the platform, and those listings lost sync. The product managers fixed them by hand every morning, 10 to 15 minutes a case, about 20 cases a day, until leadership asked for an automatic fix inside the sprint already running.
· I designed the solution with the developer who would build it (a new Mercado Livre webhook, a separate workflow, changes in Lambdas and queues), came to about three weeks of one backend developer full time, and took that to the conversation next to how many sellers it affected and how much revenue those orders were (both small). I named the risk to those sellers’ reputation and proposed keeping the manual fix until the sprint ended.
· It was postponed, then prioritised; I helped design and break the work down, and soon after it went live we were asked to switch it off. As far as I remember, linking listings automatically put our own sellers against each other for the same catalogue listing.
· I still do that: before stopping the team for an urgent request, I check who it affects and what it costs.
The platform, as it was
· API Gateway in front of about 560 Lambda functions, roughly one endpoint each, in PHP and several Node.js versions: SKUs, orders, hub, subscriptions, companies, users, purchases, carriers, taxes.
· A PHP service, framework-less, on ECS Fargate, holding the sales channels, invoices, carriers, labels, charges, and subscriptions.
· A NestJS service in six environments on Elastic Beanstalk: the API, callbacks, the webhook worker, the worker, payment gateways, invoices.
· Ten SQS FIFO queues, each with a dead-letter queue, rebuilt in Terraform: invoices, NF-e, callbacks, payment gateways, carrier EDI, webhooks, invoice email, stock balance, reports, the worker.
· MySQL on RDS for the ledgers, MongoDB for audits and events, Redis for cache. Cronicle for the jobs. New Relic and Sentry watching.
· Terraform for the queues, the worker and ECS services, and the PHP on Fargate; CircleCI for the deploys. RDS and the Lambdas stayed as they were.
One order, station by station
· A callback or a webhook from the marketplace puts the order on the queue.
· The order-status workflow: validate the seller’s tax model and the suppliers’, update the wallet, find the NF-e templates, create the invoices, issue them, validate they were issued, close the order, update the SKU balance.
· Picking list, packing, the label (Correios or the carrier’s own), the carrier’s collection list, the EDI files back from the carrier, tracking until delivered.
· The SKU balance goes back to every marketplace listing. The seller’s sales count and the listing’s health are what the marketplace shows for it.
Who the platform talked to
· These integrations came with the acquired software; I adapted and maintained them.
· Marketplaces: Mercado Livre, Shopee, Amazon, Magalu, Americanas, Via, Netshoes, Carrefour, Dafiti, Leroy Merlin, MadeiraMadeira, Olist, Mobly.
· Shops and ERPs: Shopify, VTEX, WooCommerce, Tray, Bling, Tiny, Magento, Loja Integrada, Linx.
· Payments: Asaas, Mercado Pago, Pagar.me, boleto files for the banks. Antifraud with ClearSale.
· Carriers: Correios, Intelipost, Jadlog, Melhor Envio, Mandaê, Total Express and others, with a carrier auction for quotes.
· Fiscal: NF-e, CT-e, and city service invoices through the Brazilian fiscal libraries, with tax tables for ICMS.
AI agent platform
An agent system that does the market analyses our analysts used to do by hand in spreadsheets, for a full-commerce company helping brands sell on Mercado Livre and the other marketplaces. I led the team of five that built it. It runs weekly in production: a normal analysis that took 7+ hours of hands-on work, and 24+ for a complex one, takes about fifteen minutes.
· I identified the need, studied LangGraph and proposed the redesign: breaking the single prompt, thousands of lines long and with every tool at every step, into two or three subgraphs of specialised nodes with narrow prompts, structured JSON between them, a hand-picked model per node, token accounting, and real-time streaming. I worked out the design with the developer on the team who built it.
· I structured the MCP server from scratch and implemented a large part of it: browser automation, database questions in plain language, marketplace APIs, reports and presentations. The team kept adding tools.
· What broke in production, and what we fixed as a team: context truncation with summaries of earlier analyses, SQL checked for syntax and column existence with a corrective loop, a math tool over MCP because models fumble arithmetic, key rotation and queued backoff for rate limits.
· I ran weekly dojos that took the team from no AI experience to agents in production in four to five months; one of them was a reflection session on our own problems: scaling automations with five developers, adoption inside the company, and tying short-term work to where the company was going.
· I designed and ran hiring end to end.
More detail
The analysts worked in Excel: 7+ hours of hands-on work for a normal analysis, 24+ for a complex one, files split by hand at the row limit. The first agent was one big prompt with every tool at every step. In production it lost focus, blew its context window, hallucinated SQL, hit rate limits, and we could not tell where it failed. The team had never shipped anything with an LLM.
The failure, and the redesign
· Before: the market intelligence team answered questions in Excel and Power BI, split files by hand at the row limit, then spent hours building slides.
· Version one, June 2025: one flexible agent, one prompt, all tools at every step: a router, an analysis node, a strategic consultant, a validate node, a memory cleanup. It failed in production: the prompt kept growing, the context window truncated answers, SQL referenced columns that did not exist, failed queries were handled badly.
· Version two, August 2025, my proposal, designed with the developer who built it: the single prompt, thousands of lines long and with every tool at every step, broken into two or three subgraphs. One does the full analysis step by step, with 15 to 20 text-to-SQL queries: get the category’s information; validate that historical data exists; generate the report; structure it. One answers ad hoc questions, such as the top products in a category, because the output differs. Nodes are reused across subgraphs, sometimes with fewer tools or another prompt; some nodes retry. Each node has a narrow prompt and only its tools. Structured JSON passes between them, so the context of each step stays small, and each step can validate and recover.
· The most common failure was the table validation, at least ten rows per topic, when data was missing or the text-to-SQL got it wrong.
· A model per node, chosen by hand: Claude Sonnet 4 for the planner, GPT-4.1 for the invokers and the structurer. Token accounting per run. Streaming to the chat. Node-level observability in LangSmith, from the first month.
· Evaluation, from the first month and for more than six months: a weekly side-by-side review of the agent’s analyses against the analysts’ spreadsheets, scored 1 to 5 and tracked in Notion, beside the LangSmith traces. Many of the sprint’s Jira cards came out of that review.
· A structured intermediate layer, so one analysis fans out into a report, a presentation, text insights, charts, and raw data.
· Production fixes: truncate before processing and keep what matters; validate SQL for syntax and for columns that exist, and feed the error back once; a math tool exposed over MCP; API tiers, key rotation, queued backoff; one leading system message, because the framework and the model disagreed about where it may sit.
The MCP server
· A Model Context Protocol server the agents call for tools, structured from scratch by me and largely implemented by me.
· Browser automation with Playwright for the marketplace pages. Extraction with Cheerio and Zod schemas.
· Database questions in plain language through a self-hosted text-to-SQL layer; the data lake and the analytics database behind it were built by a data engineer on the team.
· Marketplace APIs for Mercado Livre.
· Reports: PDF and presentations through a self-hosted slide generator made asynchronous with a job queue.
What people used it for
· We planned one use: the default market report, a whole subcategory over a period.
· By tracking usage, four more appeared: deep-dives on a few sections with the terms to ignore; ad-hoc questions (“the top brands by revenue”) without a full report; walking the category tree for other research; extracting prices from specific listings for competitive analysis.
· From the chat: a report, a presentation, charts asked for in plain language, all generated from the same analysis.
· By the end people used it as a research tool, not only a report generator, because it stayed a chat and we watched how it was used.
The agents, drawn
· The chat (Next.js on Vercel) talks to the agents service (NestJS, LangGraph) over a stream. The first version was one flexible agent with every tool at every step; the redesign broke its prompt into two or three subgraphs: one for the full analysis, step by step (get the category’s information, validate that history exists, generate the report, structure it; 15 to 20 text-to-SQL queries), one for ad hoc questions, with nodes reused across them. A planner on Claude Sonnet 4, the invokers and the structurer on GPT-4.1. Structured JSON passes between the nodes.
· Beside the service, the MCP server I structured from scratch, with 40+ tools: browser automation with Playwright, the Mercado Livre API, database questions in plain language through text-to-SQL, reports and presentations.
· The analytics database and the data lake behind the text-to-SQL were built by a data engineer on the team. LangSmith traces every node, from the first month; token accounting per run.
How the team ran
· Dailies on a fixed Mentimeter deck, answered by QR code; long subjects moved to their own conversation.
· Reviews and retros in the same format: scores from 1 to 6 on fixed criteria (speed of delivery, collaboration with the other teams, quality of the product), then two open questions, how it went and what to improve. Presenters rotated, so the quiet ones spoke too.
· An energy check from 1 to 5 in every daily. When it was low at the start of a sprint I acted: once by moving the Friday coffee, with online games on Discord, to a Tuesday.
· Before a big feature we drew it together in Excalidraw and the drawing became the cards. Pair programming on the hard parts was how I mentored the juniors.
· The weekly dojo: a chapter of AI Engineering presented by one of us and a topic someone brought. From no AI experience to production in four to five months.
· Adoption: the agent ran beside the analysts’ spreadsheets for more than six months, in a weekly side-by-side review scored 1 to 5 and tracked in Notion; many of the sprint’s Jira cards came out of it. The intelligence team stayed the owner of the process.
Three things I would tell another CTO
· The first agent, one prompt with every tool, showed us which analyses people asked for; the specialised nodes made the answers reliable.
· The agent ran in parallel with the spreadsheets for more than six months, in a weekly review scored 1 to 5, so the analysts compared its results with their own before they trusted it. The intelligence team stayed the owner of the process and its quality; their work moved from manual execution to insight and the client; the agent is their tool.
· We tracked how it was used: we planned one use and ended with five.
A product of my own
AI-generated personalised audio for professionals, designed for attention and deep thinking. Built end to end in about two months with Claude Code, under architecture, test, and eval gates.
· NestJS API, hexagonal: PostgreSQL, TypeORM, Redis and BullMQ workers, a multi-LLM agent orchestrator streaming over SSE, human-in-the-loop pauses, tool-call observability, text-to-SQL memory with full-text search, an MCP server for agent tooling.
· Python LLM and speech service: LiteLLM routing across Anthropic, OpenAI, DeepSeek and Gemini, with Groq and a local Ollama as fallbacks, routed by quality or speed; Kokoro for speech, which replaced Coqui’s XTTS in April 2026, with XTTS back beside it in May for a cloned voice; Whisper to hear the weekly goals a user sets by voice; pre-rendered filler phrases in Portuguese and English to hide the latency, Portuguese being the slower side; Langfuse tracing.
· An Expo and React Native app with Tamagui and tokens-only design discipline; a Next.js site with Chakra UI and Playwright visual-regression baselines as a pixel contract.
· promptfoo evals with LLM-rubric judges gate every prompt change. Every repository blocks a commit that fails architecture, tests, or lint.
· After the tests I paused it.
More detail
No team, no company. Moderated tests with a small group of early users showed that everyone used it to consume faster while doing something else.
The app and the architecture
· Human-in-the-loop pauses and visible tool calls while an episode is built.
· The player shows the transcript as it is read.
· Four repositories: the API, the app, the site, the LLM and speech service. About a thousand commits in about two months.
· API: NestJS, hexagonal (interfaces, domain, infrastructure), PostgreSQL, TypeORM, Redis, BullMQ, SSE, JWT, an MCP server.
· Speech and models: LiteLLM in front of Anthropic, OpenAI, DeepSeek and Gemini, with Groq and a local Ollama as fallbacks; Kokoro and XTTS for speech; Whisper for the voice-set weekly goals; Docker Compose for all of it.
· App: Expo, React Native, Tamagui, Zustand, Reanimated. Site: Next.js 15, React 19, Chakra UI v3, Playwright.
· Quality: promptfoo evals gate every prompt change.
· Every repository blocks a commit that fails the architecture read, the tests, or lint.
My product, drawn
· The app (Expo, React Native, Tamagui) and the site (Next.js, Chakra UI) talk to the API: NestJS, hexagonal, on PostgreSQL with Redis and BullMQ workers, streaming over SSE, with an MCP server for the agent’s tools. Behind it the LLM and speech service in Python: LiteLLM in front of Anthropic, OpenAI, DeepSeek and Gemini with Groq and a local Ollama as fallbacks; Kokoro and XTTS for speech, Whisper to hear the weekly goals. Langfuse traces all of it.
· Every repository blocks a commit that fails its gates: the agent must have read the markdowns, the tests and lint must pass, scripts catch its typical errors; promptfoo evals gate every prompt change. The hooks by name: require-architecture-read, pre-commit-check, guard-secrets; the app adds check-design-system, check-hardcoded-strings and check-pt-copy.
Education, courses, languages
B.S. Computer Engineering · Insper, São Paulo · 2016 to 2021 · Honours for the capstone: a mobile app for visualising an investment portfolio.
Tech Ethics: Critical Thinking in the Age of Apps, Algorithms, and AI · HarvardX · completed 2026
Digital Wellbeing · University of York · completed 2026
Portuguese, native · English, fluent
Reading about now
Children’s digital protection in Brazil
Law 15.211 of 2025, the ECA Digital, in force since 17 March 2026: the first Brazilian law to put rules and penalties directly on digital platforms where children and adolescents may be. I have been reading the law and the decree and mapping what each kind of product owes.
More detail
· Five pillars: age verification and access, reinforced parental supervision, prevention and protection, dangerous content, and commercial exploitation.
· Scope is triggered by probable access, whether or not the product is aimed at minors.
· Verification at every access is the heaviest obligation in the law, and the technical format of the age signal is not standardised yet.
· As practice, I started a small NestJS service for a fictional network of thirteen-to-seventeen-year-olds: a reporting channel with a documented flow and proof of what was done with each report, as the law asks.
· I follow it beyond the text: the talks, the events around it, the regulator’s public sessions.
“Attention is harvested from children who cannot consent, by systems built to hold it.”
“The harm a technology does is understood years after it ships, and restricted years after that. Tobacco took decades. Slot machines took decades. This took until 2026.”
“The child appears here as a party with rights, and in every product on the market as the object of somebody else’s settings.”
Attention, and what software does to it
The 2026 shelf: twenty-odd books on attention, technology, and the mind, read this year. Two courses this year: Tech Ethics (HarvardX, completed) and Digital Wellbeing (University of York, completed).
More detail
· The product in the studio came out of this reading, and so did the decision to pause it.
· I write about it: on AI latency as a variable reward for developers, and on what the economics of AI do to software work.
Writing
Why the uncertain latency and quality of AI tools work on developers like a slot machine.
Principles for building software when production is cheap and judgment is the bottleneck; an eleven-slide carousel on LinkedIn.
How this site was built
Built with Claude Code under its own gates: lint, the types, every test, a structure check, a design-system audit and a git hook ran before anything landed.
Next.js 15 and React 19 in a pnpm monorepo, Panda CSS in strict mode under one rule: application code never styles anything; it composes components and chooses variants. Most of the code came out of Claude Code and had to pass the checks before it stayed.
The styling came from the styled-system library on the 2020 app, then Chakra UI from 2021, and Panda CSS here, all from the same team.
The illustrated tour, with the code
The rule
A pnpm monorepo with two packages: the site, which only composes, and the design system, the only place anything is styled. The rule is written in the file the agent that builds the site reads first.
CLAUDE.md
## The one rule
Application code never styles anything. It composes design-system
components and chooses variants. Styling exists only in
`packages/design-system`. Hooks, ESLint, and `pnpm ds:audit`
block violations; fix them, never work around them.
Styling
Panda CSS in strict mode: tokens only, no raw values. Every surface in the world is one recipe, Paper, with its stocks as variants. A scene picks a stock; it never writes a colour.
packages/design-system/src/primitives/Paper/recipe.ts
export const paper = defineRecipe({
className: 'paper',
description: 'A sheet of paper: the only surface in the world.',
variants: {
stock: {
kraft: {
color: 'paper.kraft.fg',
_before: { backgroundColor: 'paper.kraft.bg' },
},
cream: { … }, black: { … }, tracing: { … },
},
cut: { hard: {}, soft: {}, torn: {}, none: {} },
lift: { rest: {}, lifted: {}, pinned: {} },
},
})
A scene
The desk on the first screen is a few primitives placed on a 16:9 stage in percentages: a Place, a Laptop, an Opens around it. No element, no class, no style prop; lint fails on them.
apps/web/src/scenes/Summary/index.tsx
<Place x={34} y={45} w={35} depth="near">
<Opens opening={builtWith} cue="open">
<Laptop label="my laptop: a terminal with a test run and a commit" glow={night}>
<LaptopScreen />
</Laptop>
</Opens>
</Place>
Lint
ESLint forbids every HTML and SVG element, every style and className prop, and every colour or length literal outside the design system. Panda rejects raw values. A mistake fails the check before any review.
eslint.config.mjs
{
files: ['apps/**/*.{ts,tsx}', 'packages/design-system/src/**/*.{ts,tsx}'],
ignores: STYLING_ALLOWED,
rules: {
'react/forbid-elements': forbidElements([...HTML_ELEMENTS, ...SVG_ELEMENTS]),
'react/forbid-component-props': forbidStyleProps,
'react/forbid-dom-props': forbidStyleProps,
'no-restricted-syntax': noValueLiterals,
},
}
The manifest
A manifest lists every recipe, variant and prop the design system may have. A hook on the agent’s edits blocks a recipe or a prop the manifest does not know; the audit fails on anything declared and unused, or used and undeclared.
packages/design-system/INVENTORY.json
"bubble": {
"purpose": "The puppet’s dialog, as in LittleBigPlanet: a solid rounded band under the frame …",
"slots": ["root", "box", "tail", "tag", "body", "count", "ask", "dot", "dotOn", "tally", "prev", "next"],
"variants": { "tone": ["clay", "navy", "forest", "sodium", "drafting", "amber"] }
}
The checks
Lint, types, the tests of both packages, the folder convention and the design-system audit, in one command; a git hook runs it before a commit lands. The audit also checks every text tone on every paper stock for contrast.
package.json
"check": "pnpm lint && pnpm typecheck && pnpm test && pnpm structure && pnpm ds:audit"
$ pnpm check
Test Files 32 passed (32)
Test Files 1 passed (1)
check-structure: ok
· contrast: tracing is translucent; checked against cream underneath
ds-audit: ok
Moving the view
On phones, and on wide screens when a scene is wider than its frame, the stage is a picture larger than the window that shows it, and the camera is a transform driven by three custom properties: where it looks, and how far in. Each line of the dialog changes them; the scene’s code moves the values on its own easing curve.
packages/design-system/src/primitives/Scene/recipe.ts
picture: {
aspectRatio: 'stage',
transform: 'translate(calc((50% - var(--cx, 50%)) * var(--cz, 1)), calc((50% - var(--cy, 50%)) * var(--cz, 1))) scale(var(--cz, 1))',
transformOrigin: 'center',
// no CSS transition: the Scene’s engine moves the variables itself, on the cinematic ease
}
Every commit
Most of the code came out of Claude Code. Every commit passed the hooks above, the lint, the audit and the check, plus screenshots at every size read line by line before anything is reported. The styling’s lineage: the styled-system library on the 2020 app and the B2B front, Chakra UI chosen in 2021, Panda CSS here, from the same team.
scripts/claude/post-edit-check.mjs
// PostToolUse hook: after Claude edits or writes a file in apps/ or packages/, lint it and run the
// design-system audit. Any violation exits 2, which feeds the errors back to Claude as a blocking
// message. The edit stays on disk; Claude must fix it before moving on.
The library
Some of my books, not all of them.
The shelves
The Anxious Generation, Haidt
The Shallows, Carr
Digital Minimalism, Newport
Dopamine Nation, Lembke
The Attention Merchants, Wu
Amusing Ourselves to Death, Postman
Technopoly, Postman
Stand Out of Our Light, Williams
The Chaos Machine, Fisher · unfinished
Soft-Wired, Merzenich
Weapons of Math Destruction, O’Neil · unfinished
Infocracy, Byung-Chul Han
Superbloom, Carr
The Brothers Karamazov, Dostoevsky
The Idiot, Dostoevsky
Demons, Dostoevsky
Notes from Underground, Dostoevsky
The Double, Dostoevsky
Bobok, Dostoevsky
Dead Souls, Gogol
The Overcoat, Gogol
Hamlet, Shakespeare
As You Like It, Shakespeare
The Empire of Fashion, Lipovetsky
Civilization and Its Discontents, Freud
Group Psychology, Freud
The Uses of Enchantment, Bettelheim
Man and His Symbols, Jung
The Myth of Sisyphus, Camus
Liquid Modernity, Bauman
The Condition of Postmodernity, Harvey
Raízes do Brasil, Buarque de Holanda
The Lean Startup, Ries
The Mom Test, Fitzpatrick
The Innovator’s Dilemma, Christensen
Competition Demystified, Greenwald
No Rules Rules, Hastings & Meyer
Disciplined Entrepreneurship, Aulet
Factfulness, Rosling
Invisible Cities, Calvino
Tools for Conviviality, Illich
Thinking in Systems, Meadows
Howl, Ginsberg