Someone Reverse-Engineered Grok Bot 0.18 and Rebuilt It With Four AI Backends
A weekend reverse-engineering project turns a compiled macOS app into 440K lines of readable TypeScript, then bolts on a four-provider inference router.
PRO- Compiled Grok Bot 0.18.0 macOS app rebuilt as ~440K lines of readable TypeScript plus 54K lines of React.
- New inference router sends conversations to Cursor, Claude Code, Codex, or OpenRouter.
- Codex path uses ChatGPT OAuth from
~/.codexwith 401 auto-refresh and permission checks. - Loopback MCP server with a random secret path exposes Grok Bot plugin tools to foreign backends.
- Optional local Docker sandbox replaces the remote execution box with a loopback-only container.
- Reconstructed build disables the upstream updater and defaults telemetry off.
Someone spent a weekend pulling apart the compiled Grok Bot 0.18.0 macOS desktop app and putting it back together as readable source code, then extended it with a router that can send conversations to Cursor, Claude Code, Codex, or OpenRouter. The result, grok-bot-0.18-reconstructed, is roughly 440,000 lines of TypeScript for the runtime plus about 54,000 lines of React for the renderer, wired into a working build toolchain that produces a signed macOS app.
The project is explicit about its scope. It is an unofficial, source-oriented reconstruction of the publicly shipped 0.18.0 app, not the original monorepo and not an official release. Names and module boundaries were inferred from the compiled binary, so they may not match whatever exists inside Anysphere.
Reversing a shipped Electron app without source maps
The distributed app did not ship with source or source maps, only minified production JavaScript and CSS chunks. Recreating a pixel-perfect frontend would have been a much larger project, so the author took a pragmatic shortcut: rebuild the runtime and control-plane code from scratch, keep the polished shipped renderer as the UI baseline, and apply a small deterministic patch to inject the new Router settings pane.
The
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.