cost-aware-session

cost-aware-session is a skill for Claude Code from Aibier/claude-em-toolkit. It costs 42 tokens per session (676 once invoked), scanned A, original, MIT.

A checklist for managing Claude Code session cost and token use by choosing suitable models, reading only needed code, and avoiding repeated work.

In plain words
What is it for?
Reviewing an agent workflow, selecting models for different task difficulties, narrowing searches, and checking whether a session is using tokens efficiently.
Why use it?
It helps reduce unnecessary context and model usage during long coding sessions.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Reviewing an agent workflow, selecting models for different task difficulties, narrowing searches, and checking whether a session is using tokens efficiently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aibier/claude-em-toolkit/cost-aware-session
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 Aibier/claude-em-toolkit --skill cost-aware-session
Clone the repo
git clone --depth 1 https://github.com/Aibier/claude-em-toolkit

Made for: Claude Code.

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 cost-aware-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/aibier/claude-em-toolkit/cost-aware-session.svg)](https://agentmods.dev/skills/aibier/claude-em-toolkit/cost-aware-session)
Your own site
<a href="https://agentmods.dev/skills/aibier/claude-em-toolkit/cost-aware-session"><img src="https://agentmods.dev/badge/skills/aibier/claude-em-toolkit/cost-aware-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 676 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.00042 $0.00676
Opus 5 $0.00021 $0.00338
Sonnet 5 $0.00008 $0.00135
Haiku 4.5 $0.00004 $0.00068

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

Security

Grade A, and why

cost-aware-session 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.

.claude/skills/cost-aware-session/SKILL.md · 67 lines

How it starts

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

Running Claude Code Cost Aware

Most cost in a long session comes from a few repeatable patterns: reading more than you need, redundant verification, broad searches that dump raw output into context, and reaching for a heavier model than the task needs. This skill is a checklist for catching those, not a one time setting.

Steps

  1. Match the model to the task.

    • Routine, well scoped work (drafting a standup note, formatting, simple lookups, running a known command) doesn't need your most capable model. Lighter/faster models handle these well and cost less.
    • Reserve deeper reasoning models for genuinely hard problems: ambiguous debugging, architecture trade offs, multi step planning.
    • .claude/settings.json pins a sensible default; only override per task when the task's difficulty actually warrants it.
  2. Read narrowly.

    • Grep for the symbol or pattern first; read only the file and line range that matters. Reading whole large files "to be safe" burns tokens for content you'll never use.
    • Don't re read a file immediately after editing it. A successful edit means the change landed; the harness already tracks that state.
  3. Search with scoped subagents instead of one sprawling search.

    • A single broad search across many repos pulls all of that raw output into your main context. Dispatching several narrow, read only agents in parallel (see triage-researcher) keeps each one's output compact and your own context clean, which is cheaper over the whole session even though it looks like "more agents."
  4. Batch and schedule instead of repeating.

    • If you find yourself running the same broad query every morning, that's a candidate for a scheduled routine that filters for what's actually notable and skips posting when there's nothing to report (see jira-progress-pulse). One filtered scheduled run costs less over a month than many manual broad ones.

Read the full file on GitHub · 67 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 · 67 lines · 42 tokens per session scan A 04442e6a5b75

Subscribe to this mod's changes

cost-aware-session is a skill published in the GitHub repository Aibier/claude-em-toolkit (5 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 676 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-08-31.