
https://www.nitter.cf/t.co/WIInSHSiO1 Founder
Joined October 2008
- Tweets613
- Following1.6K
- Followers1.5K
- Likes2.9K
Alex Patterson is working on @CodingCatDev retweeted
One AI agent is a loop. A swarm is many loops held together by a protocol. I wanted to record a full video on Gemini 4 Neon + Antigravity /swarm, but I am way too busy heading to AWS re:Invent. So I built an interactive /swarm simulator right inside the post instead.
We recently fire two just-add-water chatbots on @sanity_io, and replaced them with our own custom-built agent.
We're already seeing about 3x the first-stage sales opportunities and can offer our users an agent with up-to-date context and can know who they are (if they want it to).
Under the hood:
→ We're running @typesafeai's Jev on every turn to answer typed questions (intent, audience, rapport, did they just say "no thank u"). We added rules in code to decide what renders (more chat, booking form, etc). It's cheap and fast!
→ @eve made it really easy for us to plug all the pieces together and ship this fast. Like in production within two weeks fast (had to get it out before the old agent contract ran out). We can now run the same agent across the website, in the sales form, on Discord, and wherever else we need it to go.
→ Our recently GA'ed Sanity Context with Knowledge Bases powers the context layer, so now we're walking the talk by literally staking our business on this stuff working well.
And we're keeping the agent rules, prompt, guardrails as content in Sanity, not code, so we can very quickly improve agent behavior without deploying it again. And we used our App SDK to build a custom agent console to give us the observability, emulation, and other tools to keep this agent tight.
@even, @phofstee, @spaghetti_emoji, and I wrote down the lab notes and the hard-earned learnings. It's a good read if you want to do something similar!
sanity.io/engineering/how-to…
Alex Patterson is working on @CodingCatDev retweeted
In 2026, anyone can prompt an AI to scaffold a generic todo app in 30 seconds. Tutorial clones on a resume no longer prove you can engineer software. Hiring teams look for real system design, failure recovery, and open source PRs. Full breakdown in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Spinning up 5,000 stateless V8 isolates at the edge is fast until they all open TCP connections to a single Postgres instance and exhaust your pool. Here is how Cloudflare D1 moves SQLite directly to the Worker binding with sub-5ms cold starts. Reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Most React bugs in production come from syncing derived state inside useEffect instead of modeling state transitions cleanly. In Course 6 of our Odin Project series, we rebuild React 19 state architecture with strict TypeScript. Details in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Spinning up a separate Python microservice just to run tool-calling AI agents in a TypeScript web app adds schema drift, duplicated auth, and extra infra. You can build deterministic, type-safe agent loops directly in TypeScript. Overview in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Most production bugs in modern React or Node apps trace back to fundamental JavaScript mechanics: lexical scope leaks in closures, microtask starvation in the event loop, or untested async error paths. Full Course breakdown in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
In 2026, anyone can prompt an AI to scaffold a CRUD To-Do app in 30 seconds. Tutorial clones on a resume no longer prove you can engineer software. Hiring managers look for production telemetry, real auth, and edge state. Full breakdown in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Spinning up a separate Python microservice just to run an AI agent loop adds serialization overhead, duplicate auth, and schema drift. You can build production tool-calling agents directly in your TypeScript stack. Full course overview in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Spinning up a separate Python microservice just to run an AI agent loops your team into maintaining two runtimes, two type systems, and duplicated schemas. You can build production full-stack agents entirely in TypeScript. 👇
Alex Patterson is working on @CodingCatDev retweeted
You do not need a separate Python microservice just to run production AI agents. Sharing Zod schemas, tool definitions, and streaming state end to end in TypeScript eliminates serialization drift across your stack. Full Course overview in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
When a React component tracks separate isLoading, isError, and data booleans, nothing stops both isLoading and isError from being true at once. TypeScript discriminated unions make impossible UI states unrepresentable. Breakdown in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
In 2026, an LLM can scaffold a CRUD To-Do app in 30 seconds. Hiring managers skip tutorial clones and look for production signals: auth boundaries, rate limiting, schema migrations, and real failure handling. Full walkthrough in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Why did legacy CSS :invalid turn every required input bright red the millisecond the page loaded? That single flaw forced years of bloated JS form state. Here is how :user-invalid and the FormData API fix native HTML forms. Walkthrough in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Most web teams do not need a separate Python microservice just to run tool-calling AI agents. Running agents directly in your TypeScript stack eliminates cross-language serialization drift and duplicate Zod schemas. Full course overview in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Connecting thousands of stateless V8 isolates to a traditional Postgres server over TCP quickly exhausts your connection pool. Here is how Cloudflare D1 moves SQLite directly to the edge with sub-5ms cold starts. Full walkthrough in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Most production JavaScript bugs trace back to four core mechanics: lexical closures, prototype chains, event loop microtask starvation, and untested async state. We just dropped Part 4 of our JavaScript Deep Dive course to fix that. Video in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Opening a pull request with twelve 'WIP' and 'fix typo' commits makes code review painful and breaks git bisect later. Here is how to decide between merge commits and interactive rebase so your Git history stays clean. Walkthrough in the reply 👇
Alex Patterson is working on @CodingCatDev retweeted
Most production React and Node bugs are not framework bugs. They are JavaScript fundamentals bugs: stale closures, unhandled promise microtasks, and leaky state. Part 4 of our Odin Project series tackles the JS runtime head-on. Details in the reply 👇


