Skip to content
mentoor

Topic 3 of 5 · 4 min read

Setting how eagerly an agent acts

Goal: Adjust an agent's instructions so it asks before irreversible actions but stops asking about trivial choices.

Eagerness is how far an agent goes without checking in: set it by what an action costs to undo, not by one global level of caution. Most agents are tuned wrong in both directions at once: they ask about file names and then delete a branch without a word.

Check yourself · 1 of 3

Which action should an agent normally do without asking?

Choose one answer

Why it matters

Too eager, and the agent makes a large change, spends money or messages a customer on a guess. Too hesitant, and the user answers ten questions that the agent could have settled by reading the repository. OpenAI's GPT-5 prompting guide treats this as a dial you can turn in the prompt: lower it to cut exploration and get quicker answers, raise it to make the agent finish tasks on its own. Claude's prompting guidance says the same: tell the model whether you want it to act or to suggest.

How to set it

  1. Sort actions by reversibility. Reading, searching and running tests are cheap. Editing a file in version control is undoable. Deleting data, sending email, spending money and pushing to a shared branch are not.
  2. Say act for the cheap group, ask for the costly group. "Make reversible changes without asking. Ask before anything you cannot undo or that others see."
  3. Name the trivial choices the agent must settle itself. "Pick sensible names and formats yourself. Do not ask about style."
  4. Say how far to go. "Do what the task asks; do not refactor nearby code." Without this, an eager agent expands the job.
  5. Set an exploration budget. "Stop searching once you can name the file and the function to change. Do not read the whole repository." A hesitant agent keeps looking; this gives it permission to stop.
  6. Tell it what to do when unsure. "State your assumption in one line and continue" for small doubts, "stop and ask" for large ones.

Before and after

Before: an agent asks "Should I name the helper formatDate or formatDay?" and later runs git push --force to clean up its history.

After:

Work independently on reversible steps: reading, editing files in the
working tree, running tests. Decide naming and formatting yourself.
Ask first, with one specific question, before anything you cannot undo
or that other people will see: deleting data, force-pushing, sending
messages, spending money. If a small assumption is needed, state it in
one line and continue.

What goes wrong

  • One blanket rule. "Always ask before acting" makes the agent useless for long tasks; "never ask" lets it act on guesses. The boundary has to be reversibility.
  • Questions that cannot be answered quickly. "What should I do?" costs the user more than the work. Ask a specific question with a default: "Delete the 12 stale branches? I will skip protected ones."
  • Scope creep. An eager agent that also tidies imports and renames variables produces a diff nobody can review. Say what is out of scope.

Examples

Ask rarely, but at the right moment

A support agent can look up orders freely but may refund. Instruction: "Look up and summarise orders without asking. Before issuing any refund, show the amount and order number and wait for a yes." The agent stops asking about lookups and still pauses at the one action with a cost.

Stopping an exploration loop

A coding agent reads 40 files for a one-line fix. Add: "Once you can name the file and function to change, stop searching and make the change. If a second file is involved, read only its relevant function." The run gets shorter without removing the checks that matter.

Key points

  • Set eagerness by how hard an action is to undo, not by a single caution level for everything.
  • Name the trivial decisions the agent should make itself, such as naming and formatting.
  • Tell the agent to ask before irreversible or externally visible actions, with one specific question.
  • Limit scope explicitly, or an eager agent will refactor beyond the task.
  • Give an exploration budget so a careful agent knows when it has read enough.

Common mistakes

  • Using one rule such as "always confirm", which makes the agent ask about names and still not distinguish a delete.
  • Letting the agent ask open questions like "how should I proceed?" instead of a specific question with a default.
  • Failing to limit scope, so an eager agent changes code the task never mentioned.
  • Telling a hesitant agent to "be thorough" without a stopping point, which makes it explore even more.

Check yourself · 2 of 3

An agent keeps asking "Do you want tabs or spaces?" before every edit. What is the best instruction change?

Choose one answer

Check yourself · 3 of 3

An agent is asked to rename a function. It also reformats three unrelated files. Which instruction prevents this?

Choose one answer

Practice items, not counted towards your mastery.

Start here