Skip to content

About

Local evidence-based usage statistics for Codex Skills, MCP tools and Hooks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-usage

Local, evidence-based usage statistics for Codex Skills
No API key · No telemetry · Nothing leaves your machine

License: MIT Node: ^22.18 || >=24.11 Platform: Windows Runtime dependencies: 0

English | 简体中文


Project focus

Feature Status
Skills statistics (current focus) Logs + Hook collection, merged and deduplicated by default
MCP statistics Incomplete; real usage pipeline unverified
Hook execution statistics Incomplete; offline imports only

hooks install and the Skills table's Hooks column collect and show Skill evidence; --hooks measures Hook executions themselves.

Quick start

Requires Node.js ^22.18.0 || >=24.11.0 and pnpm. Run from the repository root:

pnpm install --frozen-lockfile
pnpm run build
node ./dist/index.mjs setup
node ./dist/index.mjs --days 30

Sample output (synthetic data; reproduce with --skill-evidence docs/examples/skill-comparison-combined.json):

Date: 2026-10-28    Mode: Logs + Hooks    Counts Resolved evidence

│ Skill   │ Logs Explicit │ Logs Inferred │ Hooks │ Unique Total │ Last Recorded    │
│ handoff │             2 │             3 │     4 │            6 │ 2026-10-28 18:35 │

6 skill-turns · 1 skill

Common commands

Goal Command
Default (deduplicated logs + hooks) --days 30
Skills: Logs only / Hook-collected evidence only --skill-method logs / --skill-method hooks
Skill provenance and licenses --provenance
Export JSON / Markdown --json --output a.json / --markdown --output a.md
Refresh the mapping after adding skills or plugins skills refresh
Install the live Skill collector (via Hook) hooks install

Append these to node ./dist/index.mjs; full flags are in --help.

How to read the numbers

  • In the Skills table, Logs Explicit means an explicit request or injection; Logs Inferred means only a SKILL.md read (weak evidence); Hooks means Hook-collected Skill evidence, not Hook execution counts.
  • None of them prove that a skill executed successfully. Unique Total deduplicates by instance + session + turn + skill.
  • Unresolved candidates are counted separately and excluded by default; --skill-counts strict shows — for counts affected by unresolved evidence.

Notes

  • Run skills refresh after plugin updates, otherwise reads of the new versions stay unmapped.
  • Skill collection via Hook requires enabling Hooks in Codex and trusting PreToolUse / Bash via /hooks; it only covers records created afterwards.
  • JSON / Markdown may contain skill names and path digests; review before sharing. Verified on Windows only.

Docs: docs/ · Maintenance: MAINTENANCE.md · License: LICENSE. The Codex collectors derive from skillusage (MIT); see NOTICE.

About

Local evidence-based usage statistics for Codex Skills, MCP tools and Hooks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages