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
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
- MiniMax Code Goes Open Source: Performance Beats Codex & Claude
- Google Opens ARTEMIS AI Tool for Android Automation (Open Source)
- Inspo Inspo MCP Server Launches Free Open‑Source Design Agent
Sources
x.com — content not available without authorization
Related news
- AI ToolsThermo-Nuclear Code Quality Review: Cursor Skill ExplainedA breakdown of Cursor's strictest review skill: its eight rules, how to install it, what it found in a real project, and where it gets things wrong.·by shared tag
AI AgentsSpaceX acquires Cursor for $60 billionSpaceX has purchased Cursor for $60 billion, while the company announces Cursor Origin, a code management platform designed for AI agents.·by shared tag
- Prompt EngineeringCursor Direct visual prompts arrive in Design Mode with Canvas sharing and Context ExplorerCursor updates Design Mode with click-to-select, drawing, and voice input for UI edits, adds Canvas publishing and sharing, and introduces Context Explorer for token usage breakdown.·by shared tag
- Developer ToolsCursor's most used internal skill rejects complexity and oversized filesThe /thermo-nuclear-code-quality-review skill blocks files over 1000 lines and flags leaked logic in merge requests.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.