Skip to main content Switch to mobile version agent-tuner 1.0.0 Understand your AI usage. Tune your agent workflows.
pip install agent-tuner Copy PIP instructions
Understand your AI usage. Tune your agent workflows.
Tuner is a local-first tool that reads the session history of your coding agents (Cursor, Claude Code, OpenCode, Open WebUI, and Hermes), shows where your tokens went, and helps you turn the expensive patterns into better prompts, rules, and Agent Skills. It runs on macOS and Windows with Python 3.13 and has no runtime dependencies, no cloud service, and no API key.
Status: 1.0.0. See docs/PROGRESS.md for what is done, what is verified, and what is not.
uv tool install agent-tuner # installs the `tuner` command tuner init # config, Cursor hooks, /tuner skill, schedule (tuner is taken on PyPI, so the distribution is agent-tuner; the command is tuner.) tuner init is explicit and reversible with tuner uninstall; skip pieces with --no-hooks --no-skill --no-schedule.
tuner upgrade # upgrade the package, then refresh what Tuner installed tuner upgrade detects how Tuner was installed (uv tool, pipx, or a local checkout), upgrades it, then runs the new code to apply database migrations and refresh the Cursor hooks, the /tuner skill, and the schedule, but only the ones you already have. After a manual upgrade run tuner upgrade --sync-only; tuner doctor warns when they are out of sync. On Windows uv cannot replace a running tuner.exe, so tuner upgrade prints the two commands to run instead.
tuner report --open # collect, build, and open that report tuner open # latest finished scheduled report tuner open --generated # the report written most recently tuner doctor # check sources, hooks, skill, schedule Then, in Cursor or Claude Code, run /tuner. The agent reads a redacted evidence bundle, explains why the expensive tasks were expensive (productive complexity vs avoidable overhead vs insufficient evidence), and proposes improvements. For each task it also writes a title of at most 80 characters. The expensive-tasks list and the task heading show that label; the prompt text stays on the task page. The result is cached and appears in the report's Recommendations view. Re-running /tuner on unchanged data reuses the cache instead of spending tokens again.
Each human prompt is its own task, so per-prompt cost stays visible. A short follow-up in the same sitting is linked, not merged: an affirmation (yes, go ahead) or an exact plan approval (implement this, implement the plan, build this, do the plan). Extra words, as in implement this new parser, stay a new task.
What is measured and what is estimated
Claude Code transcripts contain provider usage, so those numbers are measured. OpenCode, Open WebUI, and Hermes keep token counts in a local database, so those numbers are measured too. Cursor does not store token counts locally, so Cursor numbers are estimates (labelled, with a method, confidence, and known gaps) and are never mixed with measured data without saying so. Costs are API-equivalent estimates from versioned prices, not billing; unknown models produce an explicitly incomplete estimate. See docs/DATA_SCHEMA.md.
Modes (tuner config set skills.mode review): suggest (record only), review (default; you apply with tuner skills apply ID), auto (small, validated changes only). Tuner only edits skills it created, backs up before writing, detects conflicts, supports tuner skills rollback, and never runs git add or git commit. See docs/PRIVACY.md.
Everything stays on your machine. No telemetry. The only network request Tuner can make is tuner pricing refresh (public price list, explicit and opt-in). Transcripts are treated as untrusted data and are redacted for secrets. The model only sees what tuner analyze evidence prints.
Research · Architecture · Data schema · Privacy · Development · Progress
Author: Tuner contributors
Both files in this release have provenance metadata.
MIT View SPDX License List
agents ai claude-code cursor skills token-usage
Development Status 5 - Production/Stable
Intended Audience Developers
Programming Language Python :: 3.13
Release files for agent-tuner 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 468.9 kB
Release files / agent_tuner-1.0.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Release files / agent_tuner-1.0.0-py3-none-any.whl
Security for agent-tuner 1.0.0
Both files in this release have been uploaded with provenance metadata.
With provenance agent_tuner-1.0.0.tar.gz Nov 18, 2026
With provenance agent_tuner-1.0.0-py3-none-any.whl Nov 18, 2026
Attestation for agent_tuner-1.0.0.tar.gz
Attestation for agent_tuner-1.0.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 18, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




