---
title: "You can’t vibe code a prompt"
description: "Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts."
url: "https://swe.quest/articles/you-can-t-vibe-code-a-prompt-7bae994c4b57de8e"
canonical: "https://incident.io/blog/you-cant-vibe-code-a-prompt"
source: "incident.io"
published: "2025-03-25"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 11
tags: ["llms","evals","ai-coding"]
---

# You can’t vibe code a prompt

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2025-03-25, 11 min read, Opinion. Original: [https://incident.io/blog/you-cant-vibe-code-a-prompt](https://incident.io/blog/you-cant-vibe-code-a-prompt)

## Summary

Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts. In incident.io's Slack-message relevance classifier, Claude fixed one failing case but broke others. Given the whole eval suite, Claude Code hit 100% only by bloating the prompt 7× and hardcoding every test case, which reverted to the original failures once that section was removed. The recommended approach is to write prompts by hand with structurally similar but non-overlapping examples, and use LLMs for generating evals and examples, judging outputs, linting prompts for contradictions, and grading production interactions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)

## Prerequisites

- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- eval suites for LLMs ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Claude Code, GPT-4o-mini, LLM-as-judge, incident.io

## Related posts

- [Tricks to fix stubborn prompts](https://swe.quest/articles/tricks-to-fix-stubborn-prompts-231a0686f889f1da.md): incident.io · 2025-03-25 · Medium · 10 min read · LLMs, Evaluation
  Six practical techniques fix prompts that resist the usual remedies.
- [Prompt Engineering as a Developer Discipline](https://swe.quest/articles/prompt-engineering-as-a-developer-discipline-9bcd55d9132c84f2.md): Neon · 2025-04-21 · Medium · 16 min read · AI for coding, LLMs
  Developers should treat prompts as modular, testable software components rather than guesswork, applying the same rigor they bring to code.
- [Promptim: an experimental library for prompt optimization](https://swe.quest/articles/promptim-an-experimental-library-for-prompt-optimization-2ac32ec5daa6c443.md): LangChain · 2026-11-09 · Easy · 4 min read · LLMs, Evaluation, Developer tools, Open source
  Promptim is an open-source, experimental library that automates prompt engineering: given an initial prompt, a LangSmith dataset and custom evaluators, it runs an optimization loop where a metaprompt proposes edits based on scored train-set results, and keeps a new prompt only if it improves dev-split metrics, repeated N times.
- [Building LLMs for Code Repair](https://swe.quest/articles/building-llms-for-code-repair-56ef089519b9fe77.md): Replit · 2024-04-02 · Hard · 14 min read · Model training, AI for coding, LLMs, Evaluation, Data pipelines
  Replit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics.
- [Treat AI Like a Senior Dev, Not a Junior One](https://swe.quest/articles/treat-ai-like-a-senior-dev-not-a-junior-one-5d534585afd79e40.md): Neon · 2025-04-24 · Medium · 14 min read · AI for coding, LLMs
  Getting better results from AI coding assistants means treating the LLM like a senior engineer rather than a junior one: give it full context and room to reason instead of curt one-line instructions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
