meter-view

meter-view is a skill for Claude Code, Codex from Snowflake-Labs/cocoplus. It costs 51 tokens per session (1,393 once invoked), scanned A, original, MIT.

An HTML dashboard generator for viewing CocoMeter token usage and attribution, including data queried from Snowflake and matched with local request records.

In plain words
What is it for?
It is for generating a usage dashboard with request stages, local records, and Snowflake rows, then opening the result in a browser when appropriate.
Why use it?
It brings scattered usage information into one browser-based view and can direct users to the cost panel in CocoConsole when that is running.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for generating a usage dashboard with request stages, local records, and Snowflake rows, then opening the result in a browser when appropriate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/meter-view
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 Snowflake-Labs/cocoplus --skill meter-view
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

Made for: Claude Code, Codex.

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 meter-view

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/meter-view"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/meter-view.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,393 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.00051 $0.01393
Opus 5.5 $0.00020 $0.00557
Sonnet 5.5 $0.00010 $0.00279
Haiku 4.5 $0.00005 $0.00139

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

Security

Grade A, and why

meter-view 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.

.cortex/skills/cocometer/meter-view/SKILL.md · 159 lines

How it starts

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

Your objective is to generate and open the CocoMeter token attribution dashboard.

CocoPlus 2.0 Console-Aware Redirect

Before generating standalone HTML, check .cocoplus/lifecycle/console-state.json.

If the file exists and contains running: true with a port value:

  1. Output: Opening Cost panel in CocoConsole.
  2. Open http://localhost:<port>/cost in the browser.
  3. Stop. Do not generate a standalone snapshot.

If CocoConsole is not running, continue with the standalone CocoMeter dashboard behavior below.

Pre-flight Check

Check that .cocoplus/ exists. If not: Output: "CocoPlus not initialized. Run $pod init to begin." Then stop.

Read Attribution Data

Read .cocoplus/meter/request-map.jsonl. If the file is missing or empty, continue — the dashboard must still render with local-only data and zero Snowflake rows. Use an injected payload shaped like:

{
  "local_only": true,
  "rows": [],
  "stages": [],
  "warning": "No local CocoMeter request-map entries were found yet."
}

Partition entries into two sets:

  • Direct IDs: entries where is_subagent_anchor is absent or false
  • Anchor IDs: entries where is_subagent_anchor is true

Query Snowflake Usage History

If any Direct IDs exist, execute Pass 1:

SELECT REQUEST_ID, PARENT_REQUEST_ID, USAGE_TIME, TOKENS, TOKEN_CREDITS,
       TOKENS_GRANULAR, CREDITS_GRANULAR
FROM SNOWFLAKE.ACCOUNT_USAGE.CORTEX_CODE_CLI_USAGE_HISTORY
WHERE REQUEST_ID IN (<direct_ids>)
   OR PARENT_REQUEST_ID IN (<direct_ids>)
ORDER BY USAGE_TIME ASC;

If Anchor IDs also exist, execute Pass 2:

SELECT REQUEST_ID, PARENT_REQUEST_ID, USAGE_TIME, TOKENS, TOKEN_CREDITS,
       TOKENS_GRANULAR, CREDITS_GRANULAR
FROM SNOWFLAKE.ACCOUNT_USAGE.CORTEX_CODE_CLI_USAGE_HISTORY
WHERE PARENT_REQUEST_ID IN (<anchor_ids>)
  AND REQUEST_ID NOT IN (<pass_1_request_ids>)
ORDER BY USAGE_TIME ASC;

Union Pass 1 and Pass 2 results. If either query fails (permission denied, connection error), log the error and continue with whatever was retrieved — do not abort.

Read the full file on GitHub · 159 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 First seen · 159 lines · 51 tokens per session scan A ad201837330c

Subscribe to this mod's changes

meter-view is a skill published in the GitHub repository Snowflake-Labs/cocoplus (729 stars, last pushed 23d ago), licensed MIT. It adds 51 tokens to every session and 1,393 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-09-03.

Related

meter-view compared with skills from other repositories

meter-view next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
meter-viewSnowflake-Labs/cocoplusSkill72923d agoMITA51Claude Code, Codex
prompt-engineeringwpank/aiSkill129mo agononeB44Claude Code, Codex
iterate-implementationhumanlayer/humanlayerSkill13k8d agoApache-2.0A16Claude Code, Codex
Workspace Data AnalystVoltAgent/voltagentSkill11k24d agoMITA14Claude Code, Codex
examples-qacognesy/instructor-phpSkill328yesterdayMITA67Codex
langgraphyonatangross/orchestkitSkill312todayMITA54Claude Code
code-reviewmagnus919/agent-skillsSkill202todayMITA196Claude Code, Codex