Karpathy Built HackerTube in About 2 Hours With Claude Code — Here Is the Playbook for Copying It
Most AI-productivity stories end with a screenshot and a claim. The one worth reading recently ends with something more useful: a list of the exact keystrokes a human still had to supply. Andrej Karpathy — former AI director at Tesla and a co-founding member of OpenAI — published a weekend project called HackerTube, and the way he built it now functions as a practical reference for anyone deciding what to hand to an AI coding agent and what to keep on a human's plate.
His complaint is a familiar one: the algorithmic feed on YouTube keeps serving him clickbait covers and recycled suggestions. So he went at the problem from the other end. Using Anthropic's AI coding tool Claude Code, he treated the past 20 years of comments on the developer community Hacker News as a filter — 43 million comments mined by Claude, out of which 6454 videos kept being recommended again and again. That curated pool became the catalogue of HackerTube, and the whole build took about 2 hours. Karpathy's own verdict on social platforms: compared with the recommendation system YouTube runs today, HackerTube gives a "noticeably better viewing experience". He also wrote up the project on his own blog, and the site itself was submitted and argued over on Hacker News.
Only three human actions stayed on the critical path
The part of the story that matters for working teams is not the finished site, it is the division of labour Karpathy described. The project ran on Claude Code with the Claude Opus 5.5 model at Medium reasoning strength, on the Mac desktop app of Claude Code. He talked to the agent, and the agent did nearly all of the engineering. The manual list came down to three administrative steps:
- Issue the credential. He created an API key through the Google Cloud interface so the project could query YouTube video metadata.
- Open the box. He launched the VPS server that would host the site.
- Buy the address. He purchased the domain name.
Once the server existed, he pasted its IP address to Claude and asked for the rest: update the code, harden the security, deploy, and optimise performance. Claude, by his account, completed all of it. Analysis of 43 million comments, selection of 6454 videos, front-end and back-end construction, deployment and tuning were therefore done by the agent. Karpathy's reflection is the line people are quoting: work that once needed weeks or even months can now, after a handful of requests to an AI, be finished in one morning. He closed with the question that should be read as a brief rather than a slogan: "What other possibilities haven't we thought of yet?"
Design choices you can steal without touching a recommender system
- No account, no login. Watch state lives in the local browser session. For a small product this removes sign-up friction and an entire class of data-storage obligations.
- Mid-frame thumbnails instead of creator covers. HackerTube grabs a representative frame from the middle of the video. That matters because the cover image is now an optimised object: YouTube itself ships a thumbnail A/B testing feature, Test & Compare, which lets creators upload up to three thumbnails and pick the winner. Once the platform rewards tested thumbnails, a neutral frame is a rare honest signal.
- Publish the raw material, not just the result. HackerTube offers a ZIP archive of the underlying comment-analysis data, so other developers can download it, hand it to Claude, and produce their own variant of a recommender. Releasing the dataset turns a demo into a building block.
A step-by-step route for your own version
- Pick a community with long memory. The method works wherever people recommend things repeatedly over years, not wherever they click once. Hacker News material is also reachable without scraping: Google Cloud lists a Hacker News public dataset in its BigQuery public dataset catalogue, covering stories and comments going back to the site's early years, alongside the community's public API.
- Define "recommended" as repetition, not one-off praise. Karpathy's stated filter was videos that kept coming up across the past 20 years — that is what turns 43 million comments into a usable 6454-item library.
- Estimate your metadata budget before writing code. YouTube's Data API gives a project a default allocation of 10,000 quota units per day and only 100 search.list calls per day, per Google's own quota documentation. Resolving thousands of video records therefore means batched lookups, caching results to disk, and spreading calls across days — tell the agent the budget up front or it will design an unrunnable pipeline.
- Check the platform rules for anything you store. YouTube's API Services developer policies prohibit scraping YouTube applications and, without prior written approval, downloading or keeping copies of audio-visual content. Any project that extracts frames rather than using supplied metadata sits close to that boundary and deserves a legal read before it goes public.
- Do the three admin steps yourself, deliberately. Credential, server, domain. Keep those in your hands; they are the points of responsibility, and they are quick.
- Set the agent's leash before the deploy request. Anthropic's Claude Code security documentation is explicit that a session's permission mode decides which actions the tool may take without asking you first. Handing an IP address to an agent and saying "hardening and deploy" is exactly the moment to run in a confirming mode, not a fully automatic one.
- Ship, then write down what the agent got wrong. Security headers, dependency pinning, rate limits and backup strategy are where a two-hour build is thinnest.
Where the "about 2 hours" number stops holding
| Dimension | Weekend build (what happened here) | What a public product needs |
| Data pipeline | One-off analysis run over the past 20 years of comments | Re-runnable jobs, versioned dataset, handling of deleted or private videos |
| Cost control | Metadata queries behind a single Google Cloud API key | Quota monitoring, caching layer, alerting when a daily limit is hit |
| Security | Agent asked to strengthen protection before go-live | Independent review, secrets management, patch cadence, abuse reporting |
| Quality | Community curation replaced personalisation | Spam and vote manipulation defences, re-ranking, takedown workflow |
| Team load | One person, one morning | Documentation and handover so the product outlives its author |
The caveat Karpathy himself left in the record is the one teams forget: roughly 2 hours of solo project work does not mean that comparable products can hit the same speed on data handling, long-term maintenance or safety assurance.
Common misconceptions
- "The AI did nothing but type code." It also analysed 43 million comments, chose 6454 videos, deployed and tuned the site — the judgement workload moved too, not just the keyboard.
- "HackerTube is a YouTube competitor." It is a recommender with no player of its own; the videos still live on YouTube.
- "Two hours proves AI-built products are production-ready." Speed of first deployment is not evidence about reliability, moderation or upkeep.
- "No login means no privacy exposure." Local session state is a good default, but any future sync feature reopens the question.
FAQ
What exactly took about 2 hours?
Everything from the comment analysis through the finished, deployed HackerTube site, using Claude Code with Claude Opus 5.5 at Medium reasoning strength on the Mac desktop app. The three manual steps — the Google Cloud API key, the VPS and the domain purchase — were the only things Karpathy did by hand.
Do I need to be a researcher like Karpathy for this to work?
No, but you do need a clean data source and a clear filter rule. The bottleneck for ordinary teams is knowing what "good" means well enough for an agent to test against; the coding is no longer the expensive part.
Why drop the creator's own cover image?
Because covers are engineered for clicks, now with the platform's own help through thumbnail testing tools. A frame from the middle of the video is harder to game, which pushes attention back to content.
Can I reuse his work directly?
Yes, the ZIP of the underlying comment-analysis data is offered for download, so you can feed it to Claude and build your own themed version of a curated video list.
What to do next
- Choose one recurring recommendation community you already trust, and write its filter rule in a sentence before opening any tool.
- Look up the official quota and policy pages of every data source you plan to touch, and paste those limits into the agent's instructions.
- Split your task list into "agent work" (code, analysis, docs) and "human work" (credentials, servers, domains, security sign-off) — Karpathy's three-step split is a reasonable starting template.
- Treat the first working deploy as a draft: budget real hours for maintenance, abuse handling and a security pass an AI wrote for itself.
Read as news, HackerTube is a well-known engineer venting about his feed. Read as a manual, it is more interesting: it shows that the scarce skill in AI-assisted building is no longer writing the site, but deciding what should be in it, and who signs off before it goes live.
By Sarah Chen, Tech Daily — MyTechDailyNews General desk. Tips, corrections and questions: hello@techdaily.com