PUT YOUR AGENT
ON A DIET.
Diet Code is lazy senior dev mode for AI coding agents. Claude Code, Cursor, Copilot, and Codex climb a ladder before writing anything — then ship the minimum that works.
MIT licensed core · install in under a minute · no telemetry on your code
How it works1 dependency → 1 built-in. structuredClone handles Dates, Maps, Sets, and circular refs — everything JSON.parse/stringify silently drops.
Climb the ladder
before you write anything
Install for your agent
Published on npm as @diet-code/cli. One ruleset, every host.
npm: @diet-code/cli
GitHub: kendrekaran/dietcode
Pick your intensity
Switch with /dietcode lite|full|off, or just say "stop dietcode" / "normal mode".
Build what's asked. The agent names the lazier alternative in one line.
The ladder enforced. Stdlib and native first, then minimum code.
Disabled. Your agent behaves exactly as it would without Diet Code.