ClawGod 是一个运行时补丁,应用于官方 Claude Code CLI 之上。它解锁隐藏的内部功能、为高级用户移除安全限制、启用多智能体协作,并加入视觉标识——所有这些都无需替换官方二进制文件。
安装
macOS / Linux:
curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash
Windows (PowerShell):
irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex
安装后刷新 shell:
hash -r # bash/zsh
验证安装
Claude Code 中显示绿色标志表示补丁已激活。橙色表示未打补丁的原始版本。
claude --version # 已打补丁的构建 claude.orig # 原始未打补丁的二进制文件(已保留)
要求
- Node.js >= 18 + npm
- 已安装并认证 Claude Code
- 有效的 Claude Code 账户
使用前先认证:
claude auth login
ClawGod 补丁内容
功能解锁
- 内部用户模式:24+ 隐藏命令,包括 /share、/teleport、/issue、/bughunter、调试日志、API 请求转储
- GrowthBook 覆盖:通过配置文件覆盖任意功能开关
- Agent Teams:多智能体集群协作,无需额外标志
- Computer Use:无需 Max/Pro 订阅即可控制屏幕(macOS)
- Ultraplan:通过 Claude Code Remote 进行多智能体规划
- Ultrareview:通过 Claude Code Remote 进行自动缺陷排查
限制移除
- CYBER_RISK_INSTRUCTION:移除安全测试拒绝(渗透测试、C2、漏洞利用)
- URL 限制:移除“绝不生成或猜测 URL”系统指令
- 谨慎操作:移除破坏性操作前的强制确认
- 登录提示:移除“未登录”启动提醒
视觉变化
- 打补丁后品牌色变为绿色(一眼即可确认)
- 消息过滤器显示对非 Anthropic 用户隐藏的内容
关键命令
启动已打补丁的 Claude Code(交互式):
claude
启动原始未打补丁版本:
claude.orig
使用隐藏内部命令(补丁启用内部用户模式后):
claude
/share /teleport /issue /bughunter
GrowthBook 功能开关覆盖
ClawGod 暴露一个配置文件以覆盖任意 GrowthBook 功能开关:
// ~/.claude/growthbook-overrides.json(示例位置——请查阅文档确认确切路径) { "agentTeams": true, "ultraplan": true, "ultrareview": true, "computerUse": true }
将任意开关设为 true 即可强制启用,不受订阅层级限制。
多智能体集群(Agent Teams)
Agent Teams 补丁激活后,可协调多个 Claude Code 智能体:
启动集群会话——补丁后无需功能标志
claude
/agents start --swarm
跨智能体分配任务
/agents assign "write tests" agent-2 /agents assign "review PR" agent-3
Computer Use(macOS)
打补丁后,macOS 上无需 Max/Pro 订阅即可使用 Computer Use:
claude
/computer-use enable
Claude 现在可以控制屏幕、鼠标、键盘
Ultraplan 与 Ultrareview
Ultraplan:通过 Claude Code Remote 进行多智能体规划
claude
/ultraplan "refactor authentication module"
Ultrareview:自动缺陷排查
/ultrareview --target ./src
更新
重新运行安装程序——补丁会自动重新应用到最新版 Claude Code 之上:
macOS/Linux
curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash
Windows
irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex
无需手动固定版本——补丁适用于任意 Claude Code 版本。
卸载
macOS/Linux
curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash -s -- --uninstall hash -r
Windows
irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 -OutFile install.ps1 .\install.ps1 -Uninstall
卸载后,claude 恢复为原始二进制文件。claude.orig 也会被清理。
故障排查
安装后 claude 仍以未打补丁状态运行:
hash -r # 清除 shell 命令缓存 exec $SHELL # 或重启终端 which claude # 验证 PATH 指向已打补丁的二进制文件
Claude Code 自动更新后补丁未持久化:
重新运行安装程序——它会重新为新版本打补丁
curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash
Windows 执行策略错误:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex
隐藏命令未出现:
通过检查 Claude Code UI 中的绿色品牌色确认内部用户模式补丁已激活。如果为橙色,则补丁未应用——重新运行安装程序。
Node.js 版本错误:
node --version # 必须 >= 18 nvm install 18 # 如果使用 nvm nvm use 18
重要说明
- ClawGod 与 Anthropic 无关联
- 采用 GPL-3.0 许可
- 移除限制(CYBER_RISK_INSTRUCTION、谨慎操作)面向安全专业人员与高级用户——请负责任地使用
- claude.orig 二进制文件始终保留,可即时回退
- 补丁设计上可在 Claude Code 更新后存活——在 Claude Code 重大版本发布后重新运行安装程序以确保兼容性