Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (agent-profiler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
agent-profiler
Local-first profiling for AI coding agents.
agent-profiler captures local Cursor and Codex hook events into SQLite so you can inspect recent sessions, setup state, and always-on context overhead without sending data to a remote service.
Requirements
- Node.js 22 or newer
- macOS, Linux, or another environment supported by
better-sqlite3
Install
For one-off commands, use npx:
npx agent-profiler --help
npx agent-profiler lastFor persistent hook installation, install the package so agent-profiler is available on PATH:
npm install -g agent-profiler
agent-profiler --helpQuick Start
Initialize hooks for Cursor:
agent-profiler init cursor --mode prodInitialize hooks for Codex:
agent-profiler init codex --mode prodInspect the resulting setup and the latest captured session:
agent-profiler status
agent-profiler last
agent-profiler audit contextnpx vs --mode prod
npx agent-profiler ...is great for one-off inspection commands.agent-profiler init <source> --mode prodwrites persistent hook commands that expectagent-profilerto be installed onPATH.--mode devis meant for local development in this repository and writes absolutenode <repo>/dist/cli.js ...hook commands instead.
Commands
agent-profiler init <cursor|codex>: install hook wiring for a supported sourceagent-profiler hook <source> <eventName>: ingest one hook payload from stdinagent-profiler status: inspect local setup and ingest stateagent-profiler last: summarize the most recent observed sessionagent-profiler audit context: estimate always-on context token footprint
Releases
Releases are automated with semantic-release. Pull requests run CI plus canary publishing, and pushes to main publish to npm and create a GitHub release.