bernstein-cost

bernstein-cost is a skill for Claude Code, Codex from sipyourdrink-ltd/bernstein. It costs 41 tokens per session (357 once invoked), scanned A, original, Apache-2.0.

A cost-reporting guide for the Bernstein orchestrator, a system that coordinates work between AI agents or models.

In plain words
What is it for?
Checking total spend, remaining budget, cost per model or agent, budget status, and projected cost by running Bernstein's cost scripts.
Why use it?
It turns spending and budget information into a breakdown by model and agent, helping identify current costs and estimate future spending.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Part of the bernstein plugin — 8 skills shipped together

Good fit Checking total spend, remaining budget, cost per model or agent, budget status, and projected cost by running Bernstein's cost scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sipyourdrink-ltd/bernstein/bernstein-cost
About the project

Bernstein is an open-source governance layer for AI agents that applies written policies, schedules agent work deterministically, controls approvals, and records verifiable execution history. It is used to coordinate CLI coding agents and other agent workloads, including parallel runs and offline review, while the catalogue entries provide its agent workflows and controls.

sipyourdrink-ltd/bernstein · 1,126 stars · on GitHub · bernstein.run

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 sipyourdrink-ltd/bernstein --skill bernstein-cost
Clone the repo
git clone --depth 1 https://github.com/sipyourdrink-ltd/bernstein

Made for: Claude Code, Codex.

Or install bernstein, the plugin that ships this one along with the rest of its 8 skills.

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 bernstein-cost

README.md
[![agentmods](https://agentmods.dev/badge/skills/sipyourdrink-ltd/bernstein/bernstein-cost.svg)](https://agentmods.dev/skills/sipyourdrink-ltd/bernstein/bernstein-cost)
Your own site
<a href="https://agentmods.dev/skills/sipyourdrink-ltd/bernstein/bernstein-cost"><img src="https://agentmods.dev/badge/skills/sipyourdrink-ltd/bernstein/bernstein-cost.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 357 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00041 $0.00357
Opus 5 $0.00020 $0.00179
Sonnet 5 $0.00008 $0.00071
Haiku 4.5 $0.00004 $0.00036

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

Security

Grade A, and why

bernstein-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/costs.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/cursor-plugin/skills/bernstein-cost/SKILL.md · 50 lines

What it actually says

Bernstein Cost Tracker

Show detailed cost analysis and budget status.

When to Use

  • User asks "how much have we spent?" or "what's the cost?"
  • User wants per-model or per-agent cost breakdown
  • User asks about budget remaining or cost projection
  • User says "are we over budget?"

Instructions

  1. Run scripts/costs.sh to fetch cost data.
  2. Run scripts/costs.sh projection for cost forecast.
  3. Present a clear cost report:
## Cost Report

**Total spent:** $X.XX / $Y.YY budget (Z%)
**Status:** {OK | WARNING | OVER BUDGET}

### Per Model
| Model | Tasks | Cost | Avg/Task |
|-------|-------|------|----------|
| claude-sonnet-4 | 12 | $1.84 | $0.15 |
| gpt-4.1 | 5 | $0.62 | $0.12 |

### Per Agent
| Agent | Role | Tasks Done | Cost |
|-------|------|------------|------|
| claude-backend-01 | backend | 3 | $0.45 |

### Projection
At current rate, this run will cost ~$X.XX total.
Estimated completion: Y tasks remaining, ~Z minutes.
  1. If budget warning is active, highlight it prominently.
  2. If over budget, note that Bernstein has paused new task claims.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 50 lines · 41 tokens per session scan A 755a8065d578

Subscribe to this mod's changes

bernstein-cost is a skill published in the GitHub repository sipyourdrink-ltd/bernstein (1,126 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 357 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-30.

Related

Other skills, from other repositories

Agent Audit Trail

Append-only, hash-chained audit log for AI agents. Records agent actions, tool calls, decisions, and external writes with provenance, timestamps, and sha256 chain integrity. Designed for compliance with EU AI Act Article 12 automatic event recording requirements for high-risk AI systems.

lxyeternal/MalSkillBench · 59 tokens

akf-trust-metadata

The AI native file format. EXIF for AI — stamps every file with trust scores, source provenance, and compliance metadata. Embeds into 20+ formats (DOCX, PDF, images, code). EU AI Act, SOX, HIPAA auditing.

sickn33/agentic-awesome-skills · 60 tokens

ai-research-reproduction

Rigor Reproduce compatible skill slug for README-first deep learning repository reproduction. Use when the user wants an end-to-end, minimal-trustworthy flow that reads the repository first, selects the smallest documented inference or evaluation target, coordinates intake, setup, trusted execution, optional trusted…

lllllllama/RigorPilot-Skills · 136 tokens

Supply Chain Security

Software supply chain security — SBOM generation and analysis, dependency confusion and typosquatting detection, malicious package indicators, CI/CD pipeline hardening, and artifact provenance/signing (SLSA, Sigstore).

Masriyan/Claude-Code-CyberSecurity-Skill · 47 tokens

explore-run

Rigor Improve / Rigor Explore run leaf skill for bounded exploratory evidence in deep learning research repositories. Use when the researcher explicitly authorizes exploratory runs such as small-subset validation, short-cycle guess-and-check, batch sweeps, idle-GPU search, or quick transfer-learning trials, with…

lllllllama/RigorPilot-Skills · 117 tokens

explore-code

Rigor Improve implementation leaf skill for auditable candidate implementation in deep learning research repositories. Use when the researcher explicitly authorizes exploratory work on an isolated branch or worktree to transplant modules, adapt a backbone, add LoRA or adapter layers, replace a head, or stitch together…

lllllllama/RigorPilot-Skills · 112 tokens