Article complete

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. 

A man with crossed arms stands against a bright yellow background, with a faint outline of another figure behind him.

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.

Takeaways drafted with AI from the article text.

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.

Published Updated

Spotted an error? Tell our editors. Read our editorial standards and corrections.

More in this story

Andrej Karpathy · 3 stories
  1. You are here: Andrej Karpathy Says nanochat is ‘Entirely Hand-Written’, Not Vibe Coded
  2. App Stores are Outdated in the Era of Vibe Coding: Andrej Karpathy
  3. Andrej Karpathy Moves Beyond RAG, Builds LLM-Powered Personal Knowledge Bases
About the author

Tech Journalist

Siddharth is a media graduate who loves to explore tech through journalism and putting forward ideas worth pondering about in the era of artificial intelligence.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.