Cost and Telemetry
See what a session cost, what it did, and which capabilities the kit declares.
These commands read logs and manifests that the harness already writes. They change no project state, except trace --friction, which appends one note to the trace log, and eval run, which writes a report under .meowkit/telemetry/eval/.
budget
budget reports token usage and estimated cost from the cost log.
mewkit budget [--monthly] [--session [id]] [--day [YYYY-MM-DD]]| Flag | Description |
|---|---|
--monthly | Aggregate by month instead of showing the last 10 entries |
--session | Filter to the current session |
--session <id> | Filter to a specific session id from cost-log.json |
--day | Filter to today |
--day <date> | Filter to a specific day, as YYYY-MM-DD |
- Without filters,
budgetshows the latest 10 rows and the all-time token total. --sessionfinds the current session fromHOOK_SESSION_ID, then from.meowkit/state/last-session-id.- Filters combine, so
--session --dayreports the intersection.
mewkit budget
mewkit budget --monthly
mewkit budget --session
mewkit budget --session 9adf6a6b-9fbf-45ca-b36b-b0dd55356ac1
mewkit budget --day 2026-05-01
mewkit budget --session --day 2026-05-01budget context
budget context estimates how many tokens a profile loads from .claude/. CI uses it as a context-size guard. It needs .meowkit/pack-manifest.json, and an unknown profile name prints the available ones.
mewkit budget context [--profile <name>] [--fail-over N] [--json]Without --profile it reports every profile. --fail-over N exits non-zero when a profile's estimate exceeds N tokens.
trace
trace reads the append-only trace log for entropy and repeated friction, and records friction notes so later sessions can recall them. It is advisory and always exits 0.
mewkit trace audit # orphaned, stale, unverified and repeated-friction signals
mewkit trace propose # group friction seen at least twice into advisory backlog items
mewkit trace score # entropy score
mewkit trace --friction "<note>" [--responsibility <r>] [--id <run-id>] [--skill <name>]propose --commit appends the proposed items to the advisory backlog. --id filters score to one run and attributes a --friction note to a run. --skill attributes it to one skill and marks it an explicit report. --json prints JSON.
eval
eval measures the kit. eval run drives a runtime headlessly over a suite of cases and writes a JSON report; eval compare compares two reports of the same suite. Runs are opt-in: nothing starts one from a hook or an install.
mewkit eval run --suite baseline --dry-run
mewkit eval run --suite baseline --runtime claude-code --model <pinned-model> --max-cost-usd 5 --max-runs 40 --kit-archive meowkit-release.zip
mewkit eval compare <base.json> <new.json> [--json]- Each run happens in a fresh copy of the case's fixture with the kit archive installed by
mewkit init, never in your project. Use a releasemeowkit-release.zip, or build one from a checkout to measure your own changes. For a paired case, the "skill off" side deletes every installed copy of the skill under test. - The runtime gets an empty config home and only the environment it needs:
PATH, locale, and its own login variable (CLAUDE_CODE_OAUTH_TOKENorANTHROPIC_API_KEYfor Claude Code,CODEX_API_KEYorOPENAI_API_KEYfor Codex). No login file is copied. --runtimetakesclaude-code(the default) orcodex. Cursor, Grok, Pi, OMP and Antigravity have no eval runner yet, so their trigger rates are not measured.--model,--max-cost-usd,--max-runsand--kit-archiveare required to run cases. The cost ceiling is shared by every eval run in the project at the same time.- A run that times out, is rate-limited or ends without a result is retried twice and then recorded as an error, kept out of every rate. A report is incomplete when errors pass 5% of runs, when a case ran other than planned, or when a case was skipped.
comparerefuses incomplete reports and reports that differ in runtime, model, case set or case list, and exits 1.- Cases live in
<skill>/eval/*.yaml. Without--case-root,eval runreads.claude/skills, the MeowKit repository's own cases, so it runs from a kit checkout.--case-rootreads another folder and needs--trust-cases, because its cases run model turns. - The
baselinesuite (trigger cases for the 20 most-referenced skills, paired cases forcook,plan-creator,fixandinvestigate, and parachute briefs with controls) lives in the MeowKit repository. No release or install carrieseval/folders. Paired assertions areskillLoaded,skillNotLoaded,fileExists,fileContains,outputMatches,outputNotMatches,toolBefore,toolInputMatches,toolNotCalled,toolInputNotMatchesandmodelGraded; afileExistsorfileContainspath may use*within a segment (tasks/plans/*/plan.md).toolInputMatchestakes atooland apatternand passes when some call to that tool has an input, as JSON text, that matches;TaskandAgentname the same Claude Code tool, and for a Codex command the input is the command.toolNotCalled(atool) andtoolInputNotMatches(atooland apattern) are their negations, for restraint checks such as "did not spawn a subagent" or "did not rungit push". A case withgitInit: truestarts in a git repository onmainwith one commit holding the fixture and the installed kit; files under the fixture's.eval-uncommitted/folder are then written over the project as uncommitted changes, and the run's empty home gets a throwaway git identity.
capabilities
capabilities inspects and resolves the capability manifest, the map of installed skills, agents, commands and hooks plus the authored tool and context services. The manifest is only a lookup surface and is never injected into a model session. The CLI reads the live .claude/ install when there is one. A project with only a Codex install falls back to the validated .codex/capabilities.json snapshot.
mewkit capabilities list [--json]
mewkit capabilities explain <id> [--json]
mewkit capabilities resolve --intent "implement this feature" [--provider <id>] [--json]
mewkit capabilities view # render the trigger-registry table from the manifest
mewkit capabilities bootstrap [--provider <id>] [--write]
mewkit capabilities projections [--json]| Subcommand | Purpose |
|---|---|
list | All capabilities with kind, owner, install state and intents |
explain <id> | One capability's requirements, support levels, verification and provenance |
resolve | Ranks capabilities for an --intent. With --provider it also reports whether the host has the capability, the safe invocation, any repo-context requirement and how that provider acquires it, and the adapter and evidence behind the claim |
view | Renders the capabilities table (the generated part of the trigger registry) |
bootstrap | Prints the bounded, brand-neutral discovery bootstrap for a provider. --write writes the generated file instead of printing it |
projections | Per-provider discovery projection and the four support levels: discoverable, selectable, invocable, enforceable |