cost

cost is a skill for Claude Code from Republicofhaitigoodstory6175/engram. It costs 40 tokens per session (608 once invoked), scanned A, a copy of cost, Apache-2.0.

A cost-reporting skill for engram, a tool that tracks context-related token use. It shows tokens saved, percentage reduction, estimated dollar savings, and intercepted tool-call events.

In plain words
What is it for?
Use it to view current-project totals, compare multiple project folders, or create a weekly Markdown digest for sharing.
Why use it?
It gives you a way to check whether engram is reducing token use and what that may mean for costs. Reports can cover one project, several projects, or a week.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the engram plugin — 3 skills, 1 MCP server shipped together

Good fit Use it to view current-project totals, compare multiple project folders, or create a weekly Markdown digest for sharing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/republicofhaitigoodstory6175/engram/cost
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 Republicofhaitigoodstory6175/engram --skill cost
Clone the repo
git clone --depth 1 https://github.com/Republicofhaitigoodstory6175/engram

Made for: Claude Code.

Or install engram, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/republicofhaitigoodstory6175/engram/cost"><img src="https://agentmods.dev/badge/skills/republicofhaitigoodstory6175/engram/cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 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 100% copy Near-identical to another mod 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.00040 $0.00608
Opus 5 $0.00020 $0.00304
Sonnet 5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

cost 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 11d 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.

Origin

This is a copy

100% identical to cost — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/anthropic-marketplace/engram/skills/cost/SKILL.md · 42 lines

How it starts

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

engram cost

Show token-savings telemetry from engram's hook log. Three modes:

  1. Default — terminal table for the current project: engram cost
  2. Multi-project — across many roots: engram cost -p /path/a -p /path/b
  3. Weekly digest — Markdown file at ~/.engram/cost-report-YYYY-Www.md: engram cost --digest

Run the requested mode and report the totals:

  • Tokens saved (numeric, with K/M suffix)
  • Reduction ratio (percentage)
  • Approximate USD saved (Claude Sonnet 4.6 input pricing by default)
  • Total events (number of intercepted tool calls)

If the user passed "$ARGUMENTS", treat it as flag input (e.g., --digest, -p /path).

If the table shows zeroes, explain that historic events don't carry the new tokens-saved fields — real numbers populate within ~24 hours of v3.3 install.

Example invocations

User: "How much has engram saved me this week?" You: Run engram cost --digest. Read the output. Quote the totals: tokens saved, reduction ratio, approx USD. Mention the digest file path so the user can paste it into Slack.

User: "Show me my engram numbers across all projects" You: Multi-project mode. Run engram cost -p ~/proj-a -p ~/proj-b -p ~/proj-c (substitute with the user's actual paths if they list them, otherwise default to the current directory).

User: "Is engram even doing anything?" You: Run engram cost --json and pipe to a sanity check. If events > 0 but tokensSaved == 0, the user is on engramx older than 3.3.0 — recommend npm i -g engramx@latest. If events == 0, the hook isn't installed — recommend engram install-hook.

User: "Compare cost vs last week" You: Two digest files at ~/.engram/cost-report-YYYY-W{N}.md and ~/.engram/cost-report-YYYY-W{N-1}.md. Read both, present the deltas in a table.

When NOT to fire this skill

  • The user is asking about npm package costs, hosting bills, or general cloud spend. This skill is engram-specific only.
  • The user wants to set up cost tracking for the first time. Point them at engram setup and engram install-hook first; cost data accumulates after the hook is wired.

Read the full file on GitHub · 42 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. 11d ago First seen · 42 lines · 40 tokens per session scan A 94c41b03ae97

Subscribe to this mod's changes

cost is a skill published in the GitHub repository Republicofhaitigoodstory6175/engram (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 40 tokens to every session and 608 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to cost, differing in 0 lines, and is treated as a copy.