usage-kernel

Uses six Codex usage-tracking tools to obtain precise local usage data, scoped exploration, permission observation, and an evidence timeline.

Last repository push
GitHub Stars
197
Forks
18
Issues / PRs
5

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "usage-kernel" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-41afeeb13b5309241127a8efee4b095468a72e4f1e51fb0a1a4becfc00fc545b. Verify the upstream source and version against https://github.com/douglasmonsky/codex-usage-tracker before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Uses six Codex usage-tracking tools to obtain precise local usage data, scoped exploration, permission observation, and an evidence timeline.

0 Downloads

Introduction source: third_party · douglasmonsky · 0.0.1 Reference

SkillPi interpretation

Tasks
Use the six Codex Usage Tracker tools for exact local usage facts, bounded exploration, allowance observations, and evidence timelines.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: usage-kernel
description: Use the six Codex Usage Tracker tools for exact local usage facts, bounded exploration, allowance observations, and evidence timelines.

Codex Usage Tracker

Use the tracker as a factual local data plane. The tools return exact or explicitly graded facts; the model owns inference, explanation, and recommendations.

Use the three-step loop scope → batch → evidence:

  1. Scope. Start with the needed usage_query whenever the question maps to a curated template or a known typed request. The result carries its generation, grade, history coverage, and cache state. Call usage_status only when the query reports an absent or insufficiently fresh index, or when the user explicitly asks about operational state. A committed generation remains queryable while refresh is active or recommended. When the needed fields are unfamiliar, set include_guidance=true on the same usage_query call that carries the first batch; use an empty batch only for standalone capability discovery.
  2. Batch. Prefer one batched usage_query call. Its arguments always wrap one or more query requests in the requests array. Execute a curated server-side template with {"requests":[{"template":"<name>"}]}; for the common thread leaderboard use {"requests":[{"template":"top_threads"}]}. Templates query the hydrated snapshot and report its coverage; refresh complete history only when the user asks. For same five ranked threads, use result 1 for labels, selectors, totals, shares, and token classes; use result 2 only for cost/credits. Do not query again unless user asks for evidence. Use {"requests":[{"template":"weekly_drivers"}]} for the latest indexed seven-day thread leaderboard, {"requests":[{"template":"week_over_week"}]} for that window versus the immediately preceding seven days, and {"requests":[{"template":"latest_incremental_change"}]} for the active generation's inserted calls and leading affected thread. These templates derive their anchors from the committed snapshot; do not discover dates or generation numbers first. Use {"requests":[{"template":"model_effort"}]} for model/effort mix and {"requests":[{"template":"tools"}]} for structural tool facts. Do not repeat a successful curated template or request guidance after it returns rows. Supply parameters only when the selected template requires them. Otherwise send only the typed dataset, operation, dimensions, measures, filters, and limits needed for the question. Do not copy or reconstruct a returned template body. Preserve the returned generation, grade, coverage, counts, and explicit row/byte limits. Compose filters as {field, operator, value} using only the dataset fields and operators in filter_grammar; in takes an array of 1–25 values. Phase queries require one returned scope-filter template for a thread, turn, or time window.
  3. Evidence. Rank candidates from the facts first. Call usage_evidence only after ranking, and only with an exact returned logical selector. Use live=true for the same timeline in live mode.

Label every claim:

  • fact — returned exact/deterministic data; for partial, state the hydration preset/cutoff and never generalize to all history;
  • estimate — returned estimated data with coverage and provenance;
  • hypothesis — model inference that still needs evidence;
  • unsupported — unavailable from the returned scope and not asserted.

The optional context dataset is aggregate-only private local evidence. Its observed_bytes and events measures are exact for the structurally observed payload strings that were indexed. estimated_tokens is available only when an explicit tokenizer populated it; always preserve its estimator identity and coverage. Never describe category bytes or estimates as exact billed input tokens, and keep unattributed_input_tokens unsupported when the response reports it as null. If context composition is disabled, continue with the base accounting datasets instead of starting hidden work.

Call usage_refresh only when freshness matters. Reuse the returned job; never start a duplicate. Use usage_job_status with a bounded wait_seconds value so the host waits; do not short-interval poll from the model. Use usage_allowance for observed allowance facts and preserve its provenance and limitations. Do not infer waste or productivity from token totals alone.

Never inspect raw logs as a fallback, invent missing selectors, claim narrative findings the tools did not return, or expose prompts, reasoning, tool arguments/output, secrets, or local paths.

Version history

  1. v0.28.0 GitHub ↗
    Original release notes

    Feature-free stabilization and pre-1.0 contract freeze. - Freezes the six-tool MCP, versioned HTTP/SSE, primary CLI, logical evidence, cache lifecycle, calculation-grade, four-token-class, JSON export, privacy, installation, and upgrade contracts. - Qualifies fault recovery, scale, concurrent reads, rollback, and direct upgrades from public 0.26.0 and 0.27.0. - Keeps optional context composition experimental and the overlay as a read-only contract without a shipped runtime. Publication is performed only by the protected build-once Trusted Publishing workflow.

  2. v0.27.0 GitHub ↗
    Original release notes

    Codex Usage Tracker 0.27.0 ships the lean product kernel guided-exploration release. - Adds bounded, schema-driven guided data exploration. - Keeps optional context composition isolated, owner-only, and disabled by default. - Freezes the read-only overlay adapter boundary without shipping overlay assets. - Strengthens protected publication with merged-main tag fencing and exact sdist source-byte checks. - Preserves the six-tool MCP surface and fast incremental kernel workflows.

  3. v0.26.0 GitHub ↗
    Original release notes

    Codex Usage Tracker 0.26.0 replaces the beta analysis and compatibility product with a lean local data kernel built for exact, incremental, model-driven exploration. Highlights: - Exact incremental facts with explicit refresh, atomic generation promotion, and preserved rollback metadata. - Six focused MCP tools, ten operational CLI commands, and seven kernel HTTP routes. - A focused Evidence Console with bounded queries, exact timelines, live reconnect, and no implicit refresh. - Side-by-side cache cutover that leaves the 0.25 cache untouched. - Removal of narrative analysis jobs, OTel, telemetry, compression, diagnostics, recommendations, content indexing, compatibility profiles, and legacy dashboard assets. - Protected build-once promotion through TestPyPI, PyPI, and GitHub Release assets. See `CHANGELOG.md` and the Product Kernel Reset roadmap for the complete contract and migration details.

  4. v0.25.1 GitHub ↗
    Original release notes

    # Release 0.25.1 Release 0.25.1 removes the experimental local telemetry sidecar and hardens the incremental refresh lifecycle used by the seven-tool MCP surface. ## Refresh reliability - Stale analysis reuses an already-running compatible refresh, including while append-active JSONL source revisions continue moving. - Job polling derives outer status and detailed progress from one durable row, preventing mixed running/failed snapshots. - Detached refresh startup returns the durable post-handshake state instead of a stale queued snapshot. - Completed refresh and analysis results remain available after an MCP restart. - Refresh remains incremental after the initial index build and preserves concurrent reads from the last committed generation. - Append-safe allowance and thread-link maintenance updates only the moving tail. Schema 38 removes low-selectivity revision indexes, and reset-aware model v5 extends the deterministic source revision for new observations. - `execution="auto"` routes large-history analysis through a durable asynchronous job instead of blocking one MCP request on the full analysis. ## Telemetry sunset - The telemetry parser, exporter cursor, staging tables, reconciliation pass, refresh phase, diagnostics, and support-bundle fields are removed. - Schema 38 drops retired staging tables in place without rebuilding canonical usage rows. - Shared `service_tier`, `fast`, pricing, export, and Evidence Console fields remain because live product surfaces still use them. The core MCP catalog remains exactly seven tools. No legacy telemetry runtime, compatibility flag, or fallback path is retained. ## Qualification - The full Python suite passed with 2,058 tests and 88.07% coverage. Ruff, MyPy, configured Pyright, Tach, release-readiness, and product-complexity checks passed. - All 599 frontend tests, lint, typecheck, dependency, dead-code, style, source-governance, deterministic-asset, and bundle gates passed. - All 14 Chromium release-candidate tests passed, including Home startup without hidden heavy analysis. - The 100,000-row synthetic gate completed a 45-row append in `1.416816s`, a one-row moving-tail refresh in `1.027582s`, a no-change refresh in `0.003999s`, and a concurrent committed read in `0.003857s`. - At 216,000 rows, post-build work remained bounded: `3.871973s` for 45 appended rows, `2.290849s` for one moving-tail row, `0.004112s` for no changes, and `0.006584s` for a concurrent committed read. The one-time cold build was `54.356171s`. - Clean installed-wheel probes exposed exactly seven tools and completed 39–40 MCP calls across two independent tasks. They hydrated a moving tail, preserved completed refresh and analysis results across restart, and reused the durable repeated-analysis result. - Five consecutive clean installed-wheel stress runs passed after the startup state contract was tightened. The maximum server-reported MCP call time was `604.045ms`.

  5. v0.25.0 GitHub ↗
    Original release notes

    ## Highlights Codex Usage Tracker 0.25.0 makes the MCP/plugin and live Evidence Console the dependable central product. - MCP and Evidence Console startup is read-only against the committed usage index. Equivalent refreshes from separate Codex tasks now join one durable cross-process job in the operational sidecar instead of competing for the usage database writer lock. - Incremental refreshes capture a fixed newline-aligned source boundary, leave concurrent appends for one bounded follow-up, expose generation/tail/progress timing, and reuse compatible durable analysis results. - Home now reads current call, token, and cache totals from compact summaries even while optional recommendation materialization catches up. The persisted Recent findings section and its load-path query are removed. - The legacy static dashboard product is removed: static generator/assets, `dashboard` and `open-dashboard` aliases, MCP `generate_usage_dashboard`, and configured static serving. `/dashboard.html` returns a data-free 410 migration page for 0.25, while `/` redirects to `/react-dashboard.html`. - CSV/JSON exports, Evidence Console deep links, React/locales, canonical accounting, privacy/raw-context controls, schema integrity, and focused Home/Limits/Calls/Threads/thread-call query plans remain supported. - Release gates now fail closed on stale static-only JavaScript syntax globs, and package/plugin/runtime versions share one deterministic bundle identity. ## Upgrade ```bash pipx upgrade codex-usage-tracking codex-usage-tracker setup --force-plugin ``` Then restart Codex so it loads the 0.25.0 plugin/MCP bundle. Reopening the browser against an already running service does not rebuild the index; use `service serve --no-refresh` when you want to serve the last committed generation while a separate refresh is running. See the [0.25.0 release guide](https://github.com/douglasmonsky/codex-usage-tracker/blob/v0.25.0/docs/releases/0.25.0.md) and [upgrade guide](https://github.com/douglasmonsky/codex-usage-tracker/blob/v0.25.0/docs/upgrading-to-0.25.0.md).

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

The source report provides verifiable scores for 2 of 4 dimensions.

Scenario Value75/100

Highlights

  • 提供六种 Codex 使用量追踪工具,支持精确本地数据查询、许可观察和证据时间线
Trigger Precision78/100

Areas to improve

  • 触发词示例不足 Reported severity: Minor

    description 描述完整但缺乏具体触发词示例(如'查看本周线程排行'等常见指令)

    Recommendation: 补充典型使用场景的具体触发词示例以提升触发准确性

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.