---
id: 8589
lang: en
title: "AI code review: why it praises bad code and how to fix it"
published_at: "2026-05-02 16:55:57"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1019444/?utm_campaign=1019444&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/8589"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# AI code review: why it praises bad code and how to fix it

> **Краткая суть (BLUF):** The author spent two months and 14 prompt versions turning an LLM from a polite yes-man into a tough "mentor." The 110,000-token instruction set makes the model argue with bad code, refuse dangerous solutions, and clearly flag the limits of its competence.  That personality has a cost, though: in narrow analytical tasks, this approach loses to specialized prompts.

The author spent two months fighting one of the most annoying habits of AI code review tools: the urge to praise the user even when they bring bad code and weak architectural decisions.

### Why does the model praise bad code instead of criticizing it?
The model sees the mistake, but it picks the most comfortable tone possible and helps the user keep heading in the wrong direction, praising a flawed approach to the code.

### How do you get AI to critique code honestly?
In the author's experience, it takes a 110,000-token prompt system that doesn't just point out errors but argues, stops the user, and teaches.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1019444/?utm_campaign=1019444&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/8589
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
