Vineet Ganti

Blog

Thoughts on technology, learning, and building things.

Series

Latest posts

·26 min read·AI & LLMs

Agentic AI · Part 11

Guardrails and policy: keeping an agent safe and on-topic

How agents get attacked (direct and indirect prompt injection, prompt leaking, jailbreaks), the layers of defence and who owns each, rule-based and model-based checks, and a NeMo Guardrails chatbot with input, dialog and output rails, whose original configuration could not block anything. Re-run on Groq and on Claude. Then Bedrock Guardrails for what an agent says and AgentCore Policy with Cedar for what it does.

Agentic AIGuardrailsNeMo GuardrailsSecurityAgentCore

·19 min read·AI & LLMs

Agentic AI · Part 13

The inventory agent: from one prompt to a guarded, cached, traced assistant

One shop question, 'Should I reorder toothpaste?', answered by an agent built twice: first from parts (SQLite, embeddings, Chroma, chains, RAG, a tool loop) in eight bootcamp steps, then grown one production idea at a time in eight versions: a web form, tools over a database, guardrails, a cache, an email action, tracing and a calculation tool. Re-run on Groq and on Claude, with what each version changed and what it still gets wrong.

Agentic AILangChainLangGraphGradioLangSmithProject

·41 min read·AI & LLMs

Agentic AI · Part 5

Memory that lasts: semantic, episodic and procedural memory

Long-term memory for agents: facts, experiences and procedures that outlive one conversation. How each kind is represented, stored and used, then three builds: Mem0 with a local FAISS index on a Strands agent, a LangGraph customer-service agent fed by three memories, and memory that updates itself in the hot path. Re-run on Groq and on Claude, including a JSON-mode crash and an answer that invented a date it didn't have.

Agentic AILLMsAI EngineeringMemoryLangGraph

·34 min read·AI & LLMs

Agentic AI · Part 9

Seeing inside an agent: monitoring, MELT and traces

Why an agent that never crashes can still be wrong, and how to see what it actually did: monitoring versus observability, the four kinds of record called MELT, a booking agent that may confirm a failed booking, a cached chatbot traced in LangSmith, and then the same ideas on AWS with OpenTelemetry spans read in the console, Jaeger, Langfuse, LangSmith and CloudWatch. Re-run on Groq and on Claude.

Agentic AIObservabilityOpenTelemetryLangSmithAgentCore

·62 min read·AI & LLMs

Agentic AI · Part 14

A bug-fixing agent: run, crash, fix, repeat

A LangGraph agent that runs a Python function, asks an LLM to rewrite it when it crashes, and runs the new version, at most three times. I ported it to Groq, broke it, and fixed what broke. The failures: a model Groq had already shut down, a stray bracket that beat the retry loop, a brake that saves 5,000 calls, two Pythons on one machine, and a diff that disappeared in dark mode.

Agentic AILangGraphLangChainGroqGradioClaude Code

·31 min read·Build Logs

Building this site · Part 9

Building the Memex pipeline with Claude Code

Part 9 of the build log for this site. How a newsletter fetcher became a curated, signed reading feed in twelve days of work with an AI coding agent: a Gmail quota error, a global Python install that broke another tool, tracking links that hid their destinations, a language model kept away from tools and secrets, relevance scores that wouldn't sit still, a Save button that worked in every test but not for me, and a signature that CI broke by changing line endings. Every dead end kept.

Agentic AIClaude CodePythonLLMSecurityGmail API

·17 min read·Build Logs

Building this site · Part 5

Diagrams that move: inlined SVGs, theme tokens and message flows

Part 5 of the build log for this site. How a Markdown image becomes an inlined SVG that follows the light and dark themes, how diagrams fade in as they scroll into view, how a looping message animation finds its path by matching text and geometry, and how the live charts are built. Plus two bugs the final review caught: 22 animation labels that matched nothing, and charts that broke hydration over a last digit.

SVGCSSAnimationReactAccessibility

·14 min read·Build Logs

Building this site · Part 6

Content generated from real runs

Part 6 of the build log for this site. Two kinds of post where no output is typed by hand: a 92-question SQL practice bank whose every answer is run in DuckDB, and a database series whose demos were recorded from PostgreSQL, MySQL, MongoDB, Redis and Memcached on real concurrent connections. How each generator works, how a blocked statement is recorded, and what a re-run proved.

DuckDBPostgreSQLDockerCode generationTesting

·15 min read·Build Logs

Building this site · Part 7

Real PostgreSQL in the browser

Part 7 of the build log for this site. How every Database Engineering post runs real PostgreSQL 18 in the reader's browser with PGlite: loaded only on the first Run, one instance per page, one schema per box, statements run one at a time. The download that was nearly twice what the boxes promised, and the fix; the final review that clicked every control in production; and the four bugs it found.

PostgreSQLPGliteWebAssemblyPerformanceTesting

·18 min read·Build Logs

Building this site · Part 8

The Memex page: signed snapshots and no write path

Part 8 of the build log for this site. A page that shows data from outside the repository without trusting it: files signed with Ed25519 on the owner's machine, verified on their raw bytes before anything is parsed, validated field by field, cached for 15 minutes, and refused if anything is off. Five explicit states, a signed kill switch, an upload script that refuses early, and the first real upload, which failed on a missing file.

SecurityEd25519Next.jsVercel BlobCaching

·83 min read·AI & LLMs

Agentic AI · Part 12

Trip Buddy: one agent, built up in 15 lessons

One trip-planning agent grown lesson by lesson, from a SQLite table to RAG, tools, an MCP server, long-term memory and a second agent over A2A. It covers every command, error and fix from my run: uv off the PATH, an OpenAI 429 that wasn't a rate limit, a Gemini 400 caused by dropped thought signatures, and an A2A timeout that looked like an outage. There's a reproduce-it-yourself guide at the end.

Agentic AILangChainGeminiMCPA2ARAGMemoryClaude Code

·27 min read·AI & LLMs

Agentic AI · Part 10

Evaluating an agent: component evals, LLM judges and Cohen's kappa

How to tell, with evidence, whether an agent does its job: why one good answer proves nothing, the three gulfs agent mistakes come from, reference-based and reference-free metrics, and four component evals for an inventory advisor: its router, its prompt, its search and its tools. Re-run on Groq and on Claude, where two LLM judges reached opposite conclusions about the same prompt and agreed barely more than chance. Then AgentCore Evaluations on AWS.

Agentic AIEvaluationLLM-as-judgeLangGraphAgentCore

·50 min read·AI & LLMs

Agentic AI · Part 7

How agents talk: MCP for tools, A2A for other agents

A first-timer's guide to the two protocols agents talk through: MCP to reach tools, data and prompts, and A2A to reach other agents. It builds up from a protocol-only demo to Strands agents and a three-agent travel planner, and reads a Groq rate-limit error line by line on the way. A third part looks from the host's side: a tool loop written by hand, re-run on Groq and on Claude, the spec revision that dropped the handshake, the security threats with a real rug pull, and the cost of tool schemas in the context.

Agentic AILLMsAI EngineeringStrandsMCP

·32 min read·AI & LLMs

Agentic AI · Part 4

How AI agents remember: one conversation, kept under control

Why a stateless model needs memory at all, the five questions to answer before adding it, writing memory in the hot path or in the background, and the four ways to keep one conversation from outgrowing the context window: buffer, trim, delete and summarise. Then the conversation is saved with LangGraph checkpoints and AgentCore Memory. Re-run on Groq and on Claude, including a claim in the course notebook that its own test never checked.

Agentic AILLMsAI EngineeringLangGraph