Karpathy Guidelines
Behavioral guidelines to reduce common LLM coding mistakes, enforces simplicity, surgical changes, surface assumptions, and goal-driven execution with verifiable success criteria.
README
Karpathy Guidelines — Agent Zero Plugin
An Agent Zero plugin that automatically injects Andrej Karpathy's behavioral coding guidelines into every conversation to reduce common LLM coding mistakes.
What It Does
When enabled, this plugin auto-injects four key behavioral guidelines into the system prompt:
- Think Before Coding — State assumptions, surface tradeoffs, ask when unclear
- Simplicity First — Minimum code, no speculative features or unnecessary abstractions
- Surgical Changes — Only touch what's necessary, match existing style
- Goal-Driven Execution — Define verifiable success criteria, loop until verified
Installation
- Clone this repo into your Agent Zero plugins directory:
git clone https://github.com/sendralt/karpathy-guidelines /path/to/agent-zero/usr/plugins/karpathy-guidelines - Go to Agent Zero Web UI → Settings → Plugins
- Find Karpathy Guidelines and toggle it on
Plugin Structure
karpathy-guidelines/
├── plugin.yaml # Plugin metadata and config
├── hooks.py # Install/uninstall lifecycle hooks
├── prompts/
│ └── default.md # Auto-injected guidelines
└── README.md
License
MIT