Developer cuts Claude Design sync cost from 665k tokens to near zero with custom CLI
A developer reverse-engineered the undocumented API behind Claude.ai/design after finding that syncing project files through an AI agent consumed roughly 665,000 tokens — because all file bytes had to pass through the model's context. Since the endpoint is an undocumented MCP server, the developer mapped its behavior through direct observation rather than relying on any official specification. The process exposed three incorrect assumptions about the protocol, including how write results are structured, how access errors are surfaced, and how binary files are detected. To prevent untested assumptions from hiding real bugs, every documented protocol claim was paired with a live integration test that hits the actual server. The resulting CLI tool syncs files like a version-control system, keeping file bytes out of the model context entirely and using atomic writes to prevent data loss from interrupted operations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in