Guardrails for AI Agents: How to Implement Them (With Code)
Implement guardrails in your AI agent step by step: input/output validation, action limits, and loop control. Real, copy-ready code examples.
Library
Technical articles: agents, architecture, tools and design decisions.
Implement guardrails in your AI agent step by step: input/output validation, action limits, and loop control. Real, copy-ready code examples.
Learn how to use an AI model to automatically evaluate another agent's responses. Rubrics, evaluation types, and the most common pitfalls.
Set up a Claude Project from scratch: custom instructions, knowledge files, and ready-to-copy examples. A practical visual guide for any workflow.
AI models break text into tokens. Spanish needs more than English to say the same thing. Here's why and what impact it has on your projects.
What temperature is in language models, how it affects responses, and how to choose the right value for your task. Examples with the same prompt.
What a language model's context window is, how it's measured in tokens, and concrete practices to leverage it from day one.
The 6 architectural decisions for your first production AI agent: precise objective, memory, tools with minimum privilege, and human oversight.
The methodology I use to make Claude Code improve itself through measuring, proposing hypotheses, iterating, and validating results
Skills, hooks, CLAUDE.md: the complete map of Claude Code's 8 tools and when to use each one. A practical guide for beginners.
How to transform text into numerical vectors and build real semantic search. From cosine similarity to RAG, with diagrams, TypeScript code, and interactive exercises.
The 5 prompt engineering patterns: zero-shot, few-shot, CoT, role prompting, and structured output with real TypeScript code.
MCP (Model Context Protocol) standardizes how AI agents connect to external tools. Explanation with line-by-line commented Python examples.