James' Growth Diary
Author

James' Growth Diary

I am James, focusing on AI Agent learning and growth. I continuously update two series: “AI Agent Mastery Path,” which systematically outlines core theories and practices of agents, and “Claude Code Design Philosophy,” which deeply analyzes the design thinking behind top AI tools. Helping you build a solid foundation in the AI era.

56
Articles
0
Likes
5
Views
0
Comments
Recent Articles

Latest from James' Growth Diary

56 recent articles
James' Growth Diary
James' Growth Diary
Apr 14, 2026 · Artificial Intelligence

How Does Cursor Work? Inside the Architecture of an AI Coding Assistant

The article dissects Cursor's four‑layer architecture, explains how it builds context from the current file, vector retrieval and @‑references, compares Cmd+K inline edits with Chat mode, and shares practical tips to avoid common pitfalls when using the AI‑powered IDE tool.

AI coding assistantCursorcontext construction
0 likes · 14 min read
How Does Cursor Work? Inside the Architecture of an AI Coding Assistant
James' Growth Diary
James' Growth Diary
Apr 13, 2026 · Frontend Development

Local Inference & Edge AI: Why Front‑End AI Is the Next Battlefield

Edge AI runs AI models directly in browsers or devices, offering zero latency, zero API cost, and full privacy, and the article explains the three technical breakthroughs that make it possible, compares WebLLM, Transformers.js and Ollama, and provides a hybrid architecture with concrete engineering challenges and solutions that can cut total AI costs by 40‑55% for typical front‑end applications.

Edge AIOllamaTransformers.js
0 likes · 20 min read
Local Inference & Edge AI: Why Front‑End AI Is the Next Battlefield
James' Growth Diary
James' Growth Diary
Apr 12, 2026 · Artificial Intelligence

Build a Complete Private Knowledge Base with RAG: A Hands‑On Guide

This article walks through a complete, production‑ready Retrieval‑Augmented Generation pipeline that lets AI answer a company’s private documents, covering chunking strategies, embedding model choices, vector‑database selection, retrieval methods, full LangChain chain assembly, and common pitfalls to avoid.

EmbeddingLangChainPromptEngineering
0 likes · 18 min read
Build a Complete Private Knowledge Base with RAG: A Hands‑On Guide
James' Growth Diary
James' Growth Diary
Apr 12, 2026 · Artificial Intelligence

MCP Protocol Explained: Why It’s the Next Standard for AI Tool Calls

The article dissects the Model Context Protocol (MCP), showing how it transforms the M×N integration explosion into a linear M+N model, details its four-component architecture, compares it with traditional Function Calling, provides a TypeScript server example, and outlines emerging ecosystem and security considerations.

AI tool integrationFunction CallingJSON-RPC
0 likes · 17 min read
MCP Protocol Explained: Why It’s the Next Standard for AI Tool Calls
James' Growth Diary
James' Growth Diary
Apr 11, 2026 · Artificial Intelligence

Deep Dive into Tools: Function Calling Mechanics and LangChain Toolchain Design

This article explains how LLMs use Function Calling to output structured JSON for tool execution, walks through the full multi‑turn tool call loop, shows how LangChain standardizes disparate vendor APIs with BaseTool and bind_tools, and shares practical pitfalls, best‑practice guidelines, and security considerations for building robust agents.

AgentFunction CallingLLM
0 likes · 16 min read
Deep Dive into Tools: Function Calling Mechanics and LangChain Toolchain Design
James' Growth Diary
James' Growth Diary
Apr 10, 2026 · Artificial Intelligence

Designing Agent Memory Systems: Short‑Term, Long‑Term, and Knowledge Graph Layers

The article breaks down how to build a three‑layer memory architecture for AI agents—short‑term context windows with sliding‑window summarization, long‑term semantic retrieval via vector databases with selective storage and time decay, and a knowledge‑graph layer for relational reasoning—plus implementation tips and common pitfalls.

Agent MemoryLangChainPrompt Engineering
0 likes · 19 min read
Designing Agent Memory Systems: Short‑Term, Long‑Term, and Knowledge Graph Layers
James' Growth Diary
James' Growth Diary
Apr 10, 2026 · Artificial Intelligence

Build Your First Production‑Ready LCEL Chain with the Pipe Operator

This tutorial walks through LCEL’s pipe operator and its underlying RunnableSequence, then demonstrates sequential, parallel, and lambda‑based chains, shows how to preserve context with RunnablePassthrough/Assign, compares invoke/stream/batch execution modes, and provides a complete production‑grade RAG chain with common pitfalls and a self‑check checklist.

AILCELLangChain
0 likes · 12 min read
Build Your First Production‑Ready LCEL Chain with the Pipe Operator
James' Growth Diary
James' Growth Diary
Apr 9, 2026 · Artificial Intelligence

How ReAct Enables Agents to Think While Acting

This article explains the ReAct pattern—interleaving reasoning and acting for LLM agents—by defining its core loop, comparing it with plain tool‑calling, providing a step‑by‑step hand‑written implementation in JavaScript, showing the LangChain.js wrapper, streaming output, and detailing five common pitfalls and a pre‑deployment checklist.

JavaScriptLLMLangChain
0 likes · 16 min read
How ReAct Enables Agents to Think While Acting
James' Growth Diary
James' Growth Diary
Apr 9, 2026 · Artificial Intelligence

Building a Tool-Calling Agent from Scratch with LangChain.js

This tutorial walks through creating a fully functional Tool-Calling Agent using LangChain.js, covering tool definition, model binding, manual execution loops, the high‑level createReactAgent API, streaming responses, state management with thread IDs, common pitfalls, and a complete runnable example.

JavaScriptLangChain.jsOpenAI
0 likes · 20 min read
Building a Tool-Calling Agent from Scratch with LangChain.js