Get your API key

Lesson 1 of 8

Why prompts fail: the gap map

Who the agent listens to first, and the four gaps it fills with a guess when your prompt is vague.

7 min Free
One step at a time, like flipping pages.

By the end of this lesson you will know exactly why a prompt came back wrong, and which of the four gaps to fill first.

You need: a coding agent (Codex, Claude Code, Cursor, Antigravity or any other) · Time: 7 minutes

  1. Four voices talk to the agent at the same time. From strongest to weakest:

    1. Your message in this chat. Nothing beats it.
    2. The closest rules file in the folder tree. A file next to your code wins over one at the top of the project.
    3. The tool's own system prompt. It decides the default behaviour, tone and tool use.
    4. Its training. The patterns it picked up from reading millions of projects.

    The AGENTS.md standard states the rule in one line: the closest file to the edited file wins, and explicit chat prompts override everything.

    Why?

    This is why "the AI ignored my rule" almost always means the rule was written in a weaker voice than the thing that contradicted it. Your rule was in a file at the top; the code it contradicted was described in your chat message.

    So when you write a prompt you are not talking to a blank brain. You are arguing with a very confident default. Every strong prompt is written to beat that default.