squeez logo
squeez
★ 219
vs
code-context-engine logo
code-context-engine
★ 436

squeez vs code-context-engine

squeez: squeez is an end-to-end token optimizer for AI CLIs that compresses bash output up to 95%, collapses redundant calls, and injects a terse prompt persona. It registers hooks automatically with zero new runtime dependencies, supporting multiple AI CLI hosts like Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and Codex CLI.; code-context-engine: Code Context Engine (CCE) indexes your codebase using tree-sitter parsing and vector embeddings, allowing AI coding agents to search for relevant code instead of re-reading entire files. It saves up to 94% input tokens, works across multiple editors (Claude Code, VS Code, Cursor, Gemini CLI, Codex CLI), and runs entirely locally for privacy. With built-in compression, graph expansion, and cross-session memory, CCE reduces costs and speeds up responses.

01

TL;DR

squeez logo
squeezCode Assistant · ★ 219

Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills.

code-context-engine logo
code-context-engineCode Assistant · ★ 436

Reduce Claude Code costs by cutting input tokens

02

Side-by-Side Comparison

Field
squeez logosqueez
code-context-engine logocode-context-engine
Category
Code Assistant
Code Assistant
Stars
★ 219
★ 436
License
Apache-2.0
MIT
Install Command
curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh
uv tool install "code-context-engine[local]"
Updated
4d ago
2mo ago
Open Source
Yes
Yes
Tags
ai-cli, bash-hook, claude-code
ai-coding, claude, claude-code
03

Features

squeez logosqueez
01Bash compression: Intercepts every command via PreToolUse hook and applies smart filter, dedup, grouping, and truncation for up to 95% reduction.
02Context engine: Cross-call redundancy detection using exact hash (FNV-1a) and fuzzy trigram-shingle Jaccard comparison (≥0.85 threshold).
03Summarize fallback: Outputs exceeding 500 lines are replaced with a ≤40-line dense summary; benign outputs have doubled threshold.
04Adaptive intensity: Scales compression limits based on session budget usage (Full below 80%, Ultra above).
05MCP server: Runs a JSON-RPC 2.0 server over stdio exposing 13 read-only tools for LLM interaction.
code-context-engine logocode-context-engine
01Saves up to 94% input tokens via retrieval and compression
02Works across multiple editors with a single index
03Zero cloud, everything runs locally
04Cross-session memory with decision recording and recall
05Live dashboard with token savings tracking
04

Use Cases

squeez logosqueez
↳Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills.
↳Compress verbose command outputs (e.g., git logs, build errors, Docker logs) to stay within context limits.
↳Optimize multi-turn sessions by eliminating redundant information and providing structured memory summaries.
code-context-engine logocode-context-engine
↳Reduce Claude Code costs by cutting input tokens
↳Keep code private with fully local indexing
↳Speed up multi-editor workflows with shared index
FAQ

FAQ

What is the difference between squeez and code-context-engine?
Both squeez and code-context-engine are in the Code Assistant category. squeez has 219 stars, while code-context-engine has 436 stars.
Which is better, squeez or code-context-engine?
The best choice depends on your use case. Choose squeez if Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills., and code-context-engine if Reduce Claude Code costs by cutting input tokens.
Is squeez free or open source?
Yes, squeez is open source on GitHub (Apache-2.0).
Is code-context-engine free or open source?
Yes, code-context-engine is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related