{"repo":"FareedKhan-dev/claude-code-from-scratch","free":true,"listed":false,"github":"https://github.com/FareedKhan-dev/claude-code-from-scratch","clone":"git clone https://github.com/FareedKhan-dev/claude-code-from-scratch.git","description":"23 Components of the Claude Code Architecture","language":"Python","stars":289,"topics":["claude","claude-code","codex","openai"],"license":"MIT","category":"ai-agents","readme_excerpt":"Building Claude Code Using Harness Engineering A complete reverse-engineering of Claude Code's architecture — built from a minimal agent loop to a 23-session production system. This repository is built on top of learn-claude-code --- As of early 2026, Claude Code crossed $1 billion in annualized revenue within six months of launch. It did not get there because of better prompts. It got there because Anthropic built the right harness around the right model — a streaming agent loop, a permission-governed tool dispatch system, and a context management layer that keeps the model focused across arbitrarily long sessions. That harness is fully reproducible. This repository builds it. --- Architecture Overview --- What is Harness Engineering? Harness engineering is the discipline of building the environment that surrounds an AI model — not the model itself. The model reasons and decides. The harness executes, constrains, and connects. Four principles define good harness engineering: - The model is the only source of decisions — the harness never branches on model output, it only executes what the model requests - Tools are the only interface between the model and the world — every action goes through a typed, schema-validated tool call - Context is a managed resource — what the model sees at each turn is curated, compressed, and injected deliberately - Permissions are declarative, not procedural — what is allowed, blocked, or requires approval lives in configuration, not code --- Re","default_branch":null,"files":null,"tree":[],"storefront":"/r/FareedKhan-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FareedKhan-dev/claude-code-from-scratch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}