Field notesfrom the build.
Practical writing about engineering graphs, AI agent architecture, TypeScript, product systems, and the lessons that only show up after shipping.

Your Grok Bot Limit Isn't Too Small. Your Bots Are Busy While You Sleep.
Why weekly Grok Bot limits run out in 1 to 3 days, what X users are reporting, and 8 fixes that stretch the same plan.

8 Grok Bot Templates You Can Set Up in One Click to Boost Productivity
Free Grok Bot templates for everyday jobs, from a morning AI briefing to meeting notes. Each one drafts, you approve, and only then does anything leave your hands.

Your Agent Should Have Less Access Than You
Snowflake just shipped privilege ceilings for agent sessions. Here is the same pattern as a tiny TypeScript check: agent access is user access intersected with a task ceiling.

One email made my agent leak a card number. Now it's 1 of 36 tiny agents.
36 free tiny agent repos, one guardrail each, sorted into 7 categories by how agents fail in production.

A web page told my coding agent what to do. It never asked me.
A web page dropped an AGENTS.md into Downloads and a coding agent obeyed it. I rebuilt the attack in TypeScript, then stopped it with an 18-line guard.

Your Grok Bot template needs a first assignment
Bobby-alt narration, normal 1x speed, captions included. You import a Bot called Research...

Grok Bot gives you a team. The computer is shared.
Give one Bot research. Give another editing. Let a third prepare the weekly report. That sounds like...

Your agent’s approval button needs a receipt.
You approve a $48 refund. The agent continues working. It reads another message, rebuilds the tool...

The model proposes. The harness decides.
The agent returns a refund request. Valid JSON. Correct tool name. An explanation that sounds...

Your agent demo works. What happens next?
Ship a Safe Agent is open. Start with the free first module. Your agent answers a question. Calls a...

Your Agent Stopped. Its Tool Didn't.
You click Stop. The spinner disappears. The input unlocks. You give the agent a different...

Your RAG Cache Can Resurrect a Deleted Document
You delete a document. The search index catches up. The source URL returns 404. The admin screen...

Agent Memory Just Became Infrastructure
Memory is now a product category on par with databases. The teams that win production agents will treat agent memory like a system of record, not a bigger window.

I Approved My Agent to Delete a Customer. It Still Said No.
I clicked Approve on delete_customer. My agent refused anyway. That is the behavior I want, and it...

I Tried to Make an Agent Like Claude Duet Leak My Card Number With One Email
One poisoned email. A naive inbox agent forwards my card and SSN to an attacker. Then a 19-line TypeScript guard stops it cold. Repo and a break-my-guard challenge inside.

I built a course on shipping AI agents that can't hurt you. Module 1 is free.
Your agent will try to do something you never meant to allow. It will refund an order nobody...

Your Agent's Event Log Is a Test Fixture
Most agent bugs I see aren't model bugs. They're pipeline bugs. A tool ran that shouldn't have. A...

Anthropic Says Fold Your Subagents. Let's Build a Tiny Single Agent Loop in TypeScript.
Anthropic now suggests one agent loop that loads skills and tools on demand instead of a fleet of subagents. Build a tiny TypeScript version with a turn budget and a write gate. No API key.

Google Built a Sandbox With Nothing to Steal. Let's Build a Tiny Credential Gateway in TypeScript.
Google's Agent Compute Engine keeps secrets outside the agent's sandbox and injects them on the way out. Build a tiny TypeScript gateway that does the same. No API key.

AWS Open-Sourced Infinity. Let's Build a Tiny Agent That Sleeps Between Tool Calls in TypeScript.
AWS's Infinity runtime suspends an agent at every tool call and wakes it when the result arrives. Build a tiny TypeScript agent that is pure data between turns. No API key.

Workday Is Buying Identity for AI Agents. Let's Build a Tiny Access Grant in TypeScript.
Workday plans to acquire C1.ai so agents get access when they are registered and lose it when their work or role ends. Build a tiny TypeScript access grant tied to the agent lifecycle: register, grant, check, revoke. No API key.

Google Launched Gemini 4 Argon. Let's Build a Tiny Continuation Loop in TypeScript.
Gemini 4 Argon splits long answers across requests with a continuation token. Build a tiny TypeScript continuation loop that resends the same request, survives dropped streams, raises the cap on MAX_TOKENS, and counts context correctly. No API key.

Cloudflare Gave Agents a Browser That Remembers. Let's Build a Tiny Session Keeper in TypeScript.
Cloudflare's Agents SDK browserTool keeps tabs, cookies, and logins between turns, and reports restarted: true when it loses them. Build a tiny TypeScript session keeper that notices restarts, scopes shared logins, and sweeps idle sessions. No API key.

Anthropic Opened Claude Code Projects. Let's Build a Tiny Project Coordinator in TypeScript.
Claude Code Projects turns one goal into a coordinator plus parallel cloud threads with shared memory. Build a tiny TypeScript coordinator that scopes work, claims files, and assembles results. No API key.

AlphaSense Launched SuperAnalyst. Let's Build a Tiny Assumption Watcher in TypeScript.
AlphaSense's SuperAnalyst keeps working after the first answer by watching the assumptions behind it. Build a tiny TypeScript report that knows what it assumed and rebuilds only when that changes. No API key.

Google Launched the Gemini Agent. Let's Build a Tiny Model Router in TypeScript.
Google's new Gemini agent picks the model for each job and ships built-in cost controls. Build a tiny TypeScript router that picks the cheapest model that fits, honors overrides, and pauses at a cap. No API key.

Meta Launched Muse Wonder. Let's Build a Tiny Active Focus Loop in TypeScript.
Meta's new Muse Wonder models ship with Active Focus: keep working, try alternatives, ask when needed, check in before important actions. Build a tiny TypeScript version of that loop. No API key.

Your Agent Hit the Real Web. Build a Tiny Side-Effect Confirm Gate in TypeScript.
Agents can submit real forms. Build a tiny TypeScript side-effect confirm gate: classify read vs mutate, mint a one-time confirm of the exact payload, reject replay and mismatch. No API key.

Anthropic Launched Dynamic Workflows. Let's Build a Tiny Fan-Out Budget in TypeScript.
Claude Managed Agents can now write a workflow that runs many agents in phases. Build a tiny fan-out budget in TypeScript: concurrency cap, worker cap, USD and token limits. No API key.

Your Model Just Invented a Form. Build a Tiny UI Component Gate in TypeScript.
OpenAI shipped Intelligent UI with GPT-6. Build a tiny TypeScript UI component gate: allowlisted catalog, validate trees, one repair, then reject. No API key.

Sierra Shared Personal Agent Protocol. Build a Tiny Discovery Gate in TypeScript.
Sierra published a draft of Personal Agent Protocol (Poppy). Build a tiny discovery + session scope gate in TypeScript: guest allowlist, read, write, fail closed. No API key.

Polly Leaked the Secret. Build a Tiny Three-Layer Guard in TypeScript.
Break My Agent 01, the fix. A fake ops note in a pasted document made my polite support bot leak a secret coupon. Three layers that stop it, with real numbers. TypeScript, free Groq tier.

Your Structured Output Passed Once. Build a Tiny Schema Gate in TypeScript.
Providers ship structured outputs. Your agent still needs a gate. Build a tiny schema validator, one repair loop, and a ship decision in TypeScript. No API key.

How to Give an AI Agent Persistent Memory Using Supabase
Build persistent agent memory with Supabase RLS, named facts, bounded recall, expiry and forgetting. A runnable TypeScript build with 26 Postgres checks.

Your Agent Bought a Tool. Who Got Your Data?
Composio Instant launched October 8. Build a TypeScript data release gate: an available read-only tool can still disclose private information through its input.

Your Agent's Budget Check Has a Race Condition. Build a Reservation Ledger in TypeScript.
Two calls can pass the same budget check and still overspend. Build a TypeScript reservation ledger with 20 local checks and honest single-process limits.

Your Agent Picked a Chart. Did the Data Deserve One? Build a UI Planner in TypeScript.
CopilotKit's October 9 Open Intelligent UI launch makes format selection an engineering problem. Build a tested TypeScript planner that preserves missing values.

Your JSON Is Valid. Your Invoice Is Wrong. Build a Semantic Gate in TypeScript.
Valid JSON can still contain a wrong invoice. Build a TypeScript boundary with trusted prices, safe arithmetic, and 18 deterministic checks.

Your Agent Got Approval. Then It Changed the Email. Build a Payload-Bound Gate in TypeScript.
Google's October 8 Gemini agent launch raises a practical boundary: approve the exact action. Build a tiny TypeScript gate with 16 local checks.

Your LLM Cache Key Is Missing Half the Request. Build a Versioned Cache in TypeScript.
A prompt-only cache can return the wrong user's answer. Build a scoped, versioned TypeScript cache with sixteen checks and no API key.
Claude Haiku 5.5 Is Cheap Until 100k Tokens. Build a Tiny Price Gate in TypeScript.
Haiku 5.5 is 90% cheaper only under 100,000 prompt tokens. A tiny TypeScript gate prices the call before it is sent. No API key.

Your RAG Filter Runs Too Late. Build a Tenant-Safe Retriever in TypeScript.
A tiny TypeScript fixture shows why access filtering belongs before top-k retrieval and before text reaches a reranker. Eight exact checks, no API key.

OpenAI’s Decisions API Is in Public Beta. Build a Typed Router in TypeScript.
October 7, 2026 - news: OpenAI made the Decisions API available in public beta on October 6. The...

Your Model Says 90%. Build a Tiny Calibration Check in TypeScript.
Audit classifier confidence, calibration error and automation coverage with a tiny runnable TypeScript build. Synthetic data, exact tested output, no API key.

OpenAI Started Watermarking ChatGPT Text. Build a Tiny Text Watermark in TypeScript.
OpenAI's textGrain hides a statistical signal in word choices. Build a tiny keyed watermark and detector in TypeScript, then watch synonym swaps wear it down. No API key.

Your Agents Trust Each Other. Build a Tiny Delegation Guard in TypeScript.
A new attack class called protocol pivoting walks planted text from one agent to the next. Build a tiny delegation guard where authority shrinks at every hop. No API key.

Your Agent Rereads Every Tool Result. Build a Tiny Context Compactor in TypeScript.
Strands, DeepSeek and two new papers point at the same lever: context management. Build a tiny compactor that caps tool output, keeps failure lines, and elides old results. No API key.

Don't Switch Embedding Models on Vibes. Build a Tiny Retrieval Eval in TypeScript.
Cohere, Perplexity and TopK all shipped embedding models in one week. Before you switch, build a tiny retrieval eval in TypeScript: answer recall, evidence recall, a ship gate, and a mixed-index check. No API key.

Anthropic Launched Mods for Claude Code. Let's Build a Tiny One in TypeScript.
Anthropic shipped Mods for Claude Code: TypeScript handlers that rewrite prompts, block tool calls, and redact secrets. Build a tiny agent middleware in one file. No API key.

Passing Tests Is a Terrible Reward. Build a Reward Hacking Detector in TypeScript.
Xiaomi's MiMo-V2.6 report shows what happens when 'tests pass' is the whole reward. Build a tiny RL reward in TypeScript: six scripted coding attempts, a naive reward, a composite reward with a hack detector, and group-relative advantages. No API key.

Your Agent Sandbox Blocklist Is Already Lost. Build a Default-Deny Egress Policy in TypeScript.
OpenAI's rogue agents got out through public relay services nobody thought to block. Build a tiny egress policy in TypeScript: a denylist, a substring allowlist and a default-deny policy against one scripted escape. No API key.

Patching the MCP SDK Doesn't Fix It. Pin the OAuth Issuer in TypeScript.
A malicious MCP server could steer an official SDK's OAuth client into sending its secret to the wrong place. Build a tiny MCP client in TypeScript that pins the issuer before it fetches anything. No API key.

Your Agent's Allowlist Is a Parser Bug: Build a Shell Command Gate in TypeScript
Four agent approval bypasses were published in September, and they share one bug: the approval gate and the shell disagreed about what the command was. Build a tiny shell gate in TypeScript that refuses what it can't parse. No API key.

Stop Trusting Your Agent's Final Answer: Build a Tiny Agent Tracer in TypeScript
OpenAI's agent said it couldn't find the answer. Its trace showed 18 more questions sent to an outside chatbot over DNS. Build a tiny agent tracer in TypeScript with OpenTelemetry GenAI span names. No API key.

One Email Hijacked an AI Agent. Build a Tiny Prompt Injection Gate in TypeScript.
Content filters read text. Attackers encode text. Build a tiny Rule of Two gate in TypeScript that decides before the tool runs: mocked inbox, obedient mock model, three guards. No API key.

A Timeout Is Not a Failure: Build Idempotent Tool Calls for AI Agents in TypeScript
Agents retry. Networks lose responses. Build a tiny exactly-once layer in TypeScript: injected faults, four retry strategies, and one idempotency key per intent. No API key.

OpenAI Launched Space. Let's Build a Tiny Shared Workspace in TypeScript.
Space is shared pages plus each person's agent. Build a tiny one in TypeScript: ACLs, optimistic concurrency, a Memory leak demo and an activity timeline. No API key.

Your Model Upgrade Is a Breaking Change: Build Contract Tests for LLM Providers in TypeScript
Sonnet 5.5, Opus 5.5, GPT-6.1 Sol and Antigravity 09-2026 all changed request contracts. Build a TypeScript contract suite, a known-breaks check and an upgrade gate against mocked providers. No API key.

Cloudflare Launched Clef. Let's Build a Tiny Decision Gate in TypeScript.
Cloudflare's Clef scores decisions. Build a tiny TypeScript gate that turns scores into act, ask, or skip, with a human boundary for refunds.

Evals for Agents: Did It Stay in Scope? Build a Tiny One in TypeScript
Grade recorded agent runs on three questions: did it stay in scope, did it act without approval, and did its report mention everything it did. Precision, recall and a CI gate in TypeScript. No API key.

OpenAI Launched Dots. Let's Build a Tiny One in TypeScript.
Always-on agents are event loops with rules. Build a tiny one in TypeScript: events that wake it, a read-only background mode, allow/ask/deny rules, per-user memory and an activity timeline.

Cost per Task, Not Cost per Token: Build an LLM Cost Calculator in TypeScript
Model launches this month sell cost per task, not price per token. Build a tiny TypeScript calculator with sourced prices, cache hits, retries, tool turns and latency. No API key.

What Is an Agent Harness? Build a Tiny One in TypeScript
The model decides what to do next. The harness decides what actually happens. Build a tiny TypeScript harness with tools, allow/ask/deny, context trimming and a step budget.

You Can't Give an AI a Job Until It Has a Lane
Most AI software still starts the same way. There is an empty box. You type something. The model...

The Computer Is Becoming an API for AI
A timeline from chatbots that answer questions to agents that click, type, browse, use software, and...

I Let Grok Bot Apply to Software Engineering Jobs While I Was Sleeping
At midnight, I gave Grok Bot a job. Not a prompt. A job. Find software engineering roles that...

Your Code Knows What Changed. But Does It Know Why?
AI can write a pull request in seconds. But when that pull request touches a piece of code written...

How to Build an AI Employee With a Knowledge Graph (Not Just Another Agent)
AI agents forget between runs. A graph of state, ownership, and events lets an AI employee wake, act, schedule, and continue work across days.

The Graph That Learns: Building Self-Improving Agent Loops
AI agents are getting very good at doing things. They can read a ticket, modify code, open a pull...

Build a Mini Engineering Graph With TypeScript and GitHub
You inherit a codebase. A file called checkout.ts is causing problems. You ask three...

Graph Engineering: The Missing Architecture Behind Useful AI
Why AI systems need more than prompts, embeddings, and vector search - and how graph engineering makes connected, explainable intelligence possible.

Building a Dynamic Prompt Engine for an AI SaaS - TaxJoy (Next.js + Vercel AI SDK)
Building a Dynamic Prompt Engine for an AI SaaS (Next.js + Vercel AI SDK) When we started...

Mastering OpenAI’s new Agents SDK & Responses API [Part 1]
Welcome to part 1 A few months ago, I was buried in a complex automation project, trying to make AI...

Building an AI Agent with LangGraph, TypeScript, Next.js, TailwindCSS, and Pinecone – Part 2
Introduction In Part 1, we built a simple AI-powered assistant using LangGraph, Next.js,...

Building an AI Agent with LangGraph, TypeScript, Next.js, TailwindCSS, and Pinecone
Introduction AI agents are evolving beyond simple chatbots into powerful workflow...

Random Image Generation and Caching in JavaScript
Random Image Generation and Caching in JavaScript In many web applications, it is common...

The Psychology Behind UI Design: Crafting Engaging User Experiences (Part 2)
The Psychology Behind UI Design: Crafting Engaging User Experiences (Part 2) Welcome back...

Mastering UI Psychology: A Technical Deep Dive with React, TypeScript, and Tailwind CSS
Mastering UI Psychology: A Technical Deep Dive with React, TypeScript, and Tailwind...

The Psychology Behind UI Design: Crafting Engaging User Experiences
The Psychology Behind UI Design: Crafting Engaging User Experiences In the world of UI...

TypeScript Interfaces: Embrace the Flexibility - With Challenges
Embrace the Flexibility of TypeScript Interfaces Interfaces in TypeScript are like magic...

Classes in TypeScript: With Challenges
Unleashing the Power of Classes in TypeScript Classes are the superheroes of...

Understanding Functions in TypeScript: With Challenges
Understanding Functions in TypeScript Functions are the building blocks of any programming...

Demystifying Git: A Comprehensive Guide to Version Control
Demystifying Git: A Comprehensive Guide to Version Control Version control is a crucial...

Mastering Promises in JavaScript: A Comprehensive Guide
Mastering Promises in JavaScript: A Comprehensive Guide Promises are a fundamental concept...

The Power of Promises with Next.js: Building a Pizza Delivery App 🍕
The Power of Promises with Next.js: Building a Pizza Delivery App In this blog post, we'll...

Mastering TypeScript Control Flow and Statements 😎
Mastering TypeScript Control Flow and Statements 😎 Have you ever found yourself in a code...

Exploring ES6 JavaScript Array Methods
Exploring ES6 JavaScript Array Methods Welcome to my blog post on ES6 JavaScript array...

Exploring Next.js Server Components
Exploring Next.js Server Components Next.js 13 introduces an exciting new feature called...

Part 7: Conclusion and Next Steps
Section 7: Conclusion and Next Steps Congratulations on completing this TypeScript course!...

Part 6: Advanced TypeScript Topics
Section 6: Advanced TypeScript Topics In this section, we will explore advanced topics in...

Part 5: Asynchronous Programming with TypeScript
Section 5: Asynchronous Programming with TypeScript In this section, we will dive into...

Part 4: Working with Modules and Imports in TypeScript
Section 4: Working with Modules and Imports In this section, we will explore modules and...

Part 3: Advanced TypeScript Concepts
Section 3: Advanced TypeScript Concepts In this section, we will explore advanced concepts...

Part 2: TypeScript Basics
Section 2: TypeScript Basics In this section, we will delve into the basics of TypeScript....

Part 1: Introduction to TypeScript
Section 1: Introduction to TypeScript TypeScript is a powerful programming language that...

What is an interface in TypeScript
Hey this is an awesome post about interfaces 🙂 What is an interface ? TypeScript...

How to add TypeScript to a NextJS project
When I first took a deep dive of the TypeScript documentation it scared me. I'm going to be honest...
