trajectory-eval

trajectory-eval is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/bytestack-labs/claude-plugins/trajectory-eval
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00214 $0.01574
Opus 5 $0.00107 $0.00787
Sonnet 5 $0.00043 $0.00315
Haiku 4.5 $0.00021 $0.00157

Measured 4d ago against content hash 70607743ac2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 2mo ago), licensed MIT. It adds 214 tokens to every session and 1,574 once invoked, about $0.0011 per session on Opus 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.

Related

Other skills, from other repositories

writing-e2e-flows

Use when a feature or fix in future-agi needs an end-to-end Playwright flow under e2e/ — a new flow for user-visible behaviour, an update to a flow whose pinned endpoint, route, table or selector changed, or when a review flagged missing E2E coverage. Also use to check whether an existing flow already pins an…

future-agi/future-agi · 174 tokens

reviewing-prs

Use when asked to review a pull request, branch, or diff — before approving, as a self-review before opening a PR, to judge whether a PR is ready — 'is PR 123 mergeable?', 'anything blocking here?' — or to answer 'does this change need an E2E flow'. Applies the FutureAGI coding standards and, in repos with an e2e/…

future-agi/future-agi · 129 tokens

durable-executor

Universal first-hop for any tool-backed request that may execute, inspect, mutate, automate, browse, call, fetch, generate, install, test, run, or create artifacts through CLI, shell, API, adapter, browser, provider, local process, or external tool, with trace, alignment, evidence capture, and future recall. Use for…

modiqo/skillspec · 175 tokens

code-review

Multi-agent code review with deep analysis. Orchestrates codebase research, optional web research, parallel Rust engineers, codex second opinion, and general-purpose reviewers into a synthesized report. Use when the user asks to review code, review a PR, review changes, audit code quality, or says "review", "/review"…

modiqo/skillspec · 116 tokens

generic-skill-creator

Generic example for creating or updating a Codex skill with appropriate resources, metadata, validation, and forward-testing. Use for generic skill creator, create a skill, update a skill, skill creator, skill authoring, SKILL.md, agents/openai.yaml, initskill.py, quickvalidate.py, forward-test a skill, progressive…

modiqo/skillspec · 150 tokens

mcp-builder

Guide construction of MCP servers that expose external services through well-designed, documented, testable tools. Use for mcp-builder, MCP server, Model Context Protocol, build MCP, FastMCP, TypeScript MCP SDK, MCP SDK, MCP tools, MCP evaluations, MCP Inspector, streamable HTTP and stdio transport. Use when the task…

modiqo/skillspec · 175 tokens