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.

132
Articles
0
Likes
365
Views
0
Comments
Recent Articles

Latest from James' Growth Diary

100 recent articles max
James' Growth Diary
James' Growth Diary
May 13, 2026 · Backend Development

How Claude Code Bridges IDEs: Local IPC Meets Remote WebSocket

The article dissects Claude Code's bridge architecture, explaining how a local IDE extension communicates with a CLI via Unix domain sockets while a remote web UI talks to the same process through a WebSocket‑SSE‑polling fallback, and it details the three worker models, three‑layer transport downgrade, four‑layer authentication, the FlushGate pattern, observability design, and the trade‑offs and costs of this 31‑file system.

AuthenticationFlushGateIDE bridge
0 likes · 17 min read
How Claude Code Bridges IDEs: Local IPC Meets Remote WebSocket
James' Growth Diary
James' Growth Diary
May 13, 2026 · Artificial Intelligence

Multimodal RAG: A Complete Guide to Ingesting Images, Tables, and PDFs

This article examines the blind spot of pure‑text RAG for visual content, compares three multimodal ingestion strategies—CLIP embeddings, image‑to‑text captioning with a MultiVectorRetriever, and ColPali visual retrieval—covers table‑specific handling, presents end‑to‑end TypeScript implementations, and lists common pitfalls to avoid when deploying production‑grade multimodal RAG pipelines.

CLIPColPaliImage Captioning
0 likes · 22 min read
Multimodal RAG: A Complete Guide to Ingesting Images, Tables, and PDFs
James' Growth Diary
James' Growth Diary
May 12, 2026 · Artificial Intelligence

GraphRAG Deep Dive: Boost Multi‑Hop Reasoning Accuracy from 50% to 85% with Knowledge Graphs

This article explains why traditional vector RAG loses relational information, how GraphRAG reconstructs entity‑relationship triples into a knowledge graph, and provides step‑by‑step code, performance benchmarks, retrieval modes, and practical tips that raise multi‑hop reasoning accuracy from around 50% to 85%.

GraphRAGLangChainNeo4j
0 likes · 14 min read
GraphRAG Deep Dive: Boost Multi‑Hop Reasoning Accuracy from 50% to 85% with Knowledge Graphs
James' Growth Diary
James' Growth Diary
May 12, 2026 · Frontend Development

Keybinding System & Vim Emulation: 17 Contexts, 5 Result Types, State Machine

Claude Code’s keybinding engine tackles fragile CLI key handling by defining 17 compile‑time UI contexts, a union of five resolve result types, chord support, and a full Vim‑mode state machine, demonstrating how context isolation, chord sequencing, and repeat‑command logic prevent conflicts and enable extensible behavior.

CLIState MachineTypeScript
0 likes · 15 min read
Keybinding System & Vim Emulation: 17 Contexts, 5 Result Types, State Machine
James' Growth Diary
James' Growth Diary
May 11, 2026 · Artificial Intelligence

Mastering RAG Evaluation: Recall@K, MRR, NDCG, and RAGAS Explained

This article breaks down RAG evaluation into a two‑layer framework, explains the four core metrics—Recall@K, MRR, NDCG, and the four RAGAS scores—shows how to implement them with LangChain.js, highlights common pitfalls, and offers scenario‑specific metric combinations for reliable performance monitoring.

LangChainMRRNDCG
0 likes · 20 min read
Mastering RAG Evaluation: Recall@K, MRR, NDCG, and RAGAS Explained
James' Growth Diary
James' Growth Diary
May 10, 2026 · Artificial Intelligence

Syncing Vectors with Changing Documents: Add, Update, Delete Made Simple

This article walks through why keeping a vector store consistent with a mutable knowledge base is challenging, explains the three failure points, introduces hash‑based incremental syncing, shows idempotent add, proper update and soft‑delete workflows, covers embedding model upgrades, and presents a production‑grade event‑driven architecture with common pitfalls and remedies.

Hash DeduplicationLangChainRAG
0 likes · 17 min read
Syncing Vectors with Changing Documents: Add, Update, Delete Made Simple
James' Growth Diary
James' Growth Diary
May 9, 2026 · Artificial Intelligence

Agentic RAG Deep Dive: Letting the Agent Decide When and How Often to Retrieve

The article analyzes the shortcomings of traditional one‑shot RAG pipelines, introduces four Agentic RAG patterns that let an LLM‑driven agent control retrieval strategy, source selection, query rewriting and retry limits, and provides concrete TypeScript implementations with LangGraph, code snippets, and practical pitfalls.

Agentic RAGLLMLangGraph
0 likes · 16 min read
Agentic RAG Deep Dive: Letting the Agent Decide When and How Often to Retrieve
James' Growth Diary
James' Growth Diary
May 8, 2026 · Artificial Intelligence

How Claude Code’s Agent Swarms Use Unix Domain Sockets to Run 10 AIs Concurrently

This article deep‑dives into Claude Code’s Agent Swarms, explaining why Unix Domain Sockets replace HTTP for intra‑process communication, how three‑stage address parsing, filesystem‑based mailbox queues, various spawn modes, AgentId design, graceful shutdown, plan‑mode approval and common pitfalls together enable reliable, low‑latency coordination of multiple LLM agents.

Agent SwarmsClaude CodeIPC
0 likes · 14 min read
How Claude Code’s Agent Swarms Use Unix Domain Sockets to Run 10 AIs Concurrently
James' Growth Diary
James' Growth Diary
May 8, 2026 · Artificial Intelligence

How to Test Multi‑Agent Systems? Mock LLM and Graph Replay Explained

The article analyzes why testing Multi‑Agent systems is difficult—due to LLM output randomness, cross‑node state propagation, and tool side‑effects—and presents a systematic solution using mock LLMs, MemorySaver checkpoints with graph replay, tool stubs, and a three‑layer testing pyramid while highlighting common pitfalls and best practices.

Graph ReplayLangChainMock LLM
0 likes · 14 min read
How to Test Multi‑Agent Systems? Mock LLM and Graph Replay Explained
James' Growth Diary
James' Growth Diary
May 7, 2026 · Artificial Intelligence

Mastering the Coordinator Pattern: Control‑Plane/Data‑Plane Separation for Scalable Multi‑Agent Orchestration

The article dissects Claude Code’s Coordinator pattern, explaining how separating the control plane from the data plane eliminates serial bottlenecks, context overflow, and fault‑propagation in single‑Agent setups, and details the dual back‑end design, message protocol, engineering insights, technical debt, and practical adoption guidelines.

Backend AbstractionControl PlaneCoordinator
0 likes · 16 min read
Mastering the Coordinator Pattern: Control‑Plane/Data‑Plane Separation for Scalable Multi‑Agent Orchestration