ashrivastava
menu
// 05 — writing.md48 posts

Blog

Thoughts on AI Agents, Agentic AI, Frontend Engineering, Web3, and building the future of software.

A/B TestingAIAI AgentsAI ArchitectureAI CodingAI GovernanceAI PlatformAccount AbstractionAgent FrameworksAgent SDKAgentic AIAnthropicApp RouterArchitectureAuditingAutomationBlockchainBrowserBrowser AgentsCI/CDCareerClaudeCloudflareCode ReviewComplianceComputer UseContext EngineeringConversational AICost EngineeringCost OptimizationCrewAICryptographyDeFiDeploymentDesign PatternsDesign SystemDurabilityERC-4337EU AI ActEdgeEngineering LeadershipEngineering PracticeEthers.jsEvalsEvaluationExtended ThinkingFinOpsFine-TuningFrontendFunction CallingGitHub ActionsGrowthGuardrailsHooksInfrastructureIntegrationsLLMsLangGraphLatencyLessonsLessons LearnedMCPMLOpsMachine CommerceMaintainabilityMemoryModel RoutingMulti-AgentNext.jsObservabilityOn-Device AIOpen ModelsOraclesOrchestrationPatternsPaymentsPerformancePrivacyProductivityPrompt CachingPrompt EngineeringPrompt InjectionQualityRAGReactReact 19Real-TimeReasoningRetrievalSDLCSecurityServer ActionsServer ComponentsSmall Language ModelsSmart ContractsSmart WalletsSoftware EngineeringSpec-Driven DevelopmentState ManagementStreamingTailwind CSSTestingTool UseTracingTutorialTypeScriptUI ComponentsUXVector DatabasesVoice AIWeb3WebGPUWebRTCZero Knowledgeshadcn/ui
// index — posts
Web3 & AI8 min read

Agentic Payments: How AI Agents Are Learning to Spend Money Onchain

Machine-to-machine commerce is here — agents paying for APIs, compute, and services with onchain rails. How payment protocols, spending policies, and settlement actually work in practice.

13 Jul 2026
Career & Engineering8 min read

Shipping Agents Under the EU AI Act: A Builder's Compliance Checklist

High-risk obligations land in August 2026 with penalties up to 7% of global turnover. The practical checklist I use to keep agentic features shippable without a legal team on standby.

10 Jul 2026
AI & Agents9 min read

Choosing an Agent Framework in 2026: LangGraph vs CrewAI vs Roll-Your-Own

A field comparison of the frameworks I've actually shipped on — explicit graphs vs role-based crews vs hand-rolled loops — and how to tell which one your project really needs.

08 Jul 2026
DevOps & Tools10 min read

Prompt Injection Is the New SQL Injection: Securing AI Agents in Production

Prompt injection still drives most agentic security failures. The runtime guardrail layer I put between users, models, and tools — and the data-exfiltration paths teams keep missing.

06 Jul 2026
AI & Agents9 min read

Small Language Models Are Eating Your Agent: A Heterogeneous Routing Playbook

Fine-tuned 7B models now handle most routine agent steps cheaper and more reliably than frontier models. How I route work across SLMs and big models — and the 90% cost cut that follows.

03 Jul 2026
AI & Agents7 min read

Context Engineering: Why Curating Context Beats Crafting the Perfect Prompt

The bottleneck moved from prompt wording to context quality. How I decide what actually goes into the window — retrieval, compaction, and the noise that quietly wrecks agent decisions.

01 Jul 2026
DevOps & Tools7 min read

Building an Internal AI Platform: What I Wish I'd Known Before Year One

A year of building the AI platform other teams build on top of — the abstractions that paid off, the ones that didn't, and the governance work nobody warned me about.

29 Jun 2026
DevOps & Tools9 min read

Production Prompt Engineering: Versioning, A/B Testing, and Rollbacks

Treating prompts like code: how I version, test, and roll back prompt changes the same way I would a database migration — and the tooling that makes it boring.

26 Jun 2026
Career & Engineering7 min read

The 10x Engineer Is Now a Team: How AI Changes What 'Senior' Means

Senior used to mean writing the hardest code. In 2026 it means orchestrating agents, reviewing their output, and knowing which problems still need a human first-principles pass.

24 Jun 2026
Career & Engineering7 min read

Reviewing AI-Generated Code: A Practical Framework for Senior Engineers

What I look for first in a Claude- or Copilot-generated PR — the failure modes that hide in plausible-looking code, and how my review checklist has changed.

22 Jun 2026
Web3 & AI8 min read

ZK + AI: Proving Inference Without Revealing the Model

Zero-knowledge proofs of inference are finally tractable for small models. Here's what zkML actually delivers in 2026 — and where it's still a research project.

19 Jun 2026
Web3 & AI7 min read

On-Chain Agents: When Smart Contracts Call LLMs (and Vice Versa)

Bridging deterministic contracts and non-deterministic models — oracle patterns, intent settlement, and the failure modes nobody warns you about.

17 Jun 2026
Frontend8 min read

TypeScript at Scale: Patterns That Survive a 500-File Codebase

The TypeScript patterns I keep reaching for in large codebases — branded types, exhaustive switches, module boundaries — and the clever tricks I've learned to stop using.

15 Jun 2026
Frontend8 min read

Edge-Rendered AI: Cloudflare Workers + Open Models for Sub-100ms Responses

Pushing inference to the edge with Workers AI and Llama-class models — what works, what doesn't, and where you still need a real GPU somewhere upstream.

12 Jun 2026
Frontend10 min read

Streaming UI: Building Responsive Interfaces on Top of LLM Token Streams

From SSE to React Suspense — how I build chat and agent UIs that feel instant, handle interruption gracefully, and don't fall apart when the network does.

10 Jun 2026
AI & Agents10 min read

The Economics of Inference: Routing, Caching, and Batching for LLM Apps

A practical playbook for cutting per-request cost without sacrificing latency — model routing, semantic cache hit rates, request batching, and the metrics that actually matter.

08 Jun 2026
AI & Agents9 min read

Long-Running Agents: State, Recovery, and Resumability Beyond a Single Turn

What it takes to run an agent for hours instead of seconds: durable state, checkpointing, idempotent tools, and recovering cleanly when the model — or the host — dies mid-task.

05 Jun 2026
AI & Agents8 min read

Evaluating AI Agents: Building Test Suites for Non-Deterministic Systems

Why traditional unit tests fall apart on agents, and the eval harness I actually use in production — golden traces, rubric grading, and regression catching.

03 Jun 2026
Frontend9 min read

React 19 in Production: Server Actions, use(), and the End of useEffect Hell

What actually changed when React 19 hit production — the patterns that replace useEffect, and the migration mistakes I made so you don't have to.

28 May 2026
DevOps & Tools8 min read

AI Cost Engineering: Cutting Your LLM Bill by 80% Without Sacrificing Quality

Prompt caching, model routing, batch APIs, and structured outputs — the practical playbook that turned a six-figure inference bill into a five-figure one.

22 May 2026
Web3 & AI9 min read

Account Abstraction Meets AI: Smart Wallets That Think for Themselves

Combining ERC-4337 smart accounts with AI agents to build wallets that auto-pay subscriptions, rebalance portfolios, and enforce spending policies.

20 May 2026
DevOps & Tools8 min read

Agent Observability: Tracing, Evaluating, and Debugging Multi-Step AI Workflows

The new ops stack for AI — how to trace agent runs, build eval harnesses, and catch silent regressions before your users do.

18 May 2026
Frontend10 min read

WebGPU and On-Device LLMs: Running AI in the Browser Without a Backend

How WebGPU plus quantized open models lets you ship private, offline-capable AI features straight to the browser — with real benchmarks.

15 May 2026
AI & Agents8 min read

Voice AI Agents: Building Real-Time Conversational Experiences in 2026

Architecture, latency tricks, and turn-taking patterns for production-grade voice agents — from telephony to in-browser real-time APIs.

13 May 2026
Career & Engineering8 min read

Spec-Driven Development: How AI Coding Agents Are Reshaping the SDLC

Vibe coding is fading — specs are back. How writing precise specs (not prompts) gets the most out of Claude Code, Cursor, and Copilot Workspace.

11 May 2026
AI & Agents8 min read

Reasoning Models in Production: When Extended Thinking Is Worth the Cost

A field guide to deciding when to invoke reasoning models, how to budget thinking tokens, and patterns that justify the latency tradeoff.

08 May 2026
AI & Agents7 min read

Computer Use Agents: Teaching AI to Click, Type, and Browse Like a Human

How modern AI agents control real desktops and browsers — building reliable computer-use workflows with screenshot grounding and action loops.

06 May 2026
AI & Agents9 min read

Model Context Protocol (MCP): Building Universal Tool Integrations for AI Agents

A practical guide to MCP — the open standard letting any AI agent talk to any tool, database, or service through a single protocol.

04 May 2026
Career & Engineering6 min read

10 Lessons from 10 Years of Software Engineering

Hard-won lessons from a decade of building software — from code quality to team dynamics to knowing when to ship.

29 Apr 2026
Frontend9 min read

React Server Components + AI: The Perfect Match

How React Server Components enable new AI-powered patterns — server-side AI inference, streaming AI responses, and smart caching.

27 Apr 2026
AI & Agents10 min read

Agentic RAG: When Your AI Agent Decides What to Retrieve

Moving beyond static RAG pipelines to agentic retrieval where the AI decides what information it needs and how to get it.

24 Apr 2026
DevOps & Tools10 min read

Building a CI/CD Pipeline with AI-Powered Testing

Integrate AI agents into your CI/CD pipeline to auto-generate tests, detect flaky tests, and provide intelligent failure analysis.

22 Apr 2026
Web3 & AI8 min read

Smart Contract Security: How AI Agents Can Catch Vulnerabilities

Using AI agents to automatically audit smart contracts for common vulnerabilities like reentrancy, overflow, and access control issues.

20 Apr 2026
AI & Agents11 min read

AI Agent Memory: Short-Term, Long-Term, and Episodic

Understanding the different types of memory in AI agents and how to implement them for better context retention.

17 Apr 2026
Frontend10 min read

Tailwind CSS + shadcn/ui: Building a Design System That Scales

How to build a consistent, maintainable design system using Tailwind CSS and shadcn/ui components in a Next.js project.

15 Apr 2026
AI & Agents8 min read

LLM Tool Use Patterns: Giving AI Agents Superpowers

Deep dive into how AI agents use tools — designing tool schemas, handling errors, and chaining tool calls for complex workflows.

13 Apr 2026
Career & Engineering9 min read

From Senior Engineer to AI-Augmented Engineer: A Career Guide

How to evolve your engineering career by mastering AI tools — from prompt engineering to agent orchestration.

10 Apr 2026
Web3 & AI11 min read

Building Autonomous DeFi Agents with Ethers.js and AI

Create an AI agent that monitors DeFi protocols, analyzes opportunities, and executes transactions autonomously.

08 Apr 2026
Frontend10 min read

The Future of Frontend: AI-Native UI Components

Exploring UI components that adapt to users in real-time using AI — personalized layouts, smart forms, and predictive interfaces.

06 Apr 2026
AI & Agents8 min read

AI-Powered Code Review: Building an Automated PR Reviewer

Build an AI agent that reviews pull requests, catches bugs, suggests improvements, and enforces coding standards.

03 Apr 2026
Frontend9 min read

Next.js 15 App Router: Advanced Patterns for Production Apps

Advanced patterns including parallel routes, intercepting routes, and streaming that make Next.js 15 apps blazing fast.

03 Apr 2026
AI & Agents10 min read

RAG vs Fine-Tuning: When to Use What for Your AI Application

A practical comparison of retrieval-augmented generation and fine-tuning approaches for building AI-powered applications.

01 Apr 2026
AI & Agents11 min read

Building Your First AI Agent with Claude Agent SDK

Step-by-step guide to building a functional AI agent that can browse the web, write code, and complete tasks autonomously.

30 Mar 2026
AI & Agents10 min read

Multi-Agent Systems: Orchestrating AI Teams for Complex Tasks

How to design systems where multiple AI agents collaborate - planner, coder, reviewer, and tester working in concert.

30 Mar 2026
AI & Agents3 min read

The Rise of AI Agents: How Autonomous Systems Are Reshaping Software Development

AI agents are no longer science fiction. From code generation to autonomous debugging, discover how AI agents are transforming how we build software in 2025 and beyond.

29 Mar 2026
AI & Agents3 min read

Agentic AI Design Patterns Every Developer Should Know

From ReAct to multi-agent orchestration, explore the key design patterns powering the next generation of AI-driven applications.

27 Mar 2026
Frontend3 min read

Building Modern React Apps in 2026: What's Changed and What Matters

React 19, Server Components, and the evolving ecosystem - a practical guide to building React applications that are fast, maintainable, and future-proof.

25 Mar 2026
Web3 & AI3 min read

When Web3 Meets AI Agents: The Future of Decentralized Autonomous Systems

Exploring the powerful intersection of blockchain technology and AI agents - from autonomous trading to decentralized AI governance.

22 Mar 2026