Reverse engineer Claude Desktop's Cowork architecture from minified JS
A contributor pointed Claude at minified JavaScript and asked it to reverse engineer how Cowork mode works, producing an architecture deep dive.
Done withClaudeClaude Cowork
- What they did
- The author, who maintains a Linux repackaging project for Claude Desktop, fed Claude Desktop’s minified JavaScript to Claude and had it reverse engineer Cowork mode. From that analysis and follow-up discussion, they traced a startup flow where Claude Desktop downloads or promotes a roughly 2GB Linux rootfs, boots a VM with Apple’s Virtualization Framework and 8GB RAM, installs Claude Code CLI inside it via an installSdk() RPC call, mounts user folders with VirtioFS, and runs work inside bubblewrap plus seccomp; a commenter then verified a config flag the author had identified.
- How it went
- The result was an architecture deep dive the author says included code samples, diagrams, and evidence that Anthropic hosts both ARM and x64 VM images, suggesting a Linux version might be feasible. It did not directly answer every behavior question in-thread, such as how Cowork controls Mac apps.
- Worth knowing
- A practical catch from the thread is that Cowork appears tied to a secureVmFeaturesEnabled setting in Claude Desktop’s config; setting it false produced “Feature disabled” for one commenter.
Try it yourself with Claude
I'm attaching the minified JavaScript from [app or file name]. Reverse engineer how [feature, e.g. a mode or workflow] works and write an architecture deep dive covering the main components, how they communicate, where data and permissions flow, and any notable design decisions. Mark what you inferred versus what the code shows directly, and list open questions. Stop when you have a structured write-up with a diagram described in text.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Undated
Related use cases
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Survey AI product names with a swarm of search agents
The author had a swarm of Claude agents run 4,654 searches to catalog AI bot names and analyze naming trends by gender, industry and year.
Run a business with orchestrated coding agents
A founder uses an orchestration tool spawning agents to constantly make content and fix bugs from feedback for their business, rotating across multiple Claude subscriptions via a script.
Find a Linux vulnerability hidden for 23 years
An account of Claude Code uncovering a long-standing vulnerability in Linux.
Patch laptop BIOS to unlock hidden firmware menus
A Reddit user gave Claude Code a BIOS dump; it disassembled it, found the signature check and patched it, unlocking hidden settings after flashing (secondhand account).
Monitor and score CVEs with real-time alerts
An n8n workflow monitors CVEs from sources like CISA and OTX, scores them with AI, and alerts via Slack, Gmail and Google Sheets.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.