What problem does it solve?
Long context in coding-agent sessions is not free: cache rebuilds re-bill the whole context, compactions burn turns, and models degrade before their window ends. This Skill uses your own LangWatch session data to find the context size where your sessions stop being economical.
Core Features & Use Cases
- Session Collection: Exports coding-agent traces via the
langwatch CLI and pulls per-session events including token usage, cache reads/writes, costs, compactions, and rate limits.
- Economics Computation: Calculates peak context share, cache rebuild counts, compaction timing, and cost per model call across session lifetime, then buckets sessions by context share.
- Actionable Report: Produces a self-contained HTML report naming the context threshold where sessions degrade, with bucket comparisons, dissected expensive sessions, and concrete habits backed by example session links.
- Use Case: Your Claude Code sessions feel slower and pricier as they grow. Run this Skill to learn that your sessions stay economical up to about 55% of the context window, and get specific guidance on when to start fresh sessions or offload work to sub-agents.
Quick Start
Ask the assistant to find your context sweet spot by analyzing your recent coding-agent sessions in LangWatch.