EveryDev.ai
Subscribe
Home
Tools

4,506+ AI tools

  • New
  • Trending
  • Featured
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents3274
  • Coding2275
  • Infrastructure1000
  • Projects696
  • Marketing636
  • Research587
  • MCP532
  • Design508
  • Analytics506
  • Testing394
  • Security376
  • Data327
  • Integration244
  • Prompts244
  • Communication235
  • Extensions217
  • Voice193
  • Learning190
  • Commerce170
  • DevOps153
  • Web103
  • Finance36
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
  • Users
  • Rate Tools
  • 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. CliffCompaction
    CliffCompaction icon

    CliffCompaction

    Context Engineering

    Transparent API proxy that autocompacts long coding-agent sessions to keep them under a token budget.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Self-hosted CliffCompaction proxy released under the MIT License.

    Engagement

    Available On

    CLI
    macOS
    Linux
    API

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Context EngineeringAI Coding AssistantsCommand Line Assistants

    Alternatives

    SipcodeMakiCode2Prompt
    Developer
    Trang

    Listed Oct 2026

    About CliffCompaction

    CliffCompaction is an open-source Python tool that sits between a coding agent and its model provider as a transparent API proxy. Pointing the agent's base URL at it keeps long sessions under a configurable token budget while the agent itself stays unchanged. The latest release listed is v0.1.0, and the project is MIT licensed.

    What It Is

    CliffCompaction provides autocompaction for coding agents such as Claude Code and Codex CLI. It runs locally, either as a background service (launchd on macOS, systemd --user on Linux) or as a one-off proxy, and forwards requests to an upstream provider. Supported API dialects are Anthropic Messages, OpenAI Chat Completions and OpenAI Responses with native tool calling; other traffic passes through verbatim.

    How Compaction Works

    Each request is history plus the latest step. The proxy hashes messages into a chain. When the outgoing size exceeds the threshold, it rebuilds the history as the verbatim head, one summary message, and the last few turns verbatim. Later requests carrying the original history are matched to the longest stored prefix and swapped for the compacted version. If the provider still returns a context-length error, the proxy compacts and replays once.

    The summary is mechanical, built by content class. Tool results of 500 characters or fewer are kept and longer ones dropped, tool calls become one-line signatures, assistant text and thinking are kept by default, and images are dropped from summaries. Re-compaction drops the previous summary. Any failure falls back to verbatim passthrough.

    Setup and Operation

    Install with uv or pip, then run cliff enable to add base-URL variables to the shell profile and install the daemon. Commands include cliff status, restart, watch and disable. Multiple named instances can use different ports, upstreams or thresholds. cliff run -- claude runs a single command through a temporary proxy, and --shadow mode logs what would be compacted without changing anything. Codex CLI needs a provider block in its config file. The scaffold's own compaction should be disabled.

    Configuration

    Flags and environment variables control the token threshold (default 200000), recent turns kept (default 3), character caps for assistant text, thinking and tool results, thinking exclusion, custom Anthropic and OpenAI upstreams, strict mode, and a debug dump directory.

    CliffCompaction - 1

    Community Discussions

    Be the first to start a conversation about CliffCompaction

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

    Pricing

    OPEN SOURCE

    Open Source

    Self-hosted CliffCompaction proxy released under the MIT License.

    • MIT License
    • Install via uv tool install cliffcompaction or pip install cliffcompaction
    • Transparent API proxy for Anthropic Messages, OpenAI Chat Completions and OpenAI Responses
    • Upstream provider/API costs are external

    Capabilities

    Key Features

    • Transparent API proxy for coding agents
    • Threshold-based autocompaction of long sessions
    • Hash-chain prefix matching to substitute compacted history
    • Compact-and-replay on context-length errors
    • Mechanical summaries by content class
    • Fail-open passthrough on any error
    • Shadow observe-only mode
    • Background daemon via launchd or systemd --user
    • Multiple named instances with separate ports and upstreams
    • Live watch view of requests and compactions
    • Configurable thresholds and truncation caps
    • Supports Anthropic Messages, OpenAI Chat Completions and OpenAI Responses

    Integrations

    Claude Code
    Codex CLI
    Anthropic API
    OpenAI API
    Kimi
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

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

    Rate other tools you’ve used

    Developer

    Trang

    Read more about Trang
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    Sipcode icon

    Sipcode

    An open-source CLI toolkit that keeps Claude Code's context clean by trimming token waste, detecting context rot, and providing spend analytics — all locally with zero telemetry.

    Maki icon

    Maki

    A lightweight Rust terminal coding agent that reduces context token use and is extendable with Neovim-style Lua plugins.

    Code2Prompt icon

    Code2Prompt

    Transform your codebase into AI-optimized prompts using the Goal + Format + Context framework for better LLM interactions.

    Browse all tools

    Related Topics

    Context Engineering

    Techniques for optimizing context windows to improve AI responses.

    77 tools

    AI Coding Assistants

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

    971 tools

    Command Line Assistants

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

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