Task Size in Agent Plans: How Big?
- Tasks per hour
- Result
- Total time (min)
- 60 min
- You entered
- Number of tasks
- 5
- You entered
An agent plan works best when each task is small enough to complete in a single action or short sequence of actions, typically under a few minutes of execution time, and large enough to produce a meaningful, verifiable result. The ideal size is one that lets the agent finish without needing to make decisions mid-way, yet still contributes a clear step toward the overall goal.
Formula
The average task duration is simply the total time divided by the number of tasks:
Average task duration = Total time / Number of tasks
- Total time (minutes) – the entire time budget for the plan.
- Number of tasks – how many separate tasks you plan to have.
- Average task duration (minutes) – the mean time each task should take.
This formula helps you check whether your task breakdown is realistic. If the average is very low (e.g., 1 minute), you may have too many tiny tasks; if it is very high (e.g., 60 minutes), you may have too few large tasks.
Worked Example
Using the default values: total time = 60 minutes, number of tasks = 5.
- Divide total time by number of tasks: 60 / 5 = 12.
- So the average task duration is 12 minutes.
- That means each task should be sized to take about 12 minutes on average.
The calculator gives the same result: 12.0 minutes per task, and 5 tasks per hour.
Why Task Size Matters
In an agent plan, tasks are the discrete units of work that the agent executes. If tasks are too large, the agent may lose context, make errors, or fail to checkpoint progress. If tasks are too small, the overhead of switching between tasks (and recording results) can dominate, making the plan inefficient. The right size balances granularity with efficiency.
For example, a task like “write a blog post� is too large for most agents because it involves many sub-steps: research, outlining, drafting, editing, formatting. A better task would be “draft the introduction paragraph based on the outline.� That is a single, focused action that can be completed and verified.
How to Choose the Right Size
There are several practical heuristics to size tasks correctly:
- Single responsibility – each task should have one clear objective.
- Verifiable outcome – you should be able to check whether the task succeeded.
- No sub-decisions – the agent should not need to make significant choices within a task.
- Reasonable duration – generally, a task should take between a few seconds and a few minutes, not hours.
- Context fit – the task should not require information that is not already available in the agent’s context.
If you find that a task requires multiple steps or decisions, break it down further. If you find that a task is trivial (like “click the button�), consider merging it with adjacent tasks.
Common Mistakes and Misconceptions
One common mistake is making tasks too granular, thinking that smaller is always better. This leads to excessive overhead and can cause the agent to lose the big picture. Another mistake is ignoring the need for verification – a task that cannot be checked is a risk.
A widespread misconception is that a task should be a single “atomic� operation. In reality, a task can be a short sequence of actions as long as the sequence is deterministic and does not require branching. For instance, “send an email to the client with the attached report� is fine, even though it involves several actions.
Comparing Task Sizes Across Domains
The optimal size varies by domain. In data processing, a task might be “clean the date column� – a few seconds. In content creation, a task might be “write a 300-word product description� – a few minutes. In software development, a task might be “implement the login endpoint� – potentially 30 minutes. The key is to match the size to the agent’s capabilities and the complexity of the work.
For most general-purpose agents, tasks that take 5–15 minutes are a good starting point. This allows for meaningful progress without overwhelming the agent’s context window.
Tools and Techniques for Sizing
You can use the calculator above to estimate average task duration from a time budget. Additionally, you can use these techniques:
- Decomposition – break a large goal into sub-goals, then into tasks.
- Checkpointing – design tasks so that each one leaves a clear state that the next can build on.
- Iterative refinement – run the plan, observe where the agent struggles, and adjust task sizes accordingly.
Remember that the plan is not static; it should be adjusted based on actual performance.
Frequently Asked Questions
What is the maximum size a task should be?
There is no absolute maximum, but if a task takes longer than about 30 minutes, it is likely too large. Long tasks increase the chance of context loss and make it harder to recover from failures. Break them into smaller steps.
Can a task be too small?
Yes. If a task is so small that it takes less than a second, the overhead of starting and stopping the agent may outweigh the benefit. For example, “move the mouse to the button� is too small; “click the submit button� is better.
Should tasks be the same size?
Not necessarily. It is more important that each task is appropriately sized for its own complexity. However, having a roughly consistent size can make planning and estimation easier.
How do I know if my task breakdown is good?
A good breakdown has tasks that are all verifiable, have clear dependencies, and can be completed without additional information. If you find yourself adding extra instructions to a task, it is probably too large.
Does the agent’s model affect task size?
Yes. More capable models can handle larger, more complex tasks. If your agent has a larger context window and better reasoning, you can make tasks bigger. For smaller models, keep tasks smaller and more focused.
What if a task fails?
Design tasks so that failure is detectable and recoverable. For example, a task that writes a file should check that the file was created. If a task fails, the agent should be able to retry or report the error without crashing the whole plan.
Related
Formula used
in t | Total time (min) | min | 60 | 0 in n | Number of tasks | - | 5 | 1 out avg | Avg task duration | min | t / n | 1 out tasks_per_hour | Tasks per hour | - | n / (t / 60) | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.