Anthropic's Leaked Code Reveals Sophisticated CLI Platform

𝗧𝗵𝗲 𝗖𝗹𝗮𝘂𝗱𝗲 𝗖𝗼𝗱𝗲 𝘀𝗼𝘂𝗿𝗰𝗲 𝗰𝗼𝗱𝗲 𝗵𝗮𝘀 𝗹𝗲𝗮𝗸𝗲𝗱. The irony is almost too perfect: when publishing npm packages, someone at Anthropic appears to have made a very expensive mistake. Alongside the obfuscated cli.js, the public package also included a full cli.js.map file, which absolutely was not supposed to be there. Which means one simple thing: 𝗮𝗻𝘆𝗼𝗻𝗲 𝘄𝗵𝗼 𝗶𝗻𝘀𝘁𝗮𝗹𝗹𝗲𝗱 𝗼𝗿 𝗱𝗼𝘄𝗻𝗹𝗼𝗮𝗱𝗲𝗱 𝘁𝗵𝗲 𝗽𝗮𝗰𝗸𝗮𝗴𝗲 𝗰𝗼𝘂𝗹𝗱 𝗿𝗲𝗰𝗼𝗻𝘀𝘁𝗿𝘂𝗰𝘁 𝘁𝗵𝗲 𝗼𝗿𝗶𝗴𝗶𝗻𝗮𝗹 𝘀𝗼𝘂𝗿𝗰𝗲 through the sourcemap without much effort. After that, the internet did what the internet always does: The code spread across repositories almost instantly, and several well-known infosec communities confirmed that this was not a fake and not just a thin wrapper around an API, but a genuinely sophisticated CLI platform. 𝗥𝗲𝗽𝗼𝘀𝗶𝘁𝗼𝗿𝘆: https://lnkd.in/dNptTPk6 The scale is impressive too. 1,906 TypeScript files and roughly 500,000 lines of code. Some of the more interesting details: • there are hints of unreleased features like 𝗱𝗲𝗲𝗽 𝗽𝗹𝗮𝗻𝗻𝗶𝗻𝗴, 𝗽𝗲𝗿𝘀𝗶𝘀𝘁𝗲𝗻𝘁 𝗺𝗲𝗺𝗼𝗿𝘆, 𝗮𝗻𝗱 𝗲𝘃𝗲𝗻 “𝘀𝗹𝗲𝗲𝗽” • you can inspect how Anthropic seems to have implemented multi-agent orchestration, for example in coordinator/coordinatorMode.ts • 𝘁𝗵𝗲 𝘀𝘆𝘀𝘁𝗲𝗺 𝗽𝗿𝗼𝗺𝗽𝘁𝘀 𝗮𝗿𝗲 𝗮𝗹𝘀𝗼 𝗲𝘅𝗽𝗼𝘀𝗲𝗱, including constants/prompts.ts For anyone building agentic tooling, this is a rare chance to look under the hood of a very serious product and study the actual engineering, not the marketing layer. 𝗛𝗮𝗽𝗽𝘆 𝗼𝗽𝗲𝗻-𝘀𝗼𝘂𝗿𝗰𝗲 𝗱𝗮𝘆, 𝗜 𝗴𝘂𝗲𝘀𝘀.

To view or add a comment, sign in

Explore content categories