Blog ยท 2026-10-16

How to make your AI agent reliable (without writing more instructions)

Short answer: When an AI agent keeps making mistakes, most people add more instructions. That usually makes it less predictable, not more. Put your effort in this order instead: (1) a fixed template or format so the right output is the easy output, (2) a built-in self-check that runs every time, (3) a few short rules only for judgment calls, and (4) your review last, because it is the part that scales worst.

Where this idea comes from

This post turns a developer idea into beginner steps. Lauren (@poteto), who writes often about working with AI agents, posted an "inverse pyramid" for trusting agents' work (the post). That version is about code: better structure first, then automatic checks like tests and lint rules, then written rules ("prose") only where the agent needs judgment, and human review last. In the post's words, "make the easy thing the right thing," and "you want most of your effort at the top, least at the bottom."

When someone pushed back, @poteto summed up the point in one line: "move stuff out of prose and make it deterministic" (reply). Deterministic just means it happens the same way every time.

You do not need to code to use this. The same four layers work for an inbox helper, a morning brief or a meal planner.

Why more instructions backfire

Every time an agent slips, it is tempting to add a line: "Also never do X." After a month you have a wall of rules. The agent now has to weigh twenty sentences on every run, some of them clash, and you can no longer tell which rule caused which result.

Common AI agent mistakes this creates:

  • It follows the newest rule and quietly drops an older one
  • Output looks different every day, so it is slow to check
  • You fix one problem and a different one appears
  • You stop reading the results because they are too long

The fix is not a better paragraph. It is moving the important parts out of the paragraph.

The 4 layers, in beginner terms

Layer 1: A fixed template or format (most effort here)

Decide exactly what the result must look like, and make the agent fill it in. A table with set columns. A list with set headings. The same order every run.

Example for an inbox helper: From | What they want | Deadline | Draft reply, then a short "Can wait" list. Nothing else.

Why it works: the agent copies the shape it is given. When the shape is fixed, the easy answer and the right answer are the same answer. You also check it in seconds because you know where everything goes.

If a step repeats every time (same apps, same order, same output), save it once as a template or skill and reuse it. Do not retype it as a new paragraph each run.

Layer 2: A built-in self-check (runs every time)

Add a check the agent must run on its own output before it shows you anything. This is the closest a non-coder gets to automatic tests. The check should be a list of yes/no questions, not vague advice.

Good checks:

  • Every row has a value in every column
  • No date appears that is not in the source
  • Nothing was sent, posted, paid or deleted
  • The result is under the word limit

Copy the verify step below and paste it at the end of any agent prompt or skill.

Layer 3: A few short rules (only for judgment calls)

Some things cannot be turned into a format or a check: what counts as urgent, what tone fits your boss, when to ask you instead of guessing. Write short rules for those, and only those. Three to five lines is plenty.

Keep them in the Standards part of a ROCKS prompt (Role, Objective, Context, Kind of output, Standards). The prompt guide shows a weak and a strong version.

Layer 4: You review (least effort, last)

You still approve anything that leaves your hands: sends, posts, payments, deletions. But if layers 1 to 3 are doing their job, your review is a quick skim of a familiar table, not a careful read of a new essay every morning. That is the point: your attention is the scarcest part, so the system should do most of the work before it reaches you.

Copy paste: the verify step

Paste this at the end of any prompt or saved skill.

Verify step (run this before you show me anything):
1. Check the result against the exact format I asked for. If a column, heading or field is missing or empty, fix it.
2. Check every date, name, number and dollar amount against the source. If you cannot find it in the source, remove it or mark it [CHECK].
3. Confirm you did not send, post, pay, buy or delete anything. If an action needs me, list it under "Needs my approval".
4. Check the length limit. If it is too long, cut the least important items first.
5. End with one line: "Verify: passed" or "Verify: fixed N issues" and name them in a few words.
If you cannot pass a check, stop and tell me which one failed instead of guessing.

When your agent repeats a mistake

Ask which layer should catch it, starting from the top:

  1. Can the template prevent it? Add a column, a fixed heading or a fixed order. This is the best fix, because it holds every time.
  2. Can a check catch it? Add one yes/no line to the verify step.
  3. Only then, add a rule. One short line in Standards. If you already have more than five, remove one before you add one.

Change one thing at a time, then run it twice by hand before you trust it again.

AI agent best practices, short list

  • Start drafts only. You send, post, pay and delete.
  • One agent, one boring job.
  • Fixed output format before any extra rules.
  • A verify step on every run.
  • Five rules or fewer.
  • Run it by hand twice before you schedule it.
  • Review logs for 5 minutes a week, not every word every day.

Keep going

New to agents? Start with AI agents for beginners. For the slow, safe way to hand over more work, read how to build trust with an AI agent. Free Lessons 1 and 2 on AI Playbook For Me walk you through your first template and check, and Lesson 5 covers keeping an agent trustworthy over time.

Keep learning

Try it free: Lesson 1 and the ideas pack

Lesson 1 is free. Answer 2 minutes of tap questions, then set up Grok Bot and connect one app. Lesson 2 (ROCKS prompts and the Prompt Gym) is free too.

Want ideas first? Get 8 free starter agents, each with a copy and paste prompt for Grok Bot.