Token Speed vs. Task Delivery Time: Why Agent Tasks Still Take Hours
Token throughput measures only the generation phase of a model; it does not capture the end-to-end time required to deliver an agent task. This article explains why fast token generation can still result in hours-long delivery, breaks down the main sources of wall-clock time in agent workflows, and discusses efficiency beyond parameter count. It also outlines task suitability criteria, a simple estimation model, and practical engineering controls for budgets, staged acceptance, least privilege, and execution metrics.
1. Why Speed Metrics and Delivery Time Diverge
The number of tokens a model outputs per second is the most visible metric. It describes generation speed during inference, but it does not include every stage a task goes through from start to finish. A complex task may require dozens of model calls, multiple file reads and writes, test execution, and waiting for permission confirmation. Each step takes time. Fast generation of individual tokens only means the model outputs quickly; it does not directly imply that the task will be completed quickly.
This gap becomes larger during scheduling. Demo videos usually show only a successful path, with waiting and rework edited out. What actually determines the delivery cycle is the total time of the entire execution chain plus the cost of accepting the final output.
2. What Makes Agent Tasks Take Time
2.1 Model Inference Time
- First-token latency: the time from sending a request to the first output appearing, affected by queuing and context length.
- Generation throughput: the number of tokens output per second. Shared server-side services often have lower throughput during peak hours, and the same model may perform several times differently at different times.
- Output length: code patches, test cases, and change descriptions all increase output volume. The longer the output, the longer the generation time.
2.2 Tool Calls and Round Trips
Every time an agent calls a tool, it goes through a loop: the model decides to call, the tool executes, the result is returned, and the model reads it again. Suppose a task requires 120 tool calls, with an average of 3 seconds per call. Tool execution alone accumulates 6 minutes. This does not yet include the inference time while the model reads the results. The number of tool calls is often higher than people expect, because the agent needs to search, read, and verify repeatedly.
2.3 File Reads and Context Management
Engineering projects contain many files, and an agent can only read them selectively. The context window is limited, and once it exceeds a threshold, compression or summarization is required. Compression itself consumes a round of inference and may lose details. Lost details can cause the agent to read files repeatedly or even make incorrect changes. This kind of repeated work is hard to see in demos, but it directly extends total time.
2.4 Waiting and Human Approval
Writing files, executing commands, and accessing external resources often require permission approval. Approval waiting is not counted as model inference time, but it is counted in the task’s wall-clock time—the actual elapsed time from start to finish. The more approvals there are, the more easily the task is constrained by human pace.
2.5 Acceptance and Rework
Whether the output is correct requires running tests, manual review, and confirmation of boundary conditions. If one acceptance round finds a problem, rework requires calling the model again, executing tools again, and accepting the result again. The number of rework rounds is one of the main variables affecting the delivery cycle, but it is rarely included in scheduling.
3. Efficiency Beyond Parameter Scale
Common paths for improving model capability include increasing parameter count, adopting mixture-of-experts structures, optimizing attention mechanisms, and sharing weights across layers with recurrent execution. Layer weight sharing means that the parameters of the same set of layers are reused multiple times. In this way, parameter storage cost remains unchanged, while effective computational depth increases with the number of loops.
This design changes the trade-off between computation and storage. It does not automatically shorten end-to-end time. Recurrent execution means each token goes through more computation, and output per unit time may decrease. Therefore, when evaluating such models, do not look only at parameter count or per-token speed. Use the same set of real tasks to compare completion time, rework rate, and total cost.
4. Which Tasks Are Suitable for Agents
To judge whether a task is suitable for an agent, consider three conditions.
- Clear boundaries and automatic verification: for example, unit tests can determine whether the result is correct, and API returns can be checked against a specification.
- High repeatability: boilerplate code generation, data format conversion, batch refactoring, and API adaptation have clear rules, and model errors are easy to detect.
- Low cost of failure tolerance: changes are made in an independent branch or sandbox, can be rolled back at any time, and do not directly affect the production environment.
The following tasks require caution: vague requirements, heavy dependence on offline communication, and security-sensitive changes without human review. The main time cost of such tasks is often in clarifying requirements and repeated confirmation, while model inference accounts for only a small part.
5. Estimating Total Time and Cost with a Model
Before scheduling, you can use the following model for a rough estimate. Replace the parameters with your team’s measured data; do not use the example values directly.
TaskProfile:model_calls # number of model callsavg_output_tokens # average output tokens per calltokens_per_sec # measured generation speed (median of multiple runs)tool_calls # number of tool callsavg_tool_latency_s # average latency per tool call (seconds)approval_wait_s # total human approval wait time (seconds)review_rounds # number of acceptance and rework roundsreview_round_s # time per acceptance round (seconds), default 900function estimate_wall_clock(p):gen_time = p.model_calls * p.avg_output_tokens / p.tokens_per_sectool_time = p.tool_calls * p.avg_tool_latency_sreview_time = p.review_rounds * p.review_round_sreturn gen_time + tool_time + p.approval_wait_s + review_timeexample:model_calls = 60, avg_output_tokens = 1500, tokens_per_sec = 60tool_calls = 120, avg_tool_latency_s = 3, approval_wait_s = 1200review_rounds = 2-> gen_time = 1500 s, tool_time = 360 s, review_time = 1800 s-> total time about 4860 s, or 81 minutes
This model is simplified and ignores first-token latency and the effects of concurrent execution. Its value is that it makes each time item visible. Whichever item accounts for the largest share is the priority for optimization. If approval and acceptance account for most of the time, the benefit of increasing model speed will be limited.
6. Engineering Controls
6.1 Set Budget Caps
Set hard caps for wall-clock duration, number of model calls, and number of context compactions. When a cap is exceeded, automatically pause and notify the owner to avoid an endless task loop. The following is an illustrative configuration; field names need to be adjusted according to the orchestration framework in use.
agent_task:max_wall_clock_minutes: 120max_model_calls: 80max_context_compactions: 3write_scope: ["src/feature_x/"]require_approval_for: ["push_remote", "delete_file"]on_budget_exceeded: pause_and_notify
6.2 Staged Acceptance
Split a large task into subtasks that can be accepted independently, and run tests after each segment before continuing. In this way, rework affects only the current segment and does not overturn the entire task. Staging also makes progress visible and facilitates scheduling.
6.3 Least Privilege
The agent can access only the directories and interfaces required by the task. Write operations are performed in an independent branch by default, and human confirmation is required before merging. Sensitive credentials should be stored in environment variables or a secrets management service, not written into code or logs.
6.4 Record Execution Metrics
Record latency, token count, and failure reason for every model call and tool call. After enough data has accumulated, the assumptions in the estimation model can be replaced with measured values, making scheduling closer to reality.
7. Conclusion and Checklist
To evaluate agent efficiency, start with end-to-end time rather than looking only at per-token speed. Before scheduling, confirm the following questions item by item:
- Can the task’s acceptance criteria be checked automatically?
- Does the estimate include approval waiting and at least one round of rework?
- Does model speed use measured values from peak hours?
- Are hard caps set for duration and number of calls?
- If a problem occurs, can it be rolled back quickly in the branch?
The faster the model generates, the more the task depends on the efficiency of other stages. To shorten delivery cycles, teams need to manage tool calls, context, permission processes, and acceptance quality at the same time.
