GoForum🌐 V2EX

Claude Code 百万级逆向文档!

Hitmux · 2026-03-29 21:34 · 0 次点赞 · 2 条回复

HitCC——近百万字级 Claude Code 逆向文档

https://github.com/hitmux/HitCC

这不是源码仓库,而是对 Claude Code 静态逆向分析写出的文档

项目目标不是复刻原始文件树,而是尽可能还原 Claude Code 的全部客户端运行逻辑

本项目与 Anthropic PBC 无任何关系。仓库中不包含 Claude Code 原始源码,不包含破解内容,也不包含绕过产品策略或权限机制的实现

文档覆盖范围

docs/ 已覆盖的范围可以按目录理解为:

  • 00-overview
    • 范围边界、证据来源、置信度口径、文档结构与维护约定
  • 01-runtime
    • CLI 入口、命令树、运行模式分流
    • Session / Transcript 持久化与恢复
    • 输入编译链、主 Agent Loop 、compact 分支
    • Model adapter 、provider 选择、auth 、stream 处理与 remote transport
    • web-searchweb-fetch 两类内建网络工具
    • telemetry 、control plane 、非 LLM 网络链路
    • settings source 、路径、合并、缓存、写回与关键消费面
  • 02-execution
    • Tool execution core 、并发执行、Hook runtime 、Permission / Sandbox / Approval
    • instruction discovery 、rules 、prompt assembly 、context layering
    • 非主线程 prompt 路径、attachment 生命周期、context modifier 与 tool-use context
  • 03-ecosystem
    • Resume 、Fork 、Sidechain 、Subagent 、agent team
    • Remote persistence 、bridge 、Plan system
    • MCP 、Skill 、Plugin 、TUI 及其运行时交互边界
  • 04-rewrite
    • 面向重写工程的候选分层、目录骨架、未决项与阻塞判断
  • 05-appendix
    • glossary 、evidence map 等统一术语和证据索引

附录:我逆向 Claude Code 的原因: https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks https://www.anthropic.com/news/disrupting-AI-espionage https://www.anthropic.com/news/updating-restrictions-of-sales-to-unsupported-regions

2 条回复
minikekeke · 2026-03-29 22:09
#1

我勒个豆,厉害了

rxc420902911 · 2026-03-29 22:29
#2

claude code 的核心是它的模型,工具本身是免费用的,那重写的意义在那?

添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: Hitmux
发布: 2026-03-29
点赞: 0
回复: 0