The Weekend
A developer rebuilt a four-hundred-thousand-line AI agent platform as four thousand lines in a weekend. The secure version is one percent the size. When infrastructure can be rebuilt from scratch f...

Source: DEV Community
A developer rebuilt a four-hundred-thousand-line AI agent platform as four thousand lines in a weekend. The secure version is one percent the size. When infrastructure can be rebuilt from scratch faster than it can be audited, the codebase itself becomes the vulnerability. Gavriel Cohen spent a weekend rebuilding OpenClaw. The original platform — four hundred thousand lines of code running bare metal with application-level permission checks — had become the most popular open-source agent framework. It had also accumulated over a thousand malicious packages in its skills marketplace. Meta's Summer Yue reported it running amok and deleting her inbox. Andrej Karpathy called it four hundred thousand lines of code he was "a bit sus'd" to run. Cohen's rebuild, NanoClaw, is four thousand lines of TypeScript. One percent of the original. Built in a weekend using Claude Code, running on Anthropic's Agent SDK, with every agent isolated in its own container. Eighteen thousand GitHub stars within