Grok Bot 0.18.0 accidentally shipped with source maps, enabling full client reconstruction

A developer recovered readable TypeScript source from the macOS app after Cursor included source maps in the release build. The grok-bot-0.18-reconstructed repository now adds an inference router for

cpaua3 min234
Grok Bot 0.18.0 accidentally shipped with source maps, enabling full client reconstruction

Cursor shipped Grok Bot 0.18.0 for macOS with JavaScript source maps embedded in the production build — a mistake that let a developer reconstruct nearly the entire client codebase and publish it as grok-bot-0.18-reconstructed on GitHub. Source maps are normally stripped from closed-source releases because they map minified bundles back to original files and project structure. With them present, the agent coordinator, model routing, local execution logic, and protocol handling became readable layer by layer.

The accidental release and what was recovered

The reconstruction began as an effort to understand how the desktop app was assembled. It now contains TypeScript implementations of the Electron main process, host runtime, coordinator, local-execution daemon, protocol definitions, and renderer boundaries, plus a deterministic toolchain that turns those sources back into a working macOS application. The repository treats the public 0.18.0 DMG as a pinned build input: during bootstrap it downloads the installer, verifies its SHA-256 hash, extracts the required pieces, and compiles the reconstructed runtimes while retaining the original polished renderer for the UI baseline.

Inference router adds Claude Code, Codex, and OpenRouter

The reconstructed build introduces a Router settings page where users choose the backend for new conversation turns. Options include Cursor (default, using the existing Grok Bot session), Claude Code (using an existing local login), Codex (using a local ChatGPT/Codex login), and OpenRouter (via an API key stored through the desktop secrets bridge). Streaming responses, thinking state, reactions, rich plugin mentions, and MCP tool execution are preserved across all routed providers. A Usage & Billing panel shows locally recorded request and token totals for providers that return usage data.

Local Docker sandbox replaces remote infrastructure

A toggle on the Router page enables a local Docker VM. When active, Grok Bot runs its box host and execution daemon in an owned container bound only to loopback ports, mounting content-addressed artifacts read-only and reusing existing provider authentication. The container is validated before the coordinator connects and is managed through the same settings lifecycle. Docker Desktop or a compatible local daemon is required; remote mode remains the default.

Building and running the reconstructed app

The project targets macOS on Apple Silicon with Node.js 26.5.x, Xcode Command Line Tools, and Git LFS. The quick-start sequence clones the repository, pulls LFS objects, installs dependencies, runs bootstrap to fetch and verify the pinned 0.18.0 DMG, type-checks the codebase, packages the app, and opens the resulting bundle at dist/Grok Bot 0.18 Reconstructed.app. Packaging assigns a separate bundle identifier, ad-hoc signs the binary, and disables the upstream updater and default telemetry.

Experimental status and provenance

The app launches and core flows — routed inference, connected plugins, and the local Docker sandbox — are usable. The reconstruction targets a single pinned macOS/arm64 release, depends on external provider sessions, and makes no compatibility promises for future Grok Bot versions. Original installers for macOS arm64 and Windows x64 are preserved in the repository under research-archives/original/0.18.0/ with SHA-256 hashes recorded for verification. Technical provenance and retained upstream boundaries are documented in PROVENANCE.md and NOTICE.md.

Related reading

Sources

x.com — content not available without authorization

b-nnett/grok-bot-0.18-reconstructedgithub.com/b-nnett/grok-bot-0.18-reconstructed
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.