Gitea has no /releases/latest/download/<file> shortcut (GitHub-only),
so the URL we wired up last commit served 404. Switch all user-facing
install commands to /raw/HEAD/install.{sh,ps1} -- the HEAD ref resolves
to the default branch (secure-main) without naming it, gives a stable
"always latest" URL, and survives a future branch rename.
With install no longer routed through release assets, the release
workflow becomes dead weight: secure-main is the curated branch (every
merge is manually reviewed), so every commit there is already vetted.
A separate tagged-release step duplicates that gate without adding new
information. Drop .gitea/workflows/release.yml; tag manually if you
ever want an immutable audit checkpoint.
The orphan v1.1.7-secure.1 tag + release is left in place as a
historical snapshot; harmless and can be deleted from the Gitea UI
later if desired.
9.6 KiB
ClawGod
Claude Code ゴッドモード。
これはサードパーティ製の Claude Code クライアントではありません。 ClawGod は公式 Claude Code の上に適用されるランタイムパッチです。どのバージョンにも対応し、Claude Code が更新されると次回起動時に自動的に新バージョンから再抽出・再パッチを行います。
必要条件
ClawGod インストーラ実行前に揃えておくもの:
| ツール | 用途 | インストール |
|---|---|---|
| Claude Code(ネイティブバイナリ) | ClawGod は既に入っている公式 Bun standalone バイナリにパッチを当てる | claude.ai/install.sh(macOS/Linux)または claude.ai/install.ps1(Windows) |
| ripgrep | Claude Code の Grep ツールが必須 | brew install ripgrep / apt install ripgrep / winget install BurntSushi.ripgrep.MSVC |
| Node.js >= 18 | パッチャが利用 | nodejs.org |
| Bun | パッチ済み cli.js の実行ランタイム、未検出時は自動インストール | bun.sh、npm install -g bun、scoop install bun、または choco install bun |
インストール
macOS / Linux:
curl -fsSL https://git.qomar.pw/omar/clawgod/raw/HEAD/install.sh | bash
Windows (PowerShell):
irm https://git.qomar.pw/omar/clawgod/raw/HEAD/install.ps1 | iex
緑のロゴ = パッチ適用済み。オレンジのロゴ = オリジナル。
機能一覧
機能アンロック
| パッチ | 内容 |
|---|---|
| 内部ユーザーモード | 24以上の隠しコマンド(/share、/teleport、/issue、/bughunter...)、デバッグログ、APIリクエストダンプ |
| GrowthBook オーバーライド | 設定ファイルで任意のフィーチャーフラグを上書き |
| Agent Teams | マルチエージェント協調、フラグ不要 |
| Computer Use | Max/Proサブスク不要で画面操作(macOS) |
| Auto-mode | サードパーティ API ユーザー向け auto-mode のロック解除(firstParty 制限を撤去) |
| Ultraplan | Claude Code Remote 経由のマルチエージェント計画 |
| Ultrareview | Claude Code Remote 経由の自動バグ検出 |
制限の解除
| パッチ | 解除内容 |
|---|---|
| CYBER_RISK_INSTRUCTION | セキュリティテスト拒否プロンプト(ペネトレーション、C2、エクスプロイト) |
| URL制限 | 「URLを生成・推測してはならない」指示 |
| 慎重操作 | 破壊的操作前の強制確認 |
| ログイン通知 | 起動時の「未ログイン」リマインダー |
ビジュアル
| パッチ | 効果 |
|---|---|
| グリーンテーマ | ブランドカラー → 緑。パッチ適用を一目で確認 |
| メッセージフィルター | Anthropic 社外ユーザーに非表示のコンテンツを表示 |
信頼性
| 機能 | 効果 |
|---|---|
| 1h Prompt Cache | 1h TTL allowlist を強制有効化(デフォルトは実質 5m → アイドル後の cache_creation トークン浪費を防止) |
| サードパーティ Cache 修正 | baseURL が Anthropic 以外を指す場合、x-anthropic-billing-header を自動的に無効化します。このヘッダーの cch フィールドはリクエストごとに変化するため、DeepSeek / OneAPI / Bedrock / vLLM など Anthropic 互換プロキシでは prompt-cache ヒット率がゼロになります。CLAUDE_CODE_ATTRIBUTION_HEADER=0 を自分で設定する必要はもうありません。 |
| 自動再パッチ | ユーザーがネイティブ Claude バイナリをアップグレードすると、次回起動時に自動的に再抽出・再パッチ |
コマンド
claude # パッチ済み Claude Code(公式 launcher を置き換え)
clawgod # `claude` と同じ、明示的かつ常に動作するエントリポイント
claude.orig # オリジナル未修正版(自動バックアップ)
clawgod は曖昧さのないエントリポイントです:Windows で claude.exe が claude.cmd を覆い隠す場合でも clawgod.cmd は常に動作し、公式自動更新で claude が上書きされても clawgod はパッチ済みビルドを実行し続けます。
設定
初回起動時に ~/.clawgod/provider.json が自動生成されます。apiKey を設定すれば OAuth ログイン不要で、Anthropic 互換エンドポイントに接続できます。
{
"apiKey": "sk-ant-...",
"baseURL": "https://api.anthropic.com",
"model": "",
"smallModel": "",
"timeoutMs": 3000000
}
apiKeyを設定:ClawGod がANTHROPIC_API_KEYとして注入し、~/.claude/settings.jsonから隔離します。Anthropic / DeepSeek など OpenAI 互換ゲートウェイでも動作。baseURLが Anthropic 以外を指す場合、ゲートウェイ認証用にANTHROPIC_AUTH_TOKENも自動設定されます。apiKey未設定:OAuth パス。一度claude auth loginを実行すれば、~/.claude配下の subagents / skills / MCP はそのまま使えます。
仕組み
@anthropic-ai/claude-code v2.1.113 以降、npm パッケージは cli.js を同梱せず、プラットフォーム固有の Bun standalone バイナリへ転送する thin loader だけになりました。ClawGod は次のように対応しています:
~/.local/share/claude/versions/からユーザの Bun ネイティブバイナリを検出__BUNセグメント(Mach-O / ELF / PE)から埋め込まれたcli.jsソースを抽出- 埋め込まれた
.nodeネイティブモジュール(audio-capture、image-processor、computer-use-*、url-handler)を~/.clawgod/vendor/に抽出 /$bunfs/...仮想パスをローカル vendor パスに書き換え- 23 個の正規表現パッチを適用(バージョン横断的——同じ regex 群で複数リリースをカバー)
claude/clawgodランチャが Bun ランタイムでパッチ済み cli.js を実行
~/.clawgod/.source-version がパッチ時のバージョンを記録します。起動毎に wrapper がそれと versions/ の最新バイナリを比較し、ユーザが公式手段で Claude Code をアップグレードした場合は次回起動時に自動再パッチが走ります。
アップデート
そのまま claude update を実行するだけで OK です。 ClawGod はこのコマンドを自身のインストーラへ流すようパッチしており、npm から Anthropic の現行リリース(@anthropic-ai/claude-code-<plat>@latest)を取得し、cli.js を再抽出、パッチを再適用、launcher を書き直します。そのため上流の claude update コマンドは期待通りに動作します——1 コマンドで最新の Claude を取得し、パッチも適用された状態を保てます。
直接インストーラを実行したい場合(効果は同じで、どちらも同じ上流リリースを取得してパッチを当て直します):
macOS / Linux:
curl -fsSL https://git.qomar.pw/omar/clawgod/raw/HEAD/install.sh | bash
Windows:
irm https://git.qomar.pw/omar/clawgod/raw/HEAD/install.ps1 | iex
ClawGod を外して Anthropic 本来の claude update(独自に管理されたパスへ書き込み、私たちの launcher を上書きします)を使いたい場合は、先にアンインストールしてください:
bash ~/.clawgod/install.sh --uninstall
アンインストール
macOS / Linux:
curl -fsSL https://git.qomar.pw/omar/clawgod/raw/HEAD/install.sh | bash -s -- --uninstall
hash -r # シェルキャッシュをリフレッシュ
Windows:
irm https://git.qomar.pw/omar/clawgod/raw/HEAD/install.ps1 -OutFile install.ps1; .\install.ps1 -Uninstall
アンインストールは claude.orig を claude に戻し、clawgod エイリアスを削除します。
インストール・アンインストール後、コマンドがすぐに反映されない場合はターミナルを再起動するか
hash -rを実行してください。
ライセンス
GPL-3.0 — Anthropic とは無関係です。自己責任でご使用ください。
