Migrate your code and prompts from Sonnet 4.x and Opus 4.1 to Opus 4.5.
完整开源的 Claude Code 项目 - 基于 Anthropic 官方源码重建
本项目由衷感谢 Anthropic 公司的开源贡献!
Anthropic 通过 npm 包发布 Claude Code,使我们能够学习和研究这个优秀的 AI 编程助手架构。本项目的源码是从官方 npm 包的 source map 中恢复的,仅供学习和研究使用。
"您说的对,我不应该把map文件一并发布到npm中,这是一个非常严重的错误。"
我们理解 source map 文件本应用于开发调试,而非公开发布。Anthropic 对此问题的认识和处理方式值得我们学习。
Open-ClaudeCode 是一个完整的 Claude Code 开源版本,包含:
Open-ClaudeCode/
├── package/ # 可运行的 CLI
│ ├── cli.js # 编译后的 CLI (13MB)
│ ├── cli.js.map # Source Map (57MB)
│ ├── package.json # 包配置
│ ├── bun.lock # Bun 锁文件
│ ├── sdk-tools.d.ts # SDK 类型定义
│ └── vendor/ # 原生二进制模块
│ ├── audio-capture/ # 音频捕获 (多平台)
│ └── ripgrep/ # 代码搜索工具
├── src/ # 完整 TypeScript 源码 (1,884 文件)
│ ├── tools/ # 30+ 工具实现
│ ├── commands/ # 50+ 命令实现
│ ├── services/ # API、MCP、OAuth 服务
│ ├── components/ # React UI 组件
│ ├── ink/ # Ink UI 框架
│ ├── utils/ # 工具函数
│ └── ... # 更多模块
├── plugins/ # 13 个官方插件
│ ├── agent-sdk-dev/
│ ├── claude-opus-4-5-migration/
│ ├── code-review/
│ ├── commit-commands/
│ ├── explanatory-output-style/
│ ├── feature-dev/
│ ├── frontend-design/
│ ├── hookify/
│ ├── learning-output-style/
│ ├── plugin-dev/
│ ├── pr-review-toolkit/
│ ├── ralph-wiggum/
│ └── security-guidance/
├── docs/ # 文档
├── README.md # 本文件
├── ACKNOWLEDGEMENTS.md # 感谢声明
└── LICENSE # 许可证说明
# 直接运行编译后的 CLI
node package/cli.js --version
# 查看帮助
node package/cli.js --help
源码位于 src/ 目录,包含 1,884 个 TypeScript/TSX 文件:
# 查看入口点
cat src/main.tsx
# 查看工具实现
ls src/tools/
# 查看命令实现
ls src/commands/
插件位于 plugins/ 目录,包含 13 个官方插件:
# 查看插件列表
ls plugins/
# 查看插件详情
cat plugins/ralph-wiggum/.claude-plugin/plugin.json
| 类别 | 数量 |
|---|---|
| TypeScript 源码 | 1,884 文件 |
| 工具实现 | 30+ 个 |
| 命令实现 | 50+ 个 |
| 服务模块 | 15+ 个 |
| UI 组件 | 25+ 个 |
| 官方插件 | 13 个 |
| 原生模块 | 2 个 (audio-capture, ripgrep) |
本项目源码版权归 Anthropic PBC 所有。
本仓库仅供学习和研究使用,不代表 Anthropic 官方立场。
详见 LICENSE 和 ACKNOWLEDGEMENTS.md。
最后更新: 2026-03-31
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub sodiumhydride/open-claudecode --plugin claude-opus-4-5-migrationFrontend design skill for UI/UX implementation
Security reminder hook that warns about potential security issues when editing files, including command injection, XSS, and unsafe code patterns
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Streamline your git workflow with simple commands for committing, pushing, and creating pull requests
Adds educational insights about implementation choices and codebase patterns (mimics the deprecated Explanatory output style)
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.