Skip to content
mentoor

Topic 1 of 5 · 4 min read

What makes a task agent-sized

Goal: Judge whether a task is agent-sized using its scope, how it can be verified and the size of the resulting review.

A task is agent-sized when an agent can finish it, prove it works, and hand back a diff that one person can review in one sitting. Size is not about how hard the task is. It is about whether the work fits inside what an agent can hold, check and explain.

Check yourself · 1 of 3

Which of these makes a task agent-sized?

Choose one answer

Why it matters

Agents such as Claude Code, Codex, Copilot and Cursor work inside a limited context window. As a session grows, early instructions get less attention and the agent starts to guess. A task that is too large fails quietly: the code looks fine, but half the requirements were dropped. A task that is too small wastes your time on setup. Right-sizing is the cheapest quality control you have.

The four tests

  1. Bounded scope. You can name the files or modules involved, or at least the folder. "Add a --json flag to the export command" is bounded. "Improve the export system" is not.
  2. Known starting point. The agent can find the code it needs by reading, and you know where the change belongs. If you cannot say where to begin, the agent will pick a place for you.
  3. A check it can run. A failing test, a type check, a linter rule or a command with expected output. Without one, the agent decides alone when it is done.
  4. A reviewable diff. If you cannot read the result in one sitting and say what each hunk is for, the task was too large. Google's engineering guidance on small changes makes the same point for human authors: small changes are reviewed faster and more thoroughly.

Before and after

Weak task: "Move our app from REST to GraphQL."

That touches every endpoint, client, test and doc. No single check proves it.

Agent-sized slice: "Add a read-only GraphQL user(id) query next to the existing REST route, reusing UserService.getById. Done when pnpm test users passes and a new test in users.graphql.test.ts returns the same fields as GET /users/:id."

That names the files, the starting point, the check and a diff of maybe 80 lines.

// A quick size check you can paste into your task notes
const sized = {
  scope: "src/users/ and its tests",
  start: "UserService.getById",
  check: "pnpm test users",
  reviewable: "under about 200 changed lines",
};

The 200 is a rule of thumb for you to tune, not a law.

What goes wrong

  • Sizing by effort. "It is easy" does not mean it is small. A one-line rename across 300 files is easy and enormous to review.
  • Sizing without a check. If nothing can fail, the agent cannot know it is wrong, and neither can you until later.
  • Sizing to the agent, not the reviewer. An agent can produce 2,000 lines in minutes. A person cannot review them in minutes.

Examples

Too big, then sized

Request: "Add dark mode to the app."

That spans styles, settings storage, every component and the tests. Sized slices:

  1. Define colour tokens in theme.ts and export a darkTheme. Check: a unit test compares both themes have the same keys.
  2. Add a theme field to the saved user settings. Check: the settings round-trip test passes.
  3. Apply the theme to the header component only. Check: a snapshot test with the dark theme.

Each slice is small enough to review alone.

Small but unchecked

A teammate asks an agent to "tidy up the date helpers". The scope is one file, but there is no check, so the agent renames three functions and changes a default time zone. Nothing fails, and the behaviour change ships. Adding "existing tests must pass, and no exported name changes" would have made the task sized.

Key points

  • A task is agent-sized when it has bounded scope, a known starting point, a runnable check and a diff a person can review in one sitting.
  • Size is about verification and review, not about how hard or how long the task is.
  • A task without a check the agent can run leaves the agent to decide alone when it is done.
  • Sizing to the reviewer matters as much as sizing to the agent, because agents can write more than people can read.
  • Naming the files, the starting function and the command to run turns a vague request into a sized one.

Common mistakes

  • Judging size by how easy the task feels instead of by how large and checkable the resulting diff is.
  • Handing over a goal such as "improve performance" with no files, no measure and no command to run.
  • Letting the agent decide the scope of a change that you will have to review.
  • Splitting a task so finely that each piece needs a full re-explanation of the project.

Check yourself · 2 of 3

You ask an agent to "improve the export system". What is the best way to make this agent-sized?

Choose one answer

Check yourself · 3 of 3

An agent finished a task and produced a 1,800-line diff. What does this most likely say about the task?

Choose one answer

Practice items, not counted towards your mastery.

Start here