coding-agent-cost

coding-agent-cost is a skill for Claude Code, Codex from langwatch/langwatch. It costs 118 tokens per session (4,556 once invoked), scanned B, original, Apache-2.0.

A cost-analysis skill that reads your Claude Code sessions from LangWatch, a service for recording and analysing agent activity, then reports supported settings changes.

In plain words
What is it for?
Checking model versions, context compaction, prompt-cache settings, and other changes that may reduce coding-agent costs.
Why use it?
It replaces guesswork about agent costs and context use with findings from your own sessions, including whether savings are measured or estimated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Checking model versions, context compaction, prompt-cache settings, and other changes that may reduce coding-agent costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langwatch/langwatch/coding-agent-cost
About the project

LangWatch is a platform for testing, evaluating, and monitoring LLM-powered agents before release and in production. Teams use it to run agent simulations, trace and evaluate behavior, improve prompts and models, review failures, and manage provider costs and governance.

langwatch/langwatch · 5,059 stars · on GitHub · langwatch.ai

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 langwatch/langwatch --skill coding-agent-cost
Clone the repo
git clone --depth 1 https://github.com/langwatch/langwatch

Made for: Claude Code, Codex.

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 coding-agent-cost

README.md
[![agentmods](https://agentmods.dev/badge/skills/langwatch/langwatch/coding-agent-cost/github.svg)](https://agentmods.dev/skills/langwatch/langwatch/coding-agent-cost)
Your own site
<a href="https://agentmods.dev/skills/langwatch/langwatch/coding-agent-cost"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/coding-agent-cost/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 coding-agent-cost

Your own site · 80×15
<a href="https://agentmods.dev/skills/langwatch/langwatch/coding-agent-cost"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/coding-agent-cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00118 $0.04556
Opus 5.5 $0.00047 $0.01822
Sonnet 5.5 $0.00024 $0.00911
Haiku 4.5 $0.00012 $0.00456

Measured 3d ago against content hash f9024fc9f262, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

coding-agent-cost scanned grade B with 1 finding 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 3d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Setting:** in `~/.claude/settings.json` (or managed settings for a team), use the alias instead of a pinned id, and check that no `ANTHROPIC_MODEL`, `ANTHROPIC_DEFAULT_OPUS_MODEL` or `ANTHROPIC_DEFAULT_SONNET_MODEL` in
services/langyagent/internal/assets/skills/coding-agent-cost/SKILL.md · 205 lines

How it starts

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

Cut Your Coding Agent's Cost and Context

This skill reads the user's own Claude Code sessions from LangWatch, runs one check per recommendation below, and reports only the recommendations their data supports. Every recommendation names the evidence, the exact setting and an expected saving, and says whether that saving was measured in a controlled run or estimated from token counts. It is read-only on the platform and leaves one report file behind.

Step 1: Set up the LangWatch CLI

Use the langwatch CLI for everything: documentation (langwatch docs ..., langwatch scenario-docs ...) and platform operations (prompts, scenarios, evaluators, datasets, monitors, traces, analytics). Install it once with npm install -g langwatch, then run the langwatch binary directly; an unpinned npx langwatch re-resolves the package from the registry on every run.

Step 2: Find Out How the User Pays

The same tokens mean different things to different users, so settle this before any number goes in the report.

  • Claude subscription (Pro, Max, Team, Enterprise seats): no per-token bill. A saving means more work before the plan's usage limits, not cash. Show USD as "API-equivalent usage" in brackets.
  • API key, Amazon Bedrock, Google Cloud, Microsoft Foundry, or a subscription drawing on usage credits: every token is billed. A saving is cash.

Ask the user, or check on their machine: run claude -p "hello" --output-format json and read usage.cache_creation. One-hour writes (ephemeral_1h_input_tokens above zero) on that main-conversation request mean a subscription within plan usage. Five-minute writes (ephemeral_5m_input_tokens) mean an API key, a cloud provider or usage credits. Check 5 below also reads this from the data.

Step 3: Pull the Data

Every query below is LangWatchQL, run with langwatch query run "<sql>" --projects <id,id> -o json. Run langwatch query schema once to confirm the column names. Use one window everywhere, 30 days unless the user names another, and aggregate in SQL: a result is capped at 10,000 rows.

Read the full file on GitHub · 205 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. 3d ago Changed f9024fc9f262
  2. 6d ago Changed · -2 lines 99928d7e2233
  3. 8d ago Changed d274cde73d7c
  4. 1mo ago Changed ed13ea9c7f22
  5. 1mo ago Changed dba42df99983
  6. 1mo ago Changed · +2 lines d9adf780ed10
  7. 1mo ago Changed c836e59f26ed
  8. 1mo ago First seen · 205 lines · 118 tokens per session scan B e7976de58f8b

Subscribe to this mod's changes

coding-agent-cost is a skill published in the GitHub repository langwatch/langwatch (5,059 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 4,556 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

coding-agent-cost compared with skills from other repositories

coding-agent-cost next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coding-agent-costlangwatch/langwatchSkill5.1ktodayApache-2.0B118Claude Code, Codex
trulens-evaluation-setuptruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
trulens-diagnosistruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
evalscopemodelscope/evalscopeSkill3.7k2d agoApache-2.0A195Claude Code, Codex
trulens-evaluation-workflowtruera/trulensSkill3.7k2d agoMITA18Claude Code, Codex
trulens-dataset-curationtruera/trulensSkill3.7k2d agoMITA19Claude Code, Codex
qaSkyvern-AI/skyvernSkill24ktodayAGPL-3.0A33Claude Code, Codex