AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
LLM Infra/
claude-code-source-all-in-one
claude-code-source-all-in-one logo

claude-code-source-all-in-one

Active·★ 91·Updated 2026-05-28

This repository extracts the source code of Anthropic's Claude Code CLI for educational study. It includes 18 deep-dive articles analyzing the architecture, covering core agent loop, tool orchestration, context compression, and more. The source can be run locally for learning purposes.

#ai-agent#ai-coding#anthropic#architecture-analysis#chatgpt#claude#claude-code#cli
$ Install
$ node scripts/setup.mjs
↗ Visit site★ GitHub
01

Features

01Extracted production-grade AI agent source code
02Loop-over-graph architecture with while(true) agent loop
03Recursive sub-agent orchestration with inherited features
04Four-layer context compression for long sessions
05Immutable messages to optimize prompt caching costs
02

Compatibility

macOS
Native support
Verified via docs
Linux
Native support
Verified via docs
Windows
Supported with limitations
Verified via docs
03

Quick start

1
$ node scripts/setup.mjs
04

Use cases

↳Studying production-level AI agent architecture and design decisions
↳Learning advanced engineering patterns for tool orchestration and context management
↳Experimenting with Claude Code internals in a controlled environment
05

Alternatives

⚡Top VS:
VShermes-agent★256.0k→VSllm-router★118→VSopen-claude-in-chrome★255→VSgrainulator★86→
hermes-agent logo
hermes-agent★ 256.0k
The agent that grows with you
VSCompare→
llm-router logo
llm-router★ 118
Universal LLM router for AI coding tools. Works with Claude Code, Cursor, Codex, Gemini CLI, Copilot and more. Free-first fallback chain keeps costs 70–85% lower.
VSCompare→
open-claude-in-chrome logo
open-claude-in-chrome★ 255
Claude in Chrome, reverse-engineered and open-source. No domain blocklist. Any Chromium browser. Same 18 MCP tools, same performance.
VSCompare→
grainulator logo
grainulator★ 86
Research that compiles.
VSCompare→
resonant logo
resonant★ 60
Open-source relational AI framework with identity persistence, memory, and MCP integration. Build relationship-aware AI agents that remember, grow, and maintain continuity. Built on Claude Agent SDK.
VSCompare→
widemem-ai logo
widemem-ai★ 49
Next-gen AI memory layer with importance scoring, temporal decay, hierarchical memory, and YMYL prioritization
VSCompare→
Genexus18MCP logo
Genexus18MCP★ 38
GeneXus 18 MCP server for Claude, Cursor, and AI agents — read, edit, analyze KB objects (transactions, web panels, procedures, SDTs) over the Model Context Protocol.
VSCompare→
agents-best-practices logo
agents-best-practices★ 2.4k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
wuwangzhang1216 /
claude-code-source-all-in-one
↗

Always up-to-date open-source mirror of Claude Code (currently v2.1.123). Run from source with Claude subscription/API, ChatGPT subscription (GPT-5.5 / GPT-5.4), OpenAI-compatible providers, or local Ollama. 18 deep-dive architecture articles included. For educational and reference purposes only.

91
Last commit4mo ago
StatusActive
CategoryLLM Infra
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.