1. Randomly peeking at process.argv and process.env all around. Other weird layering violations, too.
2. Tons of repeat code, eg. multiple ad-hoc implementations of hash functions / PRNGs.
3. Almost no high-level comments about structure - I assume all that lives in some CLAUDE.md instead.You're right about process.argv - wow, that looks like a maintenance and testability nightmare.
It probably exists only in CLAUDE or AGENTS.md since no humans are working on the code!
What is wrong with peeking at process.env? It is a global map, after all. I assume, of course, that they don't mutate it.