p3-cost

p3-cost is a command for Claude Code from jonase47/ccpr. It costs 0 tokens per session (1,461 once invoked), scanned A, original, MIT.

A guide for estimating the ongoing cost of running a software architecture under different usage scenarios. It uses the project’s architecture, infrastructure, technologies, and financial plan as context.

In plain words
What is it for?
Use it to estimate monthly operating costs for scenarios such as different user counts or request volumes.
Why use it?
It helps reveal infrastructure expenses before launch and compare them with earlier estimates.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to estimate monthly operating costs for scenarios such as different user counts or request volumes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jonase47/ccpr/p3-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.

Clone the repo
git clone --depth 1 https://github.com/jonase47/ccpr

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jonase47/ccpr/p3-cost"><img src="https://agentmods.dev/badge/commands/jonase47/ccpr/p3-cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,461 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.00000 $0.01461
Opus 5.5 $0.00000 $0.00584
Sonnet 5.5 $0.00000 $0.00292
Haiku 4.5 $0.00000 $0.00146

Measured 2mo ago against content hash 7c3278dab2ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

p3-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 2mo 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.

commands/p3-cost.md · 114 lines

How it starts

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

/p3-cost – Operating Costs of the Architecture

Estimates the ongoing Operating Costs of the chosen architecture for various usage scenarios. The goal is realistic cost planning that feeds back into the financial plan – no surprises after launch.

Argument: $ARGUMENTS = [Scenario, e.g. "100 users", "10k users", "100k requests/day"]

If provided: Calculate the Operating Costs for the named scenario. Multiple scenarios can be provided as a comma-separated list (e.g. "100 users, 1k users, 10k users"). If not provided: Read ARCHITECTURE.md, INFRASTRUCTURE.md and FINANCIAL_PLAN.md and select sensible scenarios based on growth projections. If any context is missing, ask for the expected user numbers.

Execution

1. Read Context

Read the following files (if available):

  • ARCHITECTURE.md (system components – what runs where?)
  • INFRASTRUCTURE.md (hosting decisions, concrete services)
  • TECH_STACK.md (technologies and external services with cost implications)
  • FINANCIAL_PLAN.md (previous infrastructure cost estimates for comparison)

2. Delegation to Business Analyst Agent (Lead)

Delegate the cost calculation to the business-analyst agent:

Calculate the monthly Operating Costs for the following scenarios: $ARGUMENTS Context from ARCHITECTURE.md and INFRASTRUCTURE.md: [insert components, services, hosting decisions]

A. Cost Categories (per scenario) Calculate monthly costs for each category:

Category Service/Component Cost/Month (Scenario 1) Cost/Month (Scenario 2) ...
Server / Compute (e.g. Hetzner CX21) X€ X€
Database (e.g. managed PostgreSQL) X€ X€
Object Storage (e.g. S3, Hetzner Object Storage) X€ X€
CDN / Bandwidth X€ X€
Email Delivery (e.g. Postmark, SendGrid) X€ X€
Monitoring / Logging (e.g. Sentry, Grafana Cloud) X€ X€
Auth Service (if external, e.g. Auth0) X€ X€
Other External APIs X€ X€
Total X€ X€

B. Scaling Behavior

  • How do costs develop between scenarios?
  • Are there cost tiers (e.g. tier upgrades at external services)?
  • At what user count does an architecture change become economically sensible?

C. Cost Optimization Potential

  • Which cost items are largest and could be reduced?
  • Are there cheaper alternatives to individual services?
  • Reserved instances / annual subscriptions: where does early commitment pay off?

D. Comparison with Financial Plan

  • Do the calculated costs deviate from FINANCIAL_PLAN.md?
  • If yes: how does the financial plan need to be adjusted?

Read the full file on GitHub · 114 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. 2mo ago Changed 7c3278dab2ed
  2. 2mo ago First seen · 114 lines · 0 tokens per session scan A d42a6b4a9c09

Subscribe to this mod's changes

p3-cost is a command published in the GitHub repository jonase47/ccpr (1 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,461 tokens. 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.

Related

p3-cost compared with commands from other repositories

p3-cost next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
p3-costjonase47/ccprCommand12mo agoMITA0Claude Code
cost-reportaffaan-m/ECCCommand314ktodayMITA16Claude Code
statsAR6420/Hail_HydraCommand5229d agoMITA29Claude Code
forge-resetluiseiman/dotforgeCommand826d agoMITA15Claude Code
firebase-publishPierry/harness-kitCommand41mo agoMITA20Claude Code
sddPierry/harness-kitCommand41mo agoMITA29Claude Code
golden-pathPierry/harness-kitCommand41mo agoMITA40Claude Code