Updated · Markdown

Stop AI agents from making the same mistake every time

Updated 2026-11-29. Written by the team that builds Tex, so weigh it accordingly.

Short answer: a mistake comes back because the fix was given in a conversation that ended. The next run starts without it. Three steps stop it: write the fix where every run reads it before it starts, check on the next run that it held, and remove fixes that turn out wrong so they don't pile up. Tex automates all three for agents that run recurring jobs.

Where the fix should live

How Tex keeps a fix

  1. You correct the agent in its session's chat, or press thumbs down and say why.
  2. When the session ends, Tex's curator writes the fix into a knowledge base page, citing you and the session.
  3. Every agent that reads that knowledge base starts its next run from the page.
  4. Every night the curator rechecks pages against the real sessions and removes what doesn't hold up.
  5. If a fix was wrong, edit the line or revert the revision in the console.

Questions people ask

What if the agent repeats the mistake anyway? Say so in the chat. The curator sees both the fix and that it didn't hold, and can make the line clearer. You can also move a hard rule into the agent's instructions.

Does this work for ChatGPT or Claude chats? No. Tex runs agents that do recurring jobs in the background, not your personal chats.

Can I see what the agent was told? Yes. Every line in the knowledge base says where it came from, and every revision is a diff.

What Tex doesn't do

Try Tex with $10 of free credit