cogs-sentinel

cogs-sentinel is a command for coding agents from kimsanguine/hplan. It costs 56 tokens per session (359 once invoked), scanned A, original, MIT.

A command that runs the AI product cost check using provider prices, expected token use, call volume, and price per customer. It reports typical and high-use margins, the effect of free-user misuse, and a green, conditional-go, or red decision.

In plain words
What is it for?
Use it to test a proposed AI price, compare usage scenarios or providers, estimate the effect of free users, and decide whether the cost structure is ready for a build.
Why use it?
It makes the financial effect of AI usage visible before development begins. This helps show when pricing, model selection, or usage limits need to change.

Command

Part of the hplan plugin — 8 skills, 11 commands, 4 agents shipped together

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.

agentmods
npx agentmods add commands/kimsanguine/hplan/cogs-sentinel
Clone the repo
git clone --depth 1 https://github.com/kimsanguine/hplan

Or install hplan, the plugin that ships this one along with the rest of its 8 skills, 11 commands, 4 agents.

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 cogs-sentinel

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimsanguine/hplan/cogs-sentinel.svg)](https://agentmods.dev/commands/kimsanguine/hplan/cogs-sentinel)
Your own site
<a href="https://agentmods.dev/commands/kimsanguine/hplan/cogs-sentinel"><img src="https://agentmods.dev/badge/commands/kimsanguine/hplan/cogs-sentinel.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.00359
Opus 5 $0.00028 $0.00179
Sonnet 5 $0.00011 $0.00072
Haiku 4.5 $0.00006 $0.00036

Measured 5d ago against content hash 359e27a2299c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cogs-sentinel 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 5d 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.

hplan/commands/cogs-sentinel.md · 32 lines

What it actually says

/cogs-sentinel — COGS p50/p90 결정론 게이트

Running for: $ARGUMENTS

이 커맨드는 hplan/cogs-sentinel 스킬을 즉시 호출합니다.

Instructions

  1. hplan/cogs-sentinel 스킬을 $ARGUMENTS로 invoke.
  2. 스킬이 lognormal Monte Carlo 시뮬레이션 (provider 단가 × 예상 사용량 × free-abuse blend).
  3. 결과:
    • p90 margin ≥ 70% → GREEN (build 가능)
    • p90 margin 50~70% → CONDITIONAL_GO (가격 인상 또는 모델 라우팅 필요)
    • p90 margin < 50% → RED (단가 구조 재설계 필수)

예시

/cogs-sentinel --provider anthropic --model claude-sonnet-4-6 \
               --tokens-in 3000 --calls 40 --arpu 29

Output Format

p50 margin, p90 margin, free-user abuse 영향, 그리고 GREEN / CONDITIONAL_GO / RED 판정과 다음 조치를 반환합니다.

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. 5d ago First seen · 32 lines · 56 tokens per session scan A 359e27a2299c

Subscribe to this mod's changes

cogs-sentinel is a command published in the GitHub repository kimsanguine/hplan (2 stars, last pushed 19d ago), licensed MIT. It adds 56 tokens to every session and 359 once invoked, about $0.0003 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.