trajectory-eval

trajectory-eval is a skill for Claude Code from ByteStack-Labs/claude-plugins. It costs 214 tokens per session (1,574 once invoked), scanned A, original, MIT.

An evaluation skill that examines an agent's complete work path, including steps, tool calls, intermediate states, failures, and recovery. An agent trajectory is the full sequence leading to its final result.

In plain words
What is it for?
Measuring step-by-step and end-to-end success, finding cascading failures, comparing multi-agent composition with a baseline, and testing tool failures or unusual responses.
Why use it?
A final answer can look correct even when earlier mistakes were hidden, and small errors can compound across a long task. This evaluation shows where those errors begin and spread.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-reliability plugin — 4 skills shipped together

Good fit Measuring step-by-step and end-to-end success, finding cascading failures, comparing multi-agent composition with a baseline, and testing tool failures or unusual responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bytestack-labs/claude-plugins/trajectory-eval
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ByteStack-Labs/claude-plugins --skill trajectory-eval
Clone the repo
git clone --depth 1 https://github.com/ByteStack-Labs/claude-plugins

Made for: Claude Code.

Or install agent-reliability, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trajectory-eval

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/trajectory-eval/github.svg)](https://agentmods.dev/skills/bytestack-labs/claude-plugins/trajectory-eval)
Your own site
<a href="https://agentmods.dev/skills/bytestack-labs/claude-plugins/trajectory-eval"><img src="https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/trajectory-eval/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trajectory-eval

Your own site · 80×15
<a href="https://agentmods.dev/skills/bytestack-labs/claude-plugins/trajectory-eval"><img src="https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/trajectory-eval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 214 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00214 $0.01574
Opus 5.5 $0.00086 $0.00630
Sonnet 5.5 $0.00043 $0.00315
Haiku 4.5 $0.00021 $0.00157

Measured 2mo ago against content hash 70607743ac2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trajectory-eval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-reliability/skills/trajectory-eval/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trajectory Eval

An agent that passes every step's check can still fail the task. Errors compound: if each step is 95% reliable, a ten-step task succeeds only about 60% of the time, and the gap widens fast as tasks get longer. A final-answer eval hides this, because it scores the endpoint and ignores the path. A per-step eval hides it too, because it scores steps in isolation and ignores how their errors accumulate across the run.

This skill evaluates the whole trajectory: the steps, the tool calls, the intermediate states, and the way failures propagate or get recovered. It measures where reliability actually leaks, and whether chaining more agents into the system makes it better or just longer.

How to run it

Run trajectory-eval on this agent. Capture full trajectories on production-realistic tasks, measure per-step success against end-to-end success, and show the compounding curve. Attribute failures to the step that introduces them and say whether they cascade or recover. If the system chains or orchestrates agents, measure whether composition helps or hurts against a real baseline, with statistical validation. Test with tool failures and edge responses, not just the happy path. Verify every number with runnable code.

Core commitments

  • Verified numbers only. Every figure traces to a measurement produced by runnable code.
  • Evaluate the trajectory, not the endpoint and not the isolated step. The final answer and the per-step score are the two numbers that hide compounding failure. The object of study is the path.
  • Measure compounding explicitly. Connect per-step reliability to trajectory length to end-to-end success, rather than assuming the steps add up.
  • Test under realistic conditions. Real tool responses, including failures and malformed outputs, not a curated happy path. A clean demo trace proves nothing.
  • Reproducibility is part of the deliverable. Seed everything. Report the compute envelope.

The procedure

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 140 lines · 214 tokens per session scan A 70607743ac2e

Subscribe to this mod's changes

trajectory-eval is a skill published in the GitHub repository ByteStack-Labs/claude-plugins (2 stars, last pushed 4mo ago), licensed MIT. It adds 214 tokens to every session and 1,574 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.