claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Developer Tools

ASK-Claude-Token-Optimizer

The worlds #1 token optimizer reduces token consumption using Claude code cli by up to 98.9%

// Developer Tools[ cli ][ api ][ claude ]#claude#cli#compression#free#optimizer#token#devtoolsNOASSERTION$open-sourceupdated 7 days ago
Actively maintained
100/100
last commit 3 days ago
last release 3 days ago
releases 2
open issues 0
// install
git clone https://github.com/ASK-Ai-Canada/ASK-Claude-Token-Optimizer
ASK Token Optimizer

ATO

ATO is a freemium product from ASK-Ai — free for individuals and teams under CAD $100K, commercially licensed above. Proceeds from enterprise licensing go toward raising technology literacy in local communities and paying independent developers through our bounty program. Every commercial seat helps fund someone else's first commit.

— ASK-Ai Team Canada

Stop paying for tokens Claude never needed to see.

Proprietary binary · licensed under Community / Commercial terms · free under CAD $100K annual revenue


     


The problem

Every time Claude Code runs a command — git status, grep, ls, cargo build — the full output lands in the context window. A single grep across a large codebase can dump 250,000 tokens of noise that Claude processes, charges you for, and largely ignores.

That's not a Claude problem. That's a plumbing problem. And it's solvable before it reaches Claude.


What ASK Token Optimizer does

It sits between your terminal and Claude Code as two lightweight hooks. Before Claude sees a command's output, the optimizer filters it — stripping noise, collapsing repetition, keeping only what Claude actually needs to reason about. The output is structurally identical; the token count is not.

How it works — Claude Code → ATO → Your Shell

No API key. No cloud. No account. The optimizer runs locally, processes output on your machine, and never touches the network.


Licensing — free under $100K, commercial above

A single codebase. Two licenses. The engine is identical in both tiers — nothing is locked or degraded in the free version.

CommunityCommercial
WhoIndividuals + companies under CAD $100K annual revenueCompanies at or above CAD $100K for business use
CostFree, foreverCAD $25 / seat / year · first month free · auto-renews yearly · valid card required
EngineFull, unlimitedSame engine
SupportCommunitySLA · priority fixes · dedicated contact · private channel

Installing or running the software constitutes acceptance of the LICENSE. Governing law: Canada. Commercial licensing: [email protected]


Getting started

Download the latest release, then from that folder:

./setup.sh        # Linux · macOS · Pi4
.\install.ps1     # Windows (PowerShell)

The installer fetches the checksum-verified binary, creates the ask shortcut, and offers to wire the two Claude Code hooks for you. Then:

ask --version
ask audit          # your cumulative savings

Prefer your agent to install it? Hand Claude Code, Cursor, or Cline the machine-readable guide — it audits your environment and wires everything, asking before it changes anything:

Follow README-LLM-install-guide.md in this repo to install and configure ASK Token Optimizer.

Full install, hook wiring, updating, and troubleshooting → README-LLM-install-guide.md.


Telemetry

Anonymous savings stats, sent weekly. Private by design — only the totals you save. The free tier keeps it on (the exchange for free use); a commercial license can opt out.

SharedStays on your machine
Weekly rollupTokens saved · run count · OS · versionEverything else

Opt out any time with DO_NOT_TRACK=1 (any tier) or [telemetry] enabled = false in ~/.config/ask/config.toml.


Support

Community support for the free tier. Commercial customers: SLA-backed support — include ask --version in any issue report. [email protected]


Hooks + audits

Two hooks, both local, both fail-open — binary missing or crash → raw output passes through, session never breaks.

  • PreToolUse → ask-rewrite — intercepts Bash command pre-exec, routes high-output verbs (grep · find · curl · cat) through optimizer.
  • PostToolUse → ask-filter — strips output noise before context, structure intact, token count cut.

Installer wires both into settings.json. No daemon, no network, no API key. Disable = drop hook block, re-run installer to restore.

Audit trail — every optimized run logged local at ~/.local/share/ask/history.db, each row version-stamped:

  • ask audit → cumulative savings since install
  • ask audit --graph → daily trend
  • ask audit --by-version → savings per release, upgrade-over-upgrade

Ledger is yours — on-disk, SQLite-readable, never leaves machine.


Performance — live audit data

87.7% session token reduction — measured Per command savings

Measured on a real Claude Code session: 351 commands over 30 days. Source: ask audit.

Command typeTokens saved
grep (large codebases)98.9%
curl (external API responses)95.7%
git push92.8%
find92.2%
cat / read (large logs, .jsonl, build output)84% — new in 0.5.0, lossless (full file stays on disk, one command away)
curl (local service responses)77–87%
ls64.7%
Session total — 30 days, 351 commands87.7%

340,000 input tokens compressed to 41,800 delivered to Claude.

The honest number

The 87.7% session figure is real — but one command, a single grep run, produced 250,000 tokens and accounts for 93% of it. Remove that outlier and measure the remaining 335 commands in steady-state:

Headline (raw)Steady-state
Commands351335
Compression87.7%56.2%
Tokens saved298.5K39.6K

ATO is most effective on high-volume output — grep, curl, build logs, large diffs — the commands burning most of your budget. On short-output commands it compresses less. Your workload lands somewhere between. Run ask audit after a day of use to see your real number.

We show both because you deserve to know what you're actually buying.


ATO · by ASK-Ai · LICENSE · Free under CAD $100K · Commercial above

// compatibility

Platformscli, api
Operating systems
AI compatibilityclaude
LicenseNOASSERTION
Pricingopen-source
LanguageShell

// faq

What is ASK-Claude-Token-Optimizer?

The worlds #1 token optimizer reduces token consumption using Claude code cli by up to 98.9%. It is open-source on GitHub.

Is ASK-Claude-Token-Optimizer free to use?

ASK-Claude-Token-Optimizer is open-source under the NOASSERTION license, so it is free to use.

What category does ASK-Claude-Token-Optimizer belong to?

ASK-Claude-Token-Optimizer is listed under devtools in the Claudeers registry of Claude-compatible tools.

0 views
17 stars
unclaimed
updated 7 days ago

// embed badge

ASK-Claude-Token-Optimizer on Claudeers
[![Claudeers](https://claudeers.com/api/badge/ask-claude-token-optimizer.svg)](https://claudeers.com/ask-claude-token-optimizer)

// retro hit counter

ASK-Claude-Token-Optimizer hit counter
[![Hits](https://claudeers.com/api/counter/ask-claude-token-optimizer.svg)](https://claudeers.com/ask-claude-token-optimizer)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/JavaScript225,699MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/TypeScript119,234MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/Python80,484MIT[ claude ]
🔓

🙌 OpenHands: AI-Driven Development

// devtoolsOpenHands/Python79,324NOASSERTION[ claude ]
→ see how ASK-Claude-Token-Optimizer connects across the ecosystem