Awesome Cc Harness banner
WanLanglin WanLanglin

Awesome Cc Harness

Data community

Description

Reverse-engineering Claude Code's 512K LOC TypeScript source: agent loop, tool system, permission model, Grove training pipeline, anti-distillation defense

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

awesome-cc-harness

[![GitHub stars](https://img.shields.io/github/stars/WanLanglin/-awesome-cc-harness?style=social)](https://github.com/WanLanglin/-awesome-cc-harness/stargazers) [![License](https://img.shields.io/badge/License-All%20Rights%20Reserved-red.svg)](LICENSE) [![中文](https://img.shields.io/badge/语言-中文-blue.svg)](https://wanlanglin.github.io/-awesome-cc-harness/zh/) [![English](https://img.shields.io/badge/Language-English-green.svg)](https://wanlanglin.github.io/-awesome-cc-harness/en/)

English (TL;DR)

**Reverse-engineering all 512,664 lines of Claude Code's TypeScript source** — agent loop, tool system, permission model, sandbox, context engineering. A 16-chapter textbook (~50,000 words, 147 code blocks, 77 diagrams) on how Anthropic actually builds an agent harness.

📣 **Featured in Chinese AI media** — Republished by [QingkeAI (青稞AI)](http://mp.weixin.qq.com/s?__biz=MzI1MzEwMzIwOQ==&mid=2247513815&idx=1&sn=bfa7e1a0c0accdb65d1def80d6b28be7) and other WeChat publications, with **20,000+ reads** and **2,000+ shares**. [Original Chinese article](https://mp.weixin.qq.com/s/WiE6w5ORTBoh5ggLlkQr9g).

**Two findings you won't see elsewhere:**

  • 🔬 Grove — Anthropic's hidden training-data pipeline. Retention jumps 30 days → 5 years when enabled. 796 telemetry events flow into BigQuery columns the source code labels "training data".
  • 🛡️ Anti-Distillation — 5-layer defense: native client attestation, request fingerprinting, fake-tool injection, signature-bound thinking blocks, "distillation-resistant" streamlined output.

👉 **[Read the full English version online](https://wanlanglin.github.io/-awesome-cc-harness/en/)**

![Harness Architecture](images/01_harness_architecture.png)


从 Claude Code 512K 行源码逆向 Harness Engineering

基于 Claude Code 全部 512,664 行 TypeScript 源码的系统性逆向分析,拆解 Anthro