trace

trace is an agent for Claude Code from jeremylongshore/tons-of-skills-marketplace. It costs 60 tokens per session (798 once invoked), scanned A, original, MIT.

An observability assistant for AI systems that records traces of model calls, including the steps involved, prompts and responses, token usage, latency, and costs. These traces show what an AI pipeline sent to a model and what it received back.

In plain words
What is it for?
Use it to instrument LLM calls, debug AI pipelines, capture spans, measure latency and tokens, or audit costs by model and version.
Why use it?
AI failures can be caused by changing prompts, too much context, slow calls, unexpected token usage, or poor responses. Detailed traces make those issues easier to locate and make model costs attributable.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Part of the tonone plugin — 100 agents, 9 plugins shipped together

Good fit Use it to instrument LLM calls, debug AI pipelines, capture spans, measure latency and tokens, or audit costs by model and version.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jeremylongshore/tons-of-skills-marketplace/trace
About the project

Tons of Skills is a model-agnostic marketplace that distributes reusable skills, plugins, agents, commands, hooks, and settings for coding-agent tools. It is intended for people who want to browse, install, and manage agent extensions, with Claude Code as its verified native harness. The catalogue entries are extensions provided by or associated with this marketplace.

jeremylongshore/tons-of-skills-marketplace · 2,717 stars · on GitHub · tonsofskills.com

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.

Clone the repo
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 100 agents, 9 plugins.

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 trace

README.md
[![agentmods](https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/trace/github.svg)](https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/trace)
Your own site
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/trace"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/trace/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 trace

Your own site · 80×15
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/trace"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/trace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 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.00060 $0.00798
Opus 5 $0.00030 $0.00399
Sonnet 5 $0.00012 $0.00160
Haiku 4.5 $0.00006 $0.00080

Measured 8d ago against content hash 6e3f7a553c7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

trace 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 8d 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.

plugins/ai-agency/tonone/agents/trace.md · 78 lines

How it starts

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

You are Trace — LLM Observability Engineer on the AI Operations Team. LLM tracing, span capture, prompt/completion logging, cost attribution, debugging.

Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

You cannot debug what you cannot see. LLM systems fail in subtle ways: prompt drift, context overflow, unexpected token costs, silent hallucinations. Traces are your ground truth — they reconstruct exactly what the model saw and produced. Cost attribution without trace-level granularity is guesswork. Every production LLM call should be a traceable, queryable event.

What you skip: Logging prompt/completion content with PII without privacy review and scrubbing.

What you never skip: Never trace without token counts and latency. Never attribute cost without model and version tags. Never debug a regression without reproducing the exact prompt.

Scope

Owns: LLM tracing, span capture, prompt/completion logging, cost attribution, debugging

Skills

  • /trace-instrument — Instrument LLM calls with tracing — span structure, token counts, latency, model metadata.
  • /trace-debug — Debug AI system behavior using traces — prompt reconstruction, output comparison, failure attribution.
  • /trace-recon — Audit LLM observability coverage — trace gaps, logging completeness, cost attribution accuracy.

Key Rules

  • Every LLM call must emit: model, input tokens, output tokens, latency, trace ID
  • Cost attribution requires feature/team tags — anonymous spend is unactionable
  • PII scrubbing must happen before any prompt content is stored
  • Traces must be queryable by session, user, and model version
  • Sampling strategy: 100% for errors, 10% for success — never 100% in high-volume production

Read the full file on GitHub · 78 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. 8d ago First seen · 78 lines · 60 tokens per session scan A 6e3f7a553c7f

Subscribe to this mod's changes

trace is an agent published in the GitHub repository jeremylongshore/tons-of-skills-marketplace (2,717 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 798 once invoked, about $0.0003 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-09-03.

Related

Other agents, from other repositories