Skip to main content

vylor-savings-estimator

Instantly estimate how much Vylor MCP cuts costs and tokens on your Claude AI sessions — zero configuration required.

Reads your Claude session .jsonl files (Claude Code CLI & Claude Desktop), detects file-exploration and repo-crawling patterns that Vylor MCP replaces, and produces a rich savings report tracking cost cut and tokens cut.


Key Features

  • Automatic Session Discovery: Automatically discovers sessions from default Claude Code CLI (~/.claude/projects/) and Claude Desktop directories across Windows, macOS, and Linux.
  • Automatic Sub-Agent Stitching: Detects background sub-agents (e.g. Explore agents spawned via the Agent tool) and stitches them into their root task session, reporting true total task cost and sub-agent turn counts.
  • Direct File-Cache Compounding Model: Accurately models the prompt cache "snowball effect"—avoiding file dumps on early turns eliminates re-reading those files from the prompt cache on every subsequent turn.
  • Rich Terminal Report: Beautiful, modern terminal dashboards powered by rich with full savings breakdowns by tool, model, and session.
  • Extensible OOP Architecture: Built with SOLID principles, abstract interfaces (ISessionDiscoverer, ISessionParser, ITurnClassifier, ISavingsEngine, IReportRenderer), and Dependency Injection.

Installation

From Source / Private Repository

git clone https://github.com/vylor-ai/vylor-savings-estimator.git
cd vylor-savings-estimator
pip install -e .

Once Published to PyPI

pip install vylor-savings-estimator
# or via pipx (isolated environment)
pipx install vylor-savings-estimator

Usage

# Auto-discover all Claude sessions (defaults to last 30 days)
vylor-estimate

# Date filtering
vylor-estimate --week          # last 7 days only
vylor-estimate --month         # last 30 days only
vylor-estimate --all           # all-time (disable default 30-day filter)
vylor-estimate --since 2025-09-01

# Explicit path (single file or custom directory)
vylor-estimate /path/to/session.jsonl
vylor-estimate /path/to/sessions/

How Savings Are Calculated

The Compounding Cache Reality

In Claude Code and Claude Desktop, reading files writes their contents directly into the prompt cache (cache_creation_input_tokens). On every single subsequent turn for the rest of the session—even when the model is merely editing code or reasoning—those files are repeatedly re-read from the cache (cache_read_input_tokens).

The Direct File-Cache Model

  1. 100% Avoided Context: The actual tokens loaded by file exploration (Read, read_file, list_dir, grep) are eliminated from entering the context.
  2. Downstream Cache Reduction: That avoided volume is subtracted from cache_read_tokens on every future turn in the session: $$\text{saved_cache_read} = \min(\text{turn.cache_read_tokens}, \text{accumulated_avoided_context})$$
  3. 0% Output Tokens: The model still writes all its code, plans, and answers—output tokens are never credited as saved.

What It Detects

Vylor Tool Replaces Supported Tools & Patterns
find_files Heavy file reads & dumps Read, read_file, cat, view_file, sequential multi-reads
request_repo_map Directory exploration & trees Glob, list_dir, ls, tree, find
find_code_definition Symbol searching & code crawling Grep, grep_search, ripgrep, regex scans

Example Output

Found 2 session file(s). Parsing...

                            VYLOR SAVINGS ESTIMATE                             
               Analyzed: 1 session(s)  |  29 turns  |  All-time                
                         (includes 12 sub-agent turns)                         

+-----------------------------------------------------------------------------+
| Metric              |  Baseline (paid) | With Vylor MCP |    Saved |  % Cut |
|---------------------+------------------+----------------+----------+--------|
| Total Cost          |          $0.5565 |        $0.3080 | -$0.2485 | -44.7% |
| Total Tokens        |            1.03M |         377.1K |  -656.0K | -63.5% |
+-----------------------------------------------------------------------------+

--------------------------- Top Sessions by Savings ---------------------------
+-----------------------------------------------------------------------------+
| Session ID              | Turns | Baseline Cost | Cost Saved |  % Cut | Sub-agents |
|-------------------------+-------+---------------+------------+--------+------------|
| 4bc32054-f243-42...e29f |    29 |       $0.5565 |   -$0.2485 | -44.7% |         12 |
+-----------------------------------------------------------------------------+

+-----------------------------------------------------------------------------+
| Powered by Vylor MCP -- https://github.com/vylor-ai/vylor-mcp               |
+-----------------------------------------------------------------------------+

Session File Locations

Automatically discovered from platform defaults:

OS Search Locations
Windows ~/.claude/projects/ (Claude Code CLI)
%APPDATA%\Claude\projects\ (Claude Desktop)
macOS ~/.claude/projects/
~/Library/Application Support/Claude/projects/
Linux ~/.claude/projects/
~/.config/Claude/projects/

Development

git clone https://github.com/vylor-ai/vylor-savings-estimator.git
cd vylor-savings-estimator
pip install -e ".[dev]"
pytest

Metadata

Release files for vylor-estimate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vylor-estimate 0.1.0
File Size Uploaded
vylor_estimate-0.1.0.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vylor-estimate 0.1.0
File Interpreter ABI Platform
vylor_estimate-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.6 kB

Release files / vylor_estimate-0.1.0.tar.gz

Download URL vylor_estimate-0.1.0.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e1264a2b70737a98a500b66e965e963c98e4caf7850041139475241c20d87c0e
BLAKE2b-256 checksum
How to use checksums
3db89bb113788ec7611d6c804710394385c5352fcfdbac5b7be6f99d3bc1bb10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / vylor_estimate-0.1.0-py3-none-any.whl

Download URL vylor_estimate-0.1.0-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e16b3af340e93811527d71967cc1f130938625c204f0045602b03d354ea1f75f
BLAKE2b-256 checksum
How to use checksums
bd4da40de293acb1b4fefab9b56e6fda38bb05bd52ffe31da7098430237d0340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page