3 ms·
Just check the leaked code yourself. Two biggest areas seem to be the `utils` module, which is a kitchen sink that covers a lot of functionality from sandboxing
by neurostimulant 6mo ago
Just check the leaked code yourself. Two biggest areas seem to be the `utils` module, which is a kitchen sink that covers a lot of functionality from sandboxing, git support, sessions, etc, and `components` module, which contains the react ui. You could certainly build a cli agent with much smaller codebase, with leaner ui code without react, but probably not with this truckload of functionality.
- cogman10 6mo agoThey are doing some strange "reinvent the wheel" stuff. For example, I found an implementation of a PRNG, mulberry32 [1], in one of the files. That's pretty strange considering TS and Javascript have decent PRNGs built into the language and this thing is being used as literally just a shuffle. [1] https://github.com/AprilNEA/claude-code-source/blob/main/src/buddy/companion.ts#L16 https://github.com/AprilNEA/claude-code-source/blob/main/src...
- neurostimulant 6mo agoWell, at least that confirms they weren't lying when they said all recent updates to claude code were made by claude. You certainly won't do this stuff if you were writing the code yourself.
- hombre_fatal 6mo agomulberry32 is one of the smallest seedable prngs. Math.random() is not seedable. If you search mulberry32 in the code, you'll see they use it for a deterministic random. They use your user ID to always pick the same random buddy. Just like you might use someone's user ID to always generate the same random avatar. So that's 10 lines of code accounted for. Any other examples?