Skip to main content

LLM

A Brief Analysis of Claude Code's Execution and Prompts

A Brief Analysis of Claude Code's Execution and Prompts

Through reverse engineering, this article provides a deep dive into the internal architecture and working principles of Anthropic’s AI coding assistant, Claude Code. It breaks down the collaborative mechanisms of its Main and Sub-Agents, system prompts, toolset definitions, and context management strategies, helping you to fully understand the autonomous execution flow of this powerful AI tool.
From paper to source code: a detailed explanation of the RAG algorithm

From paper to source code: a detailed explanation of the RAG algorithm

·9744 words·46 mins
This article aims to explore the architectural design and specific code implementation of the RAG algorithm through the interpretation of papers and source code. This article mainly discusses GraphRAG, LightRAG and RAPTOR RAG, and also mentions Contextual Retrieval proposed by Anthropic and the evaluation method of the RAG algorithm. In the end, it is recommended that different methods be selected according to the size of the knowledge base document.