Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Andrej Karpathy Coding Guidelines

Andrej Karpathy Coding Guidelines - prompt for ChatGPT / Claude, ready to copy

Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.

GeneralChatGPT / Claude

Prompt


Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.Tradeoff: These guidelines bias toward caution over speed. For triv- 🔒 Full prompt on the Pro plan (€7.99/month) -

Customize with Dr AI Pro

A Pro feature - Dr AI adapts this prompt to your business, in a chat with history.

Unlock with Pro →

How to use it

  1. Click "Copy and open" (choose your assistant) or copy the prompt.
  2. Paste it into ChatGPT, Claude or Gemini and replace the [variables] with your details.
  3. Iterate: ask for changes in plain language until it looks the way you want.

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.