Tagged articles
5 articles
Page 1 of 1
James' Growth Diary
James' Growth Diary
May 17, 2026 · Backend Development

Why Claude Code’s Tool System Relies on a Generic Triple for Safety and Flexibility

The article dissects Claude Code’s tool architecture, showing how a single generic triple (Input, Output, Progress) defined in src/Tool.ts unifies over 60 runtime tools, enforces type‑safe contracts, streamlines permission checks, progress reporting, and implements a fail‑closed default strategy.

Claude CodeDesign PatternsFail-Closed
0 likes · 20 min read
Why Claude Code’s Tool System Relies on a Generic Triple for Safety and Flexibility
dbaplus Community
dbaplus Community
May 2, 2026 · Artificial Intelligence

Inside Claude Code: A Deep Dive into Its Powerful Agent Architecture

This article provides a comprehensive technical analysis of Claude Code, covering its project scale, two‑layer agent loop design, five design principles, tool system architecture, fine‑grained permission model, multi‑agent collaboration strategies, context‑engineered system prompts, and a custom React‑based terminal UI, all illustrated with concrete code excerpts and diagrams.

AI agentAgent LoopClaude Code
0 likes · 38 min read
Inside Claude Code: A Deep Dive into Its Powerful Agent Architecture
AI Step-by-Step
AI Step-by-Step
May 1, 2026 · Artificial Intelligence

How Claude Code’s Agentic Loop Works: Four Layers from QueryEngine to UI

The article breaks down Claude Code’s persistent agentic loop into four layers—QueryEngine, Tool System, Permission/Hook, and React + Ink—explaining how each turn gathers context, makes model decisions, executes actions, verifies results, handles errors, and renders a terminal UI.

Agentic LoopClaude CodeError Handling
0 likes · 14 min read
How Claude Code’s Agentic Loop Works: Four Layers from QueryEngine to UI
Architect
Architect
Apr 1, 2026 · Artificial Intelligence

Inside Claude Code: How Anthropic Built a Secure, Scalable Local Agent Runtime

This article dissects Claude Code’s open‑source repository, revealing how its startup sequence, context assembly, main loop, tool contracts, permission pipeline, and long‑task handling are engineered layer by layer to create a performant, secure local AI agent runtime.

AI ArchitectureClaude CodeContext Management
0 likes · 24 min read
Inside Claude Code: How Anthropic Built a Secure, Scalable Local Agent Runtime
Shuge Unlimited
Shuge Unlimited
Mar 31, 2026 · Artificial Intelligence

5 Agent Design Patterns Uncovered in Claude Code Source Leak

The article dissects the accidental public release of Anthropic's Claude Code TypeScript source, revealing five concrete AI agent design patterns—including prompt‑cache segmentation, a coordinator‑fork architecture, a four‑layer permission model, file‑system memory, and on‑demand tool loading—while also detailing the underlying tech stack, source‑map exposure, and quirky easter eggs.

AI agentClaude CodeCoordinator
0 likes · 17 min read
5 Agent Design Patterns Uncovered in Claude Code Source Leak