cogs-sentinel

cogs-sentinel is a command for Claude Code 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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kimsanguine/hplan/cogs-sentinel
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/kimsanguine/hplan

Made for: Claude Code.

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/github.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/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 cogs-sentinel

Your own site · 80×15
<a href="https://agentmods.dev/commands/kimsanguine/hplan/cogs-sentinel"><img src="https://agentmods.dev/badge/commands/kimsanguine/hplan/cogs-sentinel.svg" alt="Reviewed on agentmods" width="80" 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. 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.00056 $0.00359
Opus 5.5 $0.00022 $0.00144
Sonnet 5.5 $0.00011 $0.00072
Haiku 4.5 $0.00006 $0.00036

Measured 2mo ago against content hash 359e27a2299c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 (3 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 359 once invoked, about $0.0002 per session on Opus 5.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.

Related

cogs-sentinel compared with commands from other repositories

cogs-sentinel next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cogs-sentinelkimsanguine/hplanCommand32mo agoMITA56Claude Code
researchquant-sentiment-ai/claude-equity-researchCommand752yesterdayMITA0Claude Code
compareHainrixz/agente-pagokitCommand6912d agoMITA36Claude Code
financial-modelabinauv/business-consultingCommand3421d agoMITA9Claude Code
how-to-customizeed3dai/ed3d-pluginsCommand2532mo agononeA13Claude Code
spendasanderson/llm-redactCommand7yesterdayAGPL-3.0A22Claude Code
start-design-planed3dai/ed3d-pluginsCommand2532mo agononeA8Claude Code