How a6083450/clawgod-plus works
ClawGod Plus modifies Claude Code’s embedded JavaScript and runs the patched CLI with Bun. The main flow is installation or update, extraction of the vendor CLI, selection and application of patches, then launch through the runtime wrapper. The graph also preserves documented provider, voice, plugin-compatibility, and feature-gating capabilities. Several runtime connections are documented in the README rather than shown in sampled call sites; those links cite the README, and unsampled implementation details are not inferred.
Main entry points: runtime Install and Update · wrapper.cjs CLI Wrapper · entry.mjs Patch Entry · registry.mjs Patch Registry
Components 24
Install and Update
- Install and Update
src/generic/runtime - CLI Extractor
src/generic/runtime/extractor.mjs - Vendor Transaction
src/generic/runtime/vendor-transaction.mjs - Update Repatcher
src/generic/runtime/repatcher.mjs
Patch System
- Enhancement Selection
src/generic/enhancement-config.mjs - Patch Entry
src/generic/patcher/entry.mjs - Patch Registry
src/generic/patcher/registry.mjs - Core Patches
src/generic/patcher/core.mjs - Enhancement Patches
src/generic/patcher/enhancements - Feature Gates
src/generic/patcher/runtime-features.mjs
Runtime and Providers
- CLI Wrapper
src/generic/runtime/wrapper.cjs - Patched Claude CLI
- OpenAI Proxy
src/generic/runtime/openai-proxy.cjs - Patch Fallback
src/generic/runtime/patch-fallback.cjs - Proxy-aware Fetch
src/generic/runtime/proxy-fetch.mjs
Runtime Capabilities
- Computer Use and Chrome
src/generic/patcher/enhancements - Voice ASR
src/generic/patcher/enhancements/voice-asr-cometix.js - claude-mem Compatibility
src/generic/runtime/claude-mem-compat.cjs - HUD Status Line
src/generic/runtime/claude-hud-statusline.mjs - Plugin Dependencies
src/generic/runtime/plugin-dependencies.mjs - Provider Import
tools/provider-import/src/main.rs
Other components
- Operator
- Bun Runtime
- Claude Code Package
Connections 27
- Operator → Install and Update: starts install
- Claude Code Package → CLI Extractor: provides package
- Install and Update → CLI Extractor: extracts CLI
- Install and Update → Vendor Transaction: manages vendor
src/generic/runtime/repatcher.mjs - Install and Update → Patch Entry: invokes patching
- Operator → Enhancement Selection: selects enhancements
- Enhancement Selection → Patch Entry: resolves selection
src/generic/patcher/entry.mjs - Patch Entry → Patch Registry: creates selection
src/generic/patcher/entry.mjs - Patch Registry → Core Patches: loads core patches
src/generic/patcher/registry.mjs - Patch Registry → Enhancement Patches: loads enhancements
src/generic/patcher/registry.mjs - Enhancement Patches → Core Patches: uses AST helpers
src/generic/patcher/enhancements/cometix.mjs - Enhancement Patches → Feature Gates: embeds feature gates
src/generic/patcher/enhancements/cometix.mjs - Patch Entry → Patched Claude CLI: patches CLI
- Patched Claude CLI → CLI Wrapper: runs through
- Operator → CLI Wrapper: launches CLI
- CLI Wrapper → OpenAI Proxy: configures proxy
src/generic/runtime/wrapper.cjs - CLI Wrapper → Patch Fallback: uses fallback
src/generic/runtime/wrapper.cjs - CLI Wrapper → Feature Gates: sets feature gates
- Update Repatcher → Vendor Transaction: uses transactions
src/generic/runtime/repatcher.mjs - Install and Update → Proxy-aware Fetch: downloads through
src/generic/runtime/install-ripgrep.mjs - Proxy-aware Fetch → Bun Runtime: spawns worker
src/generic/runtime/proxy-fetch.mjs - Computer Use and Chrome → Patched Claude CLI: enhances CLI
- Voice ASR → Patched Claude CLI: provides ASR adapter
- claude-mem Compatibility → Patched Claude CLI: reuses provider setup
- HUD Status Line → Patched Claude CLI: provides status line
- Plugin Dependencies → Patched Claude CLI: ensures plugin dependencies
- Provider Import → Patched Claude CLI: imports provider configuration