I spent three days building my first AI agent, and it was terrible.

Not because I chose the wrong model. Not because my prompts were bad. The agent just... didn't work. It would give vague answers, get confused by simple requests, and sometimes try to do things it clearly wasn't capable of doing.

Then I discovered something that changed...