Article Complete
AIM
Andrej Karpathy Says nanochat is ‘Entirely Hand-Written’, Not Vibe Coded
Andrej Karpathy Says nanochat is ‘Entirely Hand-Written’, Not Vibe Coded
Handwritten Hype Machine

Andrej Karpathy Says nanochat is ‘Entirely Hand-Written’, Not Vibe Coded

The repo consists of about 8,000 lines of code and covers the entire pipeline. 

Published Updated

Key takeaways

  • Andrej Karpathy released nanochat, an open-source ChatGPT-style model written entirely by hand.
  • The repository consists of approximately 8,000 lines of code, covering the full training and inference pipeline.
  • Karpathy attempted to use AI tools for coding but found them ineffective for his project requirements.
  • AI researcher Gary Marcus highlighted ongoing challenges in AI generalization, referencing Karpathy's experience.
  • Karpathy's work continues to emphasize the limitations of current AI in handling distribution shifts.
5 min

Andrej Karpathy, co-founder of OpenAI and founder of Eureka Labs, revealed his latest open-source project, nanochat, was written entirely by hand, confirming that he did not rely on AI tools for the code.

In a post on X on October 13, Karpathy announced the release of nanochat, an open-source project that provides a full-stack training and inference pipeline for a simple ChatGPT-style model. The repository follows his earlier project, nanoGPT, which focused only on pretraining.

The repo consists of about 8,000 lines of code and covers the entire pipeline. 

When asked by a user how much of the code was written manually, Karpathy replied, “Good question, it’s basically entirely hand-written (with tab autocomplete). I tried to use Claude/Codex agents a few times, but they just didn't work well enough at all and net unhelpful, possibly the repo is too far off the data distribution.”

The statement drew attention from AI researcher Gary Marcus, who noted that Karpathy’s comment reinforces ongoing challenges in AI generalisation. “Andrej Karpathy, inventor of the term vibe coding, hand-coding. And confirming — yet again — that current AI has not solved distribution shift (the core problem that I have been harping on since 1998),” Marcus wrote on X.

Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

© 2026 AIM. All rights reserved.