
Build a ReAct AI Agent from Scratch in Python (Step-by-Step)
Build a ReAct (Reasoning + Acting) AI agent from scratch in pure Python. 10-step interactive tutorial with runnable code, output previews, and hands-on challenges.
Loading...
Teach machines to think, learn, and surprise you
33 posts

Build a ReAct (Reasoning + Acting) AI agent from scratch in pure Python. 10-step interactive tutorial with runnable code, output previews, and hands-on challenges.

Step-by-step tutorial to build AI agents using the Claude Agent SDK in Python. 10 hands-on steps covering tools, hooks, subagents, and MCP servers.

Step-by-step tutorial to build an MCP server in Python. 10 hands-on steps covering tools, resources, prompts, and Claude Desktop integration.

What is Model Context Protocol? Watch MCP client-server communication in action. Learn how this Anthropic standard connects LLMs to databases, APIs, and tools.

How do AI agents work? Watch the Observe-Think-Act loop in action with our interactive visualizer. Understand ReAct, tool use, and autonomous decision-making.

What is RAG? Watch the retrieval-augmented generation pipeline step-by-step. See how LLMs access external knowledge through vector search and embeddings.

What is a GNN? Build custom graphs and watch message passing in action. Our interactive visualizer shows how nodes aggregate neighbor information step-by-step.

What is a derivative? Drag the point and watch the tangent line update in real-time. See how derivatives measure instantaneous rate of change and power gradient descent.

What is a partial derivative? Explore 3D surfaces and see how slopes change in different directions. Understand gradients and why they point toward steepest ascent.

What is a dot product? Drag vectors and see similarity change in real-time. Learn why this simple operation powers attention, embeddings, and every neural network.

Learn the Hough Transform with our interactive simulator. Understand how edge points vote in parameter space to detect lines in images.

Learn image pyramids with our interactive simulator. Understand Gaussian and Laplacian pyramids for multi-scale image processing and seamless blending.
Learn optical flow with our interactive simulator. Understand Lucas-Kanade and Horn-Schunck methods for motion estimation in computer vision.

Master the Gaussian distribution with our interactive calculator. Learn the formula, understand the bell curve, and calculate probabilities step by step.

Master the binomial distribution with our interactive calculator. Learn the formula, explore probability tables, and calculate variance step by step.

Learn the Poisson distribution with our interactive calculator. Understand the formula, explore real examples, and master probability calculations step by step.

Learn how to calculate probability with our interactive calculator. Master the conditional probability formula and law of total probability step by step.

The determinant is just the area of the parallelogram formed by the column vectors. Interactive calculator shows how columns create parallelograms.

Understand eigenvectors through the spinning globe analogy. Interactive calculator to find eigenvectors and eigenvalues of any 2x2 or 3x3 matrix.

Interactive matrix multiplication calculator. Change dimensions, enter values, see step-by-step how each result is computed.

Understand tensors visually: scalar vs vector vs matrix vs tensor. Learn NumPy shape intuition with interactive examples and visualizations.

Visualize why RNNs forget and Transformers remember. Watch attention beams bypass the vanishing gradient problem in real-time.

Finally understand backpropagation through an interactive blame game simulator. Wiggle weights and watch error change in real-time.

See why dense neural networks fail at images. Watch 10,000 connections explode into spaghetti while a 9-parameter CNN filter wins.

Visualize why randomly killing neurons makes neural networks smarter. Interactive simulator shows how dropout prevents overfitting.

Interactive visualization of Byte Pair Encoding (BPE) tokenization. Discover why GPT thinks 9.11 > 9.9 and watch the tokenizer chop your text in real-time.

Interactive visualization of RNN vs Transformer architecture. See why RNNs forget and how Transformers solve the vanishing gradient problem.

See how large language models decide which words matter in a sentence. Interactive Query, Key, Value simulator shows self-attention live.

Interactive visualization of Word2Vec and word embeddings. See why good and great were strangers in one-hot encoding but neighbors in vector space.

Drag points between classes and watch split quality update live. Interactive calculator shows why decision trees split where they do.

Interactive SVM kernel trick visualization. Draw non-linear data and watch it get lifted into higher dimensions where a simple line can separate it.

See why K-Means clustering fails with bad initialization. Place centroids yourself and watch the algorithm get trapped in local optima live.

Drag the classification threshold slider and watch the confusion matrix update live. See the precision-recall tradeoff with visual examples.