EveryDev.ai
Subscribe
Home
Tools

4,030+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2782
  • Coding1973
  • Infrastructure825
  • Projects603
  • Marketing598
  • Research520
  • Analytics468
  • Design462
  • MCP419
  • Testing346
  • Security323
  • Data305
  • Integration224
  • Prompts220
  • Communication210
  • Extensions196
  • Learning179
  • Voice175
  • Commerce160
  • DevOps135
  • Web95
  • Finance31
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. clauditor
    clauditor icon

    clauditor

    AI Coding Assistants

    A CLI tool that monitors Claude Code session token usage, auto-rotates oversized sessions, and preserves context to prevent quota exhaustion.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open source under the MIT License. All features available at no cost.

    Engagement

    Available On

    macOS
    Linux
    Web
    API
    VS Code

    Resources

    WebsiteGitHubllms.txt

    Topics

    AI Coding AssistantsCompute OptimizationCommand Line Assistants

    Alternatives

    lowfatRTK - Rust Token KillerCC-Switch CLI
    Developer
    Iyadh KhalfallahIyadh Khalfallah builds open-source developer tools focused…

    Listed Sep 2026

    About clauditor

    clauditor is an open-source CLI tool built by Iyadh Khalfallah that prevents Claude Code from burning through API quota by monitoring session token growth and automatically blocking sessions when they become wasteful. It registers hooks directly into Claude Code and runs in the background with no dashboard or configuration required to get started. The project is published under the MIT License and is available via npm or Homebrew.

    What It Is

    clauditor addresses a structural problem in how Claude Code works: every turn in a session re-sends the entire conversation history to the API. A fresh session costs roughly 20k tokens per turn, but a 200-turn session can cost 200k tokens per turn for the same work — a 10x waste factor. clauditor sits at the session boundary layer, tracking this growth in real time and blocking Claude before quota is exhausted, while saving enough context for the next session to pick up seamlessly.

    How the Hook Architecture Works

    clauditor registers 7 hooks into Claude Code to cover every scenario where tokens can be wasted:

    • UserPromptSubmit — checks waste factor and "continue" intent before Claude processes any prompt; blocks with exit code 2 if the session is too expensive
    • PostToolUse — catches autonomous work (file edits, commands) where there is no user prompt to intercept; also detects cache degradation, token spikes, and edit thrashing
    • PreCompact / PostCompact — saves session state before compaction and merges Claude's LLM-generated summary with mechanically extracted data (files, commits, commands) after
    • SessionStart — injects saved handoff files from previous sessions into Claude's context at the start of a new session
    • PreToolUse — queries a local error index for known command failures and injects fixes as non-blocking context before Claude runs a command
    • Stop — detects and blocks infinite loops when Claude repeats the same tool call 3+ times with identical input and output

    Context Preservation Design

    When clauditor blocks a session, it instructs Claude to write a structured handoff covering task, completed work, in-progress items, failed approaches, dependencies, decisions, user preferences, and blockers. This is combined with mechanically extracted data from the JSONL transcript — files modified and read, git commits verbatim, key commands and results — to give the next session the most complete possible starting point. The README cites the Size-Fidelity Paradox (arxiv.org/abs/2602.09789) as motivation for combining both LLM-generated summaries and deterministic extraction, since LLM summaries alone can suffer from knowledge overwriting and semantic drift.

    Project Memory and Team Sync

    clauditor builds a per-project knowledge base that records failed commands and their fixes with a confidence score that decays over a 45-day half-life. Errors are labeled confirmed, observed, inferred, or stale so Claude knows how much to trust each entry. A file tracker identifies "hot files" (5+ edits across 3+ sessions) and injects history when Claude touches them. An optional team hub (in beta) allows shared knowledge across developers: errors auto-promote from developer-scoped to team-scoped when multiple developers report the same issue.

    Supported Platforms and Limitations

    clauditor works with the Claude Code CLI, VS Code extension, and JetBrains extension. It does not work with Claude Code on the web (claude.ai/code), and sessions do not sync across machines. The README notes a known Claude Code bug where the UserPromptSubmit hook may not fire consistently in the VS Code extension — context is still injected via SessionStart but the "continue" prompt block is most reliable in the CLI. clauditor also detects Claude Code versions 2.1.69–2.1.89, which have a confirmed prompt caching bug causing 10–20x token consumption.

    Update: v1.30.0

    The latest release is v1.30.0, published in April 2026. The GitHub repository shows 428 stars and 42 forks as of the last update, with 56 published npm versions indicating active iteration. The project requires Node.js 20+ and is installable in two commands via Homebrew or npm.

    clauditor - 1

    Community Discussions

    Be the first to start a conversation about clauditor

    Share your experience with clauditor, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open source under the MIT License. All features available at no cost.

    • Session waste factor monitoring
    • Automatic session blocking and rotation
    • Structured context handoff
    • Per-project knowledge base
    • Live dashboard

    Capabilities

    Key Features

    • Session waste factor monitoring (tokens/turn ratio)
    • Automatic session blocking when quota waste exceeds threshold
    • Structured context handoff on session rotation
    • Mechanical extraction of files, commits, and commands from JSONL transcripts
    • SessionStart context injection for seamless session resume
    • PreToolUse error index with confidence decay
    • Stop hook to prevent infinite tool-call loops
    • Live dashboard via clauditor watch
    • Peak vs off-peak token usage analysis
    • Per-project knowledge base with self-correcting confidence scores
    • File tracker for hot files across sessions
    • Optional team knowledge hub (beta)
    • Audit-only mode (no hooks, read-only analytics)
    • Version-aware warnings for buggy Claude Code versions
    • Cross-project session handoffs
    • Desktop notifications for cache issues
    • Auto-calibration of rotation threshold
    • Handoff quality scoring via clauditor handoff-report

    Integrations

    Claude Code CLI
    VS Code extension (Claude Code)
    JetBrains extension (Claude Code)
    Homebrew
    npm
    npx
    API Available

    Ratings & Reviews

    No ratings yet

    Be the first to rate clauditor and help others make informed decisions.

    Developer

    Iyadh Khalfallah

    Iyadh Khalfallah builds open-source developer tools focused on AI coding assistant optimization. The clauditor project addresses token quota inefficiency in Claude Code sessions through hook-based session monitoring and context preservation. The project is independently developed and is not affiliated with or endorsed by Anthropic.

    Read more about Iyadh Khalfallah
    GitHub
    1 tool in directory

    Similar Tools

    lowfat icon

    lowfat

    A lightweight CLI tool that reduces AI token costs by filtering and compressing unnecessary command output before it reaches your AI agent.

    RTK - Rust Token Killer icon

    RTK - Rust Token Killer

    High-performance CLI proxy written in Rust that reduces LLM token consumption by 60-90% by filtering and compressing command outputs before they reach your AI coding assistant.

    CC-Switch CLI icon

    CC-Switch CLI

    A cross-platform CLI and TUI tool to manage providers, MCP servers, prompts, and sessions for Claude Code, Codex, Gemini, OpenCode, Hermes, OpenClaw, and Pi from one interface.

    Browse all tools

    Related Topics

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    881 tools

    Compute Optimization

    Tools for optimizing computational resources and performance.

    39 tools

    Command Line Assistants

    AI-powered command-line assistants that help developers navigate, search, and execute terminal commands with intelligent suggestions and context awareness.

    248 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions