claude-code-docs  by seilk

Analysis of leaked Claude Code internal architecture

Created 1 month ago
405 stars

Top 71.4% on SourcePulse

GitHubView on GitHub
Project Summary

This repository archives Korean translations of internal structure analysis documents for Claude Code, derived from a source code leak via npm sourcemaps. It provides technical insights into Claude Code's architecture for developers and researchers interested in understanding its internal workings without direct access to proprietary code.

How It Works

Claude Code runs on Bun with React/Ink for terminal UI. Its core is a continuous agentic loop driven by query.ts, executing tool calls, checking permissions, and aggregating results. Context assembly via context.ts integrates git status, CLAUDE.md, and the current date. A tool system offers ~40 built-in utilities (e.g., BashTool, FileEditTool), while multi-agent orchestration occurs in coordinator/. An on-demand skill system uses markdown files in .claude/skills/, and Bun build-time feature flags (PROACTIVE, KAIROS) enable dead code elimination.

Quick Start & Requirements

This repository serves as a documentation archive and does not contain executable code or a setup process. It presents translated analysis of the Claude Code architecture. The original analysis documentation is available at https://vineetagarwal-code-claude-code.mintlify.app.

Highlighted Details

  • Runtime: Bun + React/Ink for terminal UI.
  • Agentic Loop: query.ts drives sequential tool calls, permission checks, and result aggregation.
  • Context Assembly: context.ts (getSystemContext/getUserContext) integrates git status, CLAUDE.md, and current date.
  • Tool System: ~40 built-in tools (e.g., BashTool, FileEditTool, AgentTool).
  • Multi-agent Orchestration: Team-level parallel execution managed in coordinator/.
  • Skill System: On-demand functionality via .claude/skills/ markdown files.
  • Feature Flags: Bun build-time dead code elimination (e.g., PROACTIVE, KAIROS).

Maintenance & Community

This repository is a translated archive and does not list specific maintenance plans or community channels. The original analysis was performed by the community, and the source documentation link is provided.

Licensing & Compatibility

The license for this documentation archive is not specified. The repository explicitly states it does not contain Anthropic's proprietary source code. Compatibility for commercial use or linking is undetermined due to the unspecified license.

Limitations & Caveats

This repo is a translated archive of community-derived analysis documents, not the original source code. It is based on a leak and does not include Anthropic's proprietary intellectual property. The accuracy and completeness rely on the original community analysis.

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
19 stars in the last 30 days

Explore Similar Projects

Starred by Travis Fischer Travis Fischer(Founder of Agentic), Li Jiang Li Jiang(Coauthor of AutoGen; Engineer at Microsoft), and
8 more.

claw-code by ultraworkers

0.4%
192k
Agent harness engineering framework
Created 1 month ago
Updated 14 hours ago
Feedback? Help us improve.