MCPcopy Index your code
hub / github.com/GPT-AGI/Clawd-Code

github.com/GPT-AGI/Clawd-Code @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
235 symbols 1,030 edges 83 files 75 documented · 32%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Clawd Codex

English | 中文


English

A complete reimplementation of Claude Code source.

This project is a full-scale port and reconstruction of Claude Code, maximizing fidelity to the original while introducing improvements. Python version is available now, with Go version in active development.

Highlights

  • Complete Port — Every command, tool, and subsystem rebuilt from the ground up
  • Maximum Fidelity — Preserving the original architecture while optimizing implementations
  • Continuous Improvement — Enhanced with better error handling, testing, and documentation

Project Status

Component Status Count
Commands ✅ Ported 150+
Tools ✅ Ported 100+
Subsystems ✅ Ported 28+
Test Cases ✅ Passing 40+

Roadmap

Milestone Status
Python complete reimplementation ✅ Done
Full test coverage ✅ Done
Session management & persistence ✅ Done
Go version (full port) 🚧 In Progress
Bilingual tutorial edition 📋 Planned
24/7 auto-iteration system 📋 Planned

Quick Start

git clone https://github.com/GPT-AGI/Clawd-Codex.git
cd Clawd-Codex

# View reimplementation summary
python3 -m src.main summary

# List all ported commands
python3 -m src.main commands --limit 20

# Run tests
python3 -m unittest discover -s tests -v

Contributing

PRs welcome! We're building the most complete open-source Claude Code reimplementation together.

Disclaimer

  • Independent reimplementation of Claude Code source for learning purposes
  • Not affiliated with, endorsed by, or maintained by Anthropic
  • We respect the original creators' intellectual property

中文

Claude Code 源码的完整重构实现。

本项目是对 Claude Code 的全量移植和重建,在最大程度还原原始实现的同时引入改进。Python 版本现已可用,Go 版本正在积极开发中。

亮点

  • 完整移植 — 每个命令、工具和子系统均从底层重建
  • 最大程度还原 — 保留原始架构的同时优化实现
  • 持续改进 — 增强错误处理、测试覆盖和文档

项目状态

组件 状态 数量
命令 ✅ 已移植 150+
工具 ✅ 已移植 100+
子系统 ✅ 已移植 28+
测试用例 ✅ 通过 40+

路线图

里程碑 状态
Python 完整重构 ✅ 完成
完整测试覆盖 ✅ 完成
会话管理与持久化 ✅ 完成
Go 版本(完整移植) 🚧 开发中
中英文双语教学版 📋 计划中
24小时自动迭代系统 📋 计划中

快速开始

git clone https://github.com/GPT-AGI/Clawd-Codex.git
cd Clawd-Codex

# 查看重构摘要
python3 -m src.main summary

# 列出所有已移植命令
python3 -m src.main commands --limit 20

# 运行测试
python3 -m unittest discover -s tests -v

参与贡献

欢迎提交 PR!我们正在共同构建最完整的 Claude Code 开源重构实现。

免责声明

  • 对 Claude Code 源码的独立重构实现,用于学习目的
  • 不隶属于 Anthropic,未被其认可或维护
  • 我们尊重原始创作者的知识产权

Star ⭐ | Fork 🍴 | Watch 👀

Core symbols most depended-on inside this repo

_colorize
called by 31
src/repl.py
run
called by 30
src/repl/core.py
append
called by 23
src/transcript.py
create
called by 8
src/agent/session.py
to_dict
called by 7
src/providers/base.py
load_config
called by 6
src/config.py
route_prompt
called by 6
src/runtime.py
add
called by 6
src/history.py

Shape

Method 105
Function 78
Class 52

Languages

Python100%

Modules by API surface

tests/test_porting_workspace.py23 symbols
src/query_engine.py14 symbols
src/tools.py10 symbols
src/runtime.py10 symbols
src/config.py10 symbols
src/commands.py10 symbols
src/providers/base.py9 symbols
src/execution_registry.py8 symbols
test_e2e.py7 symbols
src/repl/core.py7 symbols
src/repl.py7 symbols
src/models.py7 symbols

For agents

$ claude mcp add Clawd-Code \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page