token-awareness

token-awareness is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 39 tokens per session (2,071 once invoked), scanned A, original, MIT.

A guide for estimating the reading and writing cost of coding-agent work before choosing an implementation approach.

In plain words
What is it for?
It is for comparing refactors with targeted fixes, estimating token overhead, measuring useful work per token, and choosing the minimum change that meets the requirement.
Why use it?
It helps avoid spending time and context on large changes when a smaller change could solve the same problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for comparing refactors with targeted fixes, estimating token overhead, measuring useful work per token, and choosing the minimum change that meets the requirement.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/token-awareness
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 LuuOW/meridian-mcp --skill token-awareness
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

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 token-awareness

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/token-awareness/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/token-awareness)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/token-awareness"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/token-awareness/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 token-awareness

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/token-awareness"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/token-awareness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,071 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.00039 $0.02071
Opus 5 $0.00019 $0.01035
Sonnet 5 $0.00008 $0.00414
Haiku 4.5 $0.00004 $0.00207

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

Security

Grade A, and why

token-awareness 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 9d 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.

skills/token-awareness/SKILL.md · 193 lines

How it starts

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

token-awareness

Token budgeting is an engineering discipline. Before writing code, estimate whether the approach is token-efficient. A 300-token workaround that solves 80% of the problem beats a 3000-token refactor that solves 100% — especially when the remaining 20% never materialises.

Tokens are also an energy metric:

  • more tokens = more energy consumed
  • more useful output per token = better efficiency
  • if watt telemetry exists, token efficiency becomes comparable to throughput per watt

So token awareness is not just about staying under a context limit. It is about choosing higher-yield routes through the system.

1) The Core Question Before Every Task

"What is the minimum change that fully satisfies the requirement?"

Not the cleanest change. Not the most extensible. The minimum effective one.

Approach A: refactor the whole module            → 2000 tokens to read + 800 to write
Approach B: add a 10-line guard in one function  → 200 tokens to read + 80 to write
                                                   ↑ 10× cheaper if B solves the problem

Ask before opening files:

  1. Do I need to read the whole file, or just the function signature?
  2. Can I solve this with a targeted edit rather than a rewrite?
  3. Has the problem already been solved somewhere in the codebase?

2) Token Cost Estimates (rough rules of thumb)

Operation Approx. tokens consumed
Read a 100-line Python file ~400 tokens
Read a 500-line file ~2 000 tokens
Read package.json / requirements.txt ~200–400 tokens
Read a docker-compose.yml (5 services) ~600 tokens
Read an entire React component (200 lines) ~800 tokens
Write a 50-line function ~300 tokens
Write a 200-line module ~1 200 tokens
Run a grep across 20 files ~100 tokens (just the matches)
Read a large file you don't need pure waste

High-waste patterns to avoid:

  • Reading a 600-line file when only one function is relevant → use grep first to locate the line, then Read with offset + limit
  • Re-reading a file you already read in the same session → use recalled content
  • Asking an agent to "explore the whole codebase" for a targeted fix → grep for the symbol instead
  • Refactoring surrounding code not related to the task → scope creep inflates cost with no requirement value

Read the full file on GitHub · 193 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. 9d ago First seen · 193 lines · 39 tokens per session scan A 12ff71844086

Subscribe to this mod's changes

token-awareness is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 2,071 once invoked, about $0.0002 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.