---
title: "What does the Run Efficiency metric on a step template mean?"
answer: "The Run Efficiency metric on a step template measures human intervention and assistant activity following a skill invocation in captured coding agent sessions. Coolhand breaks down automated runs that finish autonomously versus interactive runs requiring follow-up steering, tracking user turns, tool calls, model requests, elapsed duration, and per-turn token consumption across the invocation window."
category: "Coding agents"
tags: ["step templates","run efficiency","claude code","agent skills","metrics"]
published: 2026-11-29T14:24:36Z
updated: 2026-11-29T14:15:51Z
canonical_url: https://coolhandlabs.com/help/what-does-run-efficiency-mean
index_url: https://coolhandlabs.com/help.md
---

# What does the Run Efficiency metric on a step template mean?

The Run Efficiency metric on a step template measures human intervention and assistant activity following a skill invocation in captured coding agent sessions. Coolhand breaks down automated runs that finish autonomously versus interactive runs requiring follow-up steering, tracking user turns, tool calls, model requests, elapsed duration, and per-turn token consumption across the invocation window.

When you inspect a prompt step template—such as a custom skill or slash command captured from [Claude Code](https://coolhandlabs.com/help/claude-code-best-practices.md) or [Claude Cowork](https://coolhandlabs.com/help/claude-cowork-best-practices.md)—the **Run Efficiency** card illustrates whether that step executed autonomously or required ongoing developer guidance.

By measuring developer turns, tool activity, and model requests after a skill is invoked, Run Efficiency reveals which agent capabilities run smoothly on their own and which ones frequently need manual steering.

## The invocation window

Coolhand tracks efficiency across a specific **invocation window**:

- The window opens at the turn where the step template matches in the session.
- The window runs through all subsequent turns until the session concludes, or until that same step template is invoked again later in the session.

Run Efficiency applies exclusively to prompt steps (`prompt_step`), such as slash commands and skill invocations. Tool steps (`tool_step`) do not display a Run Efficiency card because tools can execute repeatedly throughout an agent run rather than representing a discrete triggering action. For more details on step types, see [What is a Step Template?](https://coolhandlabs.com/help/what-is-a-step-template.md).

## Interactive vs. automated runs

Coolhand divides runs into two distinct cohorts based on whether a human intervened after the step was triggered:

- **Automated runs (`automated`)**: Runs with zero human user turns following the invocation. These represent headless or autonomous executions where the agent completed the task without additional typing—such as headless `claude -p "/skill"` executions, CI/CD jobs, or automated scripts.
- **Interactive runs (`interactive`)**: Runs where a user continued typing messages after the skill ran. These represent sessions where the user provided follow-up instructions, answered questions, or corrected errors to guide the agent to completion.
- **All runs (`all`)**: The combined aggregate of all automated and interactive executions.

### What counts as a human turn

Captured coding agent sessions record diverse message types, including developer prompts, tool execution outputs, and context injected by the CLI (such as expanded skill markdown and task notifications).

Coolhand distinguishes human-typed messages from tool results and injected system context. Tool executions and expanded skill bodies do not count as human turns. Only messages typed by a person count toward follow-up turns.

If a developer continues working in the same long-running terminal session after invoking a skill, any subsequent human messages in that session fall within the window and count as follow-up turns.

## Aggregated efficiency metrics

For each cohort, the Run Efficiency card reports several operational metrics:

- **User turns after invocation (`avg_turns_after`)**: The average number of human follow-up turns. A low number indicates high autonomy, while a high number suggests the skill required substantial human oversight or debugging.
- **Tool calls after invocation (`avg_tool_calls`)**: The average number of tool executions (such as file reads, bash commands, or code edits) performed during the invocation turn and subsequent follow-up turns.
- **Assistant model requests (`avg_requests`)**: The average number of distinct model API round-trips generated by the assistant across the window.
- **Elapsed duration**: The wall-clock duration from the invocation turn through the end of the window.
- **Token usage (`median_tokens`, `p90_tokens`, and `tokens_per_tool_call`)**: When token data is available, Coolhand reports the sum of uncached input tokens, cache writes, and output tokens. Cache read tokens are excluded because they represent re-sent context rather than fresh computational work generated by that turn.

## Why token data may be unavailable

When reviewing Run Efficiency, you may see **Not available** or **Token data is available for X of N runs** in the token rows.

Agent transcripts captured by CLI tooling (such as `coolhand-cli`) currently record token usage only on the final assistant response of a session, rather than reporting token counts on each individual assistant turn. 

Calculating per-turn token distributions requires complete usage data on every assistant turn within the invocation window. When any turn in the window lacks token counts, Coolhand reports token availability explicitly rather than calculating misleading approximations based on character lengths.

Turn counts, tool calls, and model request counts do not depend on per-turn token data and remain fully visible. Once CLI tooling captures per-message token usage and timestamps, complete token distributions will populate for new and re-uploaded sessions.

### Unavailable runs footnote

If certain runs lack a per-turn snapshot—such as historical sessions whose raw content was removed under data retention policies before snapshots were generated—the card displays a note stating the count of unavailable runs.

## Querying Run Efficiency via the API and MCP

You can inspect step template efficiency programmatically with your workspace private API key.

### REST API

Fetch a single step template using `GET /api/v2/step_templates/{id}`:

```bash
curl -H "X-API-Key: $COOLHAND_PRIVATE_KEY" \
  https://api.coolhandlabs.com/api/v2/step_templates/42
```

The response includes the `metrics.efficiency` breakdown:

```json
{
  "id": 42,
  "name": "/review-pr",
  "step_type": "prompt_step",
  "metrics": {
    "total_runs": 28,
    "efficiency": {
      "all": {
        "runs": 24,
        "avg_turns_after": 1.25,
        "avg_tool_calls": 6.5,
        "avg_requests": 7.8,
        "token_runs": 0,
        "tokens_available": false,
        "median_tokens": null,
        "p90_tokens": null,
        "tokens_per_tool_call": null
      },
      "automated": {
        "runs": 10,
        "avg_turns_after": 0.0,
        "avg_tool_calls": 4.1,
        "avg_requests": 5.0,
        "token_runs": 0,
        "tokens_available": false,
        "median_tokens": null,
        "p90_tokens": null,
        "tokens_per_tool_call": null
      },
      "interactive": {
        "runs": 14,
        "avg_turns_after": 2.14,
        "avg_tool_calls": 8.2,
        "avg_requests": 9.8,
        "token_runs": 0,
        "tokens_available": false,
        "median_tokens": null,
        "p90_tokens": null,
        "tokens_per_tool_call": null
      },
      "unavailable_runs": 4
    },
    "notes": [
      "Token figures are unavailable because captured sessions carry no per-message token usage."
    ]
  }
}
```

When listing step templates with `GET /api/v2/step_templates`, include metrics by adding the `include_metrics=true` query parameter.

### Model Context Protocol (MCP)

If you are querying Coolhand from an AI coding assistant over MCP, call the `get_step_template` tool with `step_template_id`. Metrics and efficiency breakdowns are included in the result.

For instructions on capturing skill runs from developer machines, see [How do I capture my agent skills' runs in Coolhand?](https://coolhandlabs.com/help/capture-agent-skill-runs-with-coolhand-cli.md).

---

Related:
- [What is a Step Template?](https://coolhandlabs.com/help/what-is-a-step-template.md)
- [What is a workload?](https://coolhandlabs.com/help/what-is-a-workload.md)
- [How do I capture every skill in VS Code and GitHub Copilot?](https://coolhandlabs.com/help/capture-every-skill-in-vs-code-github-copilot.md)
- [How do I capture every skill in a Claude Code plugin?](https://coolhandlabs.com/help/capture-every-skill-in-a-claude-code-plugin.md)

[← All help articles](https://coolhandlabs.com/help.md) · [Coding agents](https://coolhandlabs.com/help/category/coding-agents.md)
